From 062f2c8662f586e651655dbb5de7c0423fe028c9 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 4 Sep 2019 23:24:21 +0200 Subject: improve server benchmarks servers are now dictionary with two mandatory keys: "name" and "cmd". Optional keys are: * "prepare_cmds": commands are run after a server is started * "shutdown_cmds": commands are run before a server is terminated --- src/benchmarks/mysql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/benchmarks/mysql.py') diff --git a/src/benchmarks/mysql.py b/src/benchmarks/mysql.py index 28cb982..a47873b 100644 --- a/src/benchmarks/mysql.py +++ b/src/benchmarks/mysql.py @@ -56,7 +56,8 @@ class BenchmarkMYSQL(Benchmark): self.args = {"nthreads": Benchmark.scale_threads_for_cpus(1)} self.cmd = CMD - self.server_cmds = [SERVER_CMD] + self.servers = [{"name": "mysqld", + "cmd" : SERVER_CMD}] self.measure_cmd = "" self.requirements = ["mysqld", "sysbench"] -- cgit v1.2.3