When I’m working with MySQL, I care not just about whether a single query is slow, but how much total load the server can handle before performance starts to drop.
Tools like mysqlslap help by generating
synthetic workloads to simulate multiple clients and measure the
server’s Queries Per Second (QPS).
In this post, I’ll walk through a script I used to benchmark
MySQL server performance with mysqlslap, and discuss
when it makes sense to use it over more advanced tools like
sysbench. I originally used this script in a blog post published
at ReadySet: Vertical Scaling of MySQL vs. Horizontal Scaling
with ReadySet.
Why Benchmark a MySQL Server?
Benchmarking gives a rough idea of how a MySQL server performs under …
[Read more]