Complete the job, MariaDB10 and MySQL5.6 community edition stress testing, see sysbench (10.8.8.43) MySQL5.6 and MariaDB10.0.11 (10.8.8.100) stress testing parameters: sysbench -- testoltp -- mysql-table-engineinnodb -- oltp-table-size10000000 -- max-requests0 -- max-time900 -- num-t
Complete the job, MariaDB10 and MySQL5.6 community edition stress testing, see sysbench (10.8.8.43) MySQL5.6 and MariaDB10.0.11 (10.8.8.100) stress testing parameters: sysbench -- test = oltp -- mysql-table-engine = innodb -- oltp-table-size = 10000000 -- max-requests = 0 -- max-time = 900 -- num-t
Complete the job. For MariaDB10 and MySQL5.6 Community version stress tests, see:
Sysbench (10.8.8.43)
MySQL5.6 and MariaDB10.0.11 (10.8.8.100)
Stress test parameters:
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
10 million records, no request restrictions, 15 minutes of stress testing, 512 concurrent connections.
My. cnf parameters:
Sync_binlog = bytes = 0innodb_flush_method = bytes = 500innodb_log_file_size = bytes = 3innodb_log_buffer_size = 16Mtx_isolation = READ-COMMITTEDthread_handling = pool-of-threads (MariaDB thread pool)
Machine Configuration:
Relatively poor, DELL R610, 2 4-core CPUs, RAID 1 (WriteBack Policy) 7200 to SAS hard drive.
Read/write Test
650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151214/100I31242-0.jpg "title =" tps.jpg "alt =" wkiol1owt0iiag_kaadumrgoc447.jpg "/>
Obviously, the performance of MySQL5.6.19 is reduced by 50% in high concurrency.
Below are top and stress tests:
MySQL5.6.19
650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151214/100I3L43-1.jpg "title =" MySQL5.6_cpu.jpg "alt =" wKiom1OWummyorYFAARpiAO0Rtc779.jpg "/>
The load average reaches 195, Which is overloaded.
650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151214/100I31W6-2.jpg "title =" MySQL5.6_tps.jpg "alt =" wKiom1OWuqeSwyh8AAKEt6EMwdI348.jpg "/>
TPS is 1002.42 per second.
MariaDB10.0.11
650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151214/100I32120-3.jpg "title =" MariaDB10_cpu.jpg "alt =" wkiom1owuyagwg_caarkwhenkj2005.jpg "/>
Load average is 11.59
650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151214/100I32537-4.jpg "title =" MariaDB10_tps.jpg "alt =" wKioL1OWvUSw1C9uAAMcKJxgmio262.jpg "/>
TPS is 2044.80 per second.
Supplement: now we have adjusted the number of concurrent connections to 900, and press it again. Let's take a look at TPS:
MySQL5.6.19
650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151214/100I32561-5.jpg "title =" mysql_900.jpg "alt =" wKioL1OW3j2RAC6fAAJ7_mCu-uw744.jpg "/>
MariaDB10.0.11
650) this. width = 650; "src =" http://www.68idc.cn/help/uploads/allimg/151214/100I3C19-6.jpg "title =" mariadb_900.jpg "alt =" wKioL1OW3enzqGMnAALBbfVpKRE421.jpg "/>
As you can see, as the number of concurrent connections increases, the performance of MySQL5.6 continues to decline, while that of MariaDB10 keeps the performance stable.
Conclusion:
SumOfficial TestAlmost, because there is no enterprise version of MySQL5.6 in hand, MariaDB10 cannot be said to be strong, but in high concurrency environments, MySQL5.6.19 community edition is not recommended for use in production environments.
Official Test: Http://hcymysql.blog.51cto.com/5223301/1404998