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/redis.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/benchmarks/redis.py') 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(\\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() -- cgit v1.2.3