What is the peak QPS for a MySQL server? I don't know so I created a very artificial benchmark to find out. I then ran that benchmark for MySQL 5.0.84 and 5.1.38 using several storage engines. I was able to exceed 100,000 QPS for the HEAP and InnoDB storage engines. It would be nice if I could get that on a production server.
The benchmark was run on an 8-core x86 server. Clients and mysqld ran on the same server. The clients used mysqlslap and mysqld versions 5.0.84 and 5.1.38 were used. For MySQL 5.1.38, the built-in and plug-in versions of InnoDB were used. The input to mysqlslap was a file with 1M identical SELECT statements and it was run using 1, 2, 4, 8 and 16 concurrent sessions. The test was run in 3 modes:
- primary key only - the query is index only on the primary key index. …