Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Gypsy, also available from Launchpad, is a tool written for load testing by MySQL Support Engineer Shane Bester. We actively use this tool when testing concurrent loads. It’s not a benchmarking tool, but an aid to finding locking issues or other problems with concurrency.
Gypsy is scriptable. Its syntax for query files is easy:
i|1|DROP TABLE IF EXISTS t1| i|1|CREATE TABLE t1( id INT, f1 INT, PRIMARY KEY(id)) ENGINE=InnoDB| i|1|SET GLOBAL SQL_MODE='strict_trans_tables'| n|100|INSERT INTO t1 SET id = ?, f1 = 1 ON DUPLICATE KEY UPDATE f1 = f1 + 1|tinyint
Rows marked with i are part of
the initial setup and are run only once. Rows marked with n denote queries that emulate the load. You
can run Gypsy as follows: