aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/redis.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-21 14:19:38 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-21 14:19:38 +0100
commit9cf7987ca27bcc54c1326c2d7256543a332c3ff1 (patch)
tree637df2da3aeb50ee94ab5dc7564e54eca79d9cb6 /src/benchmarks/redis.py
parentff939e64efa808c06d8a548bf133a9dea9b1023c (diff)
downloadallocbench-9cf7987ca27bcc54c1326c2d7256543a332c3ff1.tar.gz
allocbench-9cf7987ca27bcc54c1326c2d7256543a332c3ff1.zip
use plots from src.plots
Diffstat (limited to 'src/benchmarks/redis.py')
-rw-r--r--src/benchmarks/redis.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/benchmarks/redis.py b/src/benchmarks/redis.py
index 23c2de6..71d9227 100644
--- a/src/benchmarks/redis.py
+++ b/src/benchmarks/redis.py
@@ -24,10 +24,10 @@ archive. The used parameters are inspired by the ones used in mimalloc-bench."
import os
import re
import sys
-from urllib.request import urlretrieve
from src.artifact import ArchiveArtifact
from src.benchmark import Benchmark
+import src.plots as plt
from src.util import print_info, run_cmd
REQUESTS_RE = re.compile("(?P<requests>(\\d*.\\d*)) requests per second")
@@ -81,17 +81,17 @@ class BenchmarkRedis(Benchmark):
os.remove("dump.rdb")
def summary(self):
- self.barplot_single_arg("{requests}",
+ plt.barplot_single_arg(self, "{requests}",
ylabel='"requests per s"',
title='"redis throughput"',
filepostfix="requests")
- self.barplot_single_arg("{redis_vmhwm}",
+ plt.barplot_single_arg(self, "{redis_vmhwm}",
ylabel='"VmHWM in KB"',
title='"redis memusage"',
filepostfix="vmhwm")
- self.export_stats_to_dataref("requests")
+ plt.export_stats_to_dataref(self, "requests")
redis = BenchmarkRedis()