aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/keydb.py18
1 files 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()