[root@liytest bin]# ./mysqlslap --concurrency=1,10,20,50,100 --number-of-queries 1000 --create-schema='test' --engine=innodb --query="insert into test7 values ('1111111111','1111111111','1111111111','1111111111','1111111111')" -h 192.168.2.56 -uroot -p Enter password: Benchmark Running for engine innodb Average number of seconds to run all queries: 12.368 seconds Minimum number of seconds to run all queries: 12.368 seconds Maximum number of seconds to run all queries: 12.368 seconds Number of clients running queries: 1 Average number of queries per client: 1000
Benchmark Running for engine innodb Average number of seconds to run all queries: 12.711 seconds Minimum number of seconds to run all queries: 12.711 seconds Maximum number of seconds to run all queries: 12.711 seconds Number of clients running queries: 10 Average number of queries per client: 100
关闭log_bin
[root@liytest bin]# ./mysqlslap --concurrency=1,10,20 --number-of-queries 1000 --create-schema='test' --engine=innodb --query="insert into test7 values ('1111111111','1111111111','1111111111','1111111111','1111111111')" -h 192.168.2.56 -uroot -p Enter password: Benchmark Running for engine innodb Average number of seconds to run all queries: 6.138 seconds Minimum number of seconds to run all queries: 6.138 seconds Maximum number of seconds to run all queries: 6.138 seconds Number of clients running queries: 1 Average number of queries per client: 1000
Benchmark Running for engine innodb Average number of seconds to run all queries: 1.696 seconds Minimum number of seconds to run all queries: 1.696 seconds Maximum number of seconds to run all queries: 1.696 seconds Number of clients running queries: 10 Average number of queries per client: 100
Benchmark Running for engine innodb Average number of seconds to run all queries: 1.433 seconds Minimum number of seconds to run all queries: 1.433 seconds Maximum number of seconds to run all queries: 1.433 seconds Number of clients running queries: 20 Average number of queries per client: 50