mysqlslap是官方提供的压力测试工具之一,官方介绍如下:
mysqlslap is a diagnostic program designed to emulate client load for a MySQL server and to reportthe timing of each stage. It works as if multiple clients are accessing the server. mysqlslap isavailable as of MySQL 5.1.4.
下面介绍一些常见参数:
–auto-generate-sql-write-number每个线程中产生多少个insert
–auto-generate-sql-guid-primary自动产生guid格式的主键
–number-of-queries=50000每个连接客户端总共发起的查询次数
–concurrency=10,50,100并发连接线程数,分...

