自动生成测试表和数据
测试语句的类型。取值包括:read,key,write,update和mixed(默认)。
自动生成的测试表中包含多少个字符类型的列,默认1
自动生成的测试表中包含多少个数字类型的列,默认1
总的测试查询次数(并发客户数×每客户查询次数)
使用自定义脚本执行测试,例如可以调用自定义的一个存储过程或者sql语句来执行测试。
测试的schema,MySQL中schema也就是database
多少条DML后提交一次
如果服务器和客户端支持都压缩,则压缩信息传递
并发量,也就是模拟多少个客户端同时执行select。可指定多个值,以逗号或者–delimiter参数指定的值做为分隔符
创建测试表所使用的存储引擎,可指定多个
测试执行的迭代次数
执行N条语句后断开重连
只打印测试语句而不实际执行
Enter password:
Benchmark
Running for engine myisam
Average number of seconds to run all queries: 0.111 seconds
Minimum number of seconds to run all queries: 0.111 seconds
Maximum number of seconds to run all queries: 0.111 seconds
Number of clients running queries: 200
Average number of queries per client: 1
Benchmark
Running for engine innodb
Average number of seconds to run all queries: 0.382 seconds
Minimum number of seconds to run all queries: 0.382 seconds
Maximum number of seconds to run all queries: 0.382 seconds
Number of clients running queries: 200
Average number of queries per client: 1
User time 0.04, System time 0.07
Maximum resident set size 5608, Integral resident set size 0
Non-physical pagefaults 2328, Physical pagefaults 1, Swaps 0
Blocks in 0 out 0, Messages in 0 out 0, Signals 0
Voluntary context switches 1322, Involuntary context switches 3193