From 2bcf2974fd561bfae5500492582e6d9c3cd4ed38 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 19 Feb 2020 16:53:56 +0100 Subject: use real keydb arguments and add plots --- src/benchmarks/keydb.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/benchmarks/keydb.py b/src/benchmarks/keydb.py index ea0e7a3..cae0e7f 100644 --- a/src/benchmarks/keydb.py +++ b/src/benchmarks/keydb.py @@ -35,13 +35,9 @@ class BenchmarkKeyDB(Benchmark): name = "keydb" self.cmd = "memtier_benchmark –hide-histogram --threads {threads} –data-size {size}" - # self.args = {"threads": Benchmark.scale_threads_for_cpus(1 / 2), - # "size": [8, 64, 256, 1024, 4096, 16384]} + self.args = {"threads": Benchmark.scale_threads_for_cpus(1 / 2), + "size": [8, 64, 256, 1024, 4096, 16384]} - self.args = {"threads": [2], - "size": [64]} - - self.servers = [{ "name": "keydb", "cmd": f"keydb-server --server-threads {cpu_count()//2}", @@ -107,6 +103,14 @@ class BenchmarkKeyDB(Benchmark): os.remove("dump.rdb") def summary(self): - pass + self.plot_fixed_arg("{totals_ops}", + ylabel="'OPS/second'", + title="'KeyDB Operations: ' + str(perm)", + filepostfix="total_ops") + + self.plot_fixed_arg("{keydb_vmhwm}", + ylabel="'VmHWM [KB]'", + title="'KeyDB Memusage: ' + str(perm)", + filepostfix="vmhwm") keydb = BenchmarkKeyDB() -- cgit v1.2.3