作者:用户yfkae7hw22 | 来源:互联网 | 2014-05-29 08:43
我使用的是MySQL自带的性能测试工具mysqlslap,200并发,25次循环,运行5次取平均数值所得。测试数据库所用的版本是MariaDB5.2.0BetaMySQL5.1.36使用相同的my.ini配置下边是测试结果:BenchmarkRunningforenginemyisamAveragenumberofse
我使用的是 MySQL 自带的性能测试工具
mysqlslap,200 并发,25次循环,
运行5次取平均数值所得。
测试数据库所用的版本是 MariaDB 5.2.0 Beta & MySQL 5.1.36 使用相同的 my.ini
配置
下边是测试结果:
Benchmark
Running for engine
myisam
Average number of
seconds to run all queries: 36.261 seconds
Minimum number of
seconds to run all queries: 36.162 seconds
Maximum number of
seconds to run all queries: 36.336 seconds
以上是 MariaDB ,MyISAM 引擎的测试结果
Benchmark
Running for engine
myisam
Average number of
seconds to run all queries: 35.774 seconds
Minimum number of
seconds to run all queries: 35.438 seconds
Maximum number of
seconds to run all queries: 36.130 seconds
Number of clients
running queries: 200
Average number of
queries per client: 25
以上是 MySQL ,MyISAM 引擎的测试结果
MariaDB 与 MySQL 在 MyISAM 引擎的性能上存在差别,MySql 快了一个小身位。
InnoDB 的情况也一样麽?
Benchmark
Running for engine
innodb
Average number of
seconds to run all queries: 36.113 seconds
Minimum number of
seconds to run all queries: 36.025 seconds
Maximum number of
seconds to run all queries: 36.233 seconds
Number of clients
running queries: 200
Average number of
queries per client: 25
以上是 MariaDB ,InnoDB 引擎的测试结果
Benchmark
Running for engine
innodb
Average number of
seconds to run all queries: 36.412 seconds
Minimum number of
seconds to run all queries: 36.208 seconds
Maximum number of
seconds to run all queries: 36.663 seconds
Number of clients
running queries: 200
Average number of
queries per client: 25
以上是 MySQL ,InnoDB 引擎的测试结果
测试所得,使用 InnoDB 引擎时,情况就扭转了,MariaDB 要比 MySQL 快上了好几毫秒。
看来2位虽然同宗同源,但所侧重的方面不不一样啊。
将继续留意他们的发展。