From 9cf7987ca27bcc54c1326c2d7256543a332c3ff1 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 21 Feb 2020 14:19:38 +0100 Subject: use plots from src.plots --- src/benchmarks/keydb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/benchmarks/keydb.py') diff --git a/src/benchmarks/keydb.py b/src/benchmarks/keydb.py index a77de76..2b831eb 100644 --- a/src/benchmarks/keydb.py +++ b/src/benchmarks/keydb.py @@ -26,6 +26,7 @@ from multiprocessing import cpu_count from src.artifact import GitArtifact from src.benchmark import Benchmark +import src.plots as plt from src.util import print_info, run_cmd @@ -109,12 +110,12 @@ class BenchmarkKeyDB(Benchmark): os.remove("dump.rdb") def summary(self): - self.plot_fixed_arg("{totals_ops}", + plt.plot_fixed_arg(self, "{totals_ops}", ylabel="'OPS/second'", title="'KeyDB Operations: ' + str(perm)", filepostfix="total_ops") - self.plot_fixed_arg("{keydb_vmhwm}", + plt.plot_fixed_arg(self, "{keydb_vmhwm}", ylabel="'VmHWM [KB]'", title="'KeyDB Memusage: ' + str(perm)", filepostfix="vmhwm") -- cgit v1.2.3