Home Database Mysql Tutorial MariaDB10和MySQL5.6社区版压力测试

MariaDB10和MySQL5.6社区版压力测试

Jun 07, 2016 pm 02:52 PM
test Community

补上作业,MariaDB10和MySQL5.6社区版压力测试,见下图: sysbench(10.8.8.43) MySQL5.6和MariaDB10.0.11(10.8.8.100) 压力测试参数: sysbench--test=oltp--mysql-table-engine=innodb--oltp-table-size=10000000--max-requests=0--max-time=900--num-t

补上作业,MariaDB10和MySQL5.6社区版压力测试,见下图:


sysbench(10.8.8.43)

MySQL5.6和MariaDB10.0.11(10.8.8.100)


压力测试参数:

sysbench  --test=oltp --mysql-table-engine=innodb 
--oltp-table-size=10000000 --max-requests=0 --max-time=900 
--num-threads=512 --mysql-host=10.8.8.100 --mysql-port=3308 
--mysql-user=admin --mysql-password=123456  --mysql-db=test run
Copy after login

1千万记录,不限制请求,压测15分钟,并发连接数512个。


my.cnf参数:

sync_binlog = 0
innodb_flush_log_at_trx_commit = 0
innodb_flush_method = O_DIRECT
innodb_flush_neighbors = 1
innodb_buffer_pool_size = 20G
innodb_io_capacity = 500
innodb_log_file_size = 512M
innodb_log_files_in_group = 3
innodb_log_buffer_size = 16M
tx_isolation = READ-COMMITTED
thread_handling = pool-of-threads(MariaDB的线程池)
Copy after login


机器配置:

比较差,DELL R610,2颗4核CPU,RAID1(WriteBack策略)7200转SAS硬盘。


读写测试

wKioL1OWt0iiaG_KAADumUmrgOc447.jpg

可以明显的看到,在高并发的时候,MySQL5.6.19的性能减少了50%。


下面是top和压力测试截图:

MySQL5.6.19

wKiom1OWummyorYFAARpiAO0Rtc779.jpg

load average达到195,已经超负荷。


wKiom1OWuqeSwyh8AAKEt6EMwdI348.jpg

TPS为每秒1002.42个。


MariaDB10.0.11

wKiom1OWuyagWg_CAARKWhej2Nk005.jpg

load average为11.59


wKioL1OWvUSw1C9uAAMcKJxgmio262.jpg

TPS为每秒2044.80个。


补充:现在把并发连接数调成了900个,再压一次,看看TPS:

MySQL5.6.19

wKioL1OW3j2RAC6fAAJ7_mCu-uw744.jpg


MariaDB10.0.11

wKioL1OW3enzqGMnAALBbfVpKRE421.jpg


可以看到,随着并发连接数的增加,MySQL5.6性能持续下降,而MariaDB10,性能保持平稳。


结论:

大体和官方的测试差不多,因手里没有MySQL5.6的企业版,所以不能说MariaDB10就一定强,但在高并发环境,MySQL5.6.19社区版不建议使用在生产环境上。


官方的测试:http://hcymysql.blog.51cto.com/5223301/1404998



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What do you think of furmark? - How is furmark considered qualified? What do you think of furmark? - How is furmark considered qualified? Mar 19, 2024 am 09:25 AM

What do you think of furmark? 1. Set the "Run Mode" and "Display Mode" in the main interface, and also adjust the "Test Mode" and click the "Start" button. 2. After waiting for a while, you will see the test results, including various parameters of the graphics card. How is furmark qualified? 1. Use a furmark baking machine and check the results for about half an hour. It basically hovers around 85 degrees, with a peak value of 87 degrees and room temperature of 19 degrees. Large chassis, 5 chassis fan ports, two on the front, two on the top, and one on the rear, but only one fan is installed. All accessories are not overclocked. 2. Under normal circumstances, the normal temperature of the graphics card should be between "30-85℃". 3. Even in summer when the ambient temperature is too high, the normal temperature is "50-85℃

Join a new Xianxia adventure! 'Zhu Xian 2' 'Wuwei Test' pre-download is now available Join a new Xianxia adventure! 'Zhu Xian 2' 'Wuwei Test' pre-download is now available Apr 22, 2024 pm 12:50 PM

The "Inaction Test" of the new fantasy fairy MMORPG "Zhu Xian 2" will be launched on April 23. What kind of new fairy adventure story will happen in Zhu Xian Continent thousands of years after the original work? The Six Realm Immortal World, a full-time immortal academy, a free immortal life, and all kinds of fun in the immortal world are waiting for the immortal friends to explore in person! The "Wuwei Test" pre-download is now open. Fairy friends can go to the official website to download. You cannot log in to the game server before the server is launched. The activation code can be used after the pre-download and installation is completed. "Zhu Xian 2" "Inaction Test" opening hours: April 23 10:00 - May 6 23:59 The new fairy adventure chapter of the orthodox sequel to Zhu Xian "Zhu Xian 2" is based on the "Zhu Xian" novel as a blueprint. Based on the world view of the original work, the game background is set

What are the differences between function testing and coverage in different languages? What are the differences between function testing and coverage in different languages? Apr 27, 2024 am 11:30 AM

Functional testing verifies function functionality through black-box and white-box testing, while code coverage measures the portion of code covered by test cases. Different languages ​​(such as Python and Java) have different testing frameworks, coverage tools and features. Practical cases show how to use Python's Unittest and Coverage and Java's JUnit and JaCoCo for function testing and coverage evaluation.

The new king of domestic FPS! 'Operation Delta' Battlefield Exceeds Expectations The new king of domestic FPS! 'Operation Delta' Battlefield Exceeds Expectations Mar 07, 2024 am 09:37 AM

"Operation Delta" will launch a large-scale PC test called "Codename: ZERO" today (March 7). Last weekend, this game held an offline flash mob experience event in Shanghai, and 17173 was also fortunate to be invited to participate. This test is only more than four months away from the last time, which makes us curious, what new highlights and surprises will "Operation Delta" bring in such a short period of time? More than four months ago, I experienced "Operation Delta" in an offline tasting session and the first beta version. At that time, the game only opened the "Dangerous Action" mode. However, Operation Delta was already impressive for its time. In the context of major manufacturers flocking to the mobile game market, such an FPS that is comparable to international standards

PHP Jenkins 101: The only way to get started with CI/CD PHP Jenkins 101: The only way to get started with CI/CD Mar 09, 2024 am 10:28 AM

Introduction Continuous integration (CI) and continuous deployment (CD) are key practices in modern software development that help teams deliver high-quality software faster and more reliably. Jenkins is a popular open source CI/CD tool that automates the build, test and deployment process. This article explains how to set up a CI/CD pipeline with Jenkins using PHP. Set up Jenkins Install Jenkins: Download and install Jenkins from the official Jenkins website. Create project: Create a new project from the Jenkins dashboard and name it to match your php project. Configure source control: Configure your PHP project's git repository as Jenkin

How to disable test cases in Maven? How to disable test cases in Maven? Feb 26, 2024 am 09:57 AM

Maven is an open source project management tool that is commonly used for tasks such as construction, dependency management, and document release of Java projects. When using Maven for project build, sometimes we want to ignore the testing phase when executing commands such as mvnpackage, which will improve the build speed in some cases, especially when a prototype or test environment needs to be built quickly. This article will detail how to ignore the testing phase in Maven, with specific code examples. Why you should ignore testing During project development, it is often

The Complete Guide to Testing Classes in Java: Detailed Tutorial from Beginner to Mastery The Complete Guide to Testing Classes in Java: Detailed Tutorial from Beginner to Mastery Jan 24, 2024 am 08:12 AM

Learn to Write Java Test Classes: A Complete Guide from Beginner to Mastery In recent years, Java has become one of the most popular programming languages. Whether it is mobile application development, back-end service writing or big data processing, Java is everywhere. Writing high-quality code is the pursuit of every excellent Java developer. Testing is an integral part of ensuring code quality. By writing test classes, we can ensure the correctness and stability of the code, reduce the occurrence of bugs, and improve the reliability and maintainability of the software. This article will take you from getting started

How does CPU-Z test CPU performance? CPU-Z Test Tutorial How does CPU-Z test CPU performance? CPU-Z Test Tutorial Mar 13, 2024 pm 05:30 PM

CPU-Z is a professional and easy-to-use CPU detection software that allows users to understand the specific information of the current computer, such as external frequency, processor name, core structure and other information. So how to use CPU-Z? Let’s learn about the operation tutorial of CPU-Z to test CPU performance. Specific tutorial: 1. First, open the cpuz software according to our system. 2. After opening, enter the "Test Score" option above. 3. After opening, select the datum and reference. 4. After completing the selection, click "Test Processor Score". (It is best not to do other things during the test) 5. Wait for the test to be completed and you will be able to see your CPU performance score.

See all articles