From 60b860ce3619d5f165bf8eda6ad596d5d458d1e2 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 11 Feb 2020 13:23:55 +0100 Subject: move plotting code from src.benchmark to src.plots --- src/benchmarks/fd.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'src/benchmarks/fd.py') diff --git a/src/benchmarks/fd.py b/src/benchmarks/fd.py index 4fab958..bede21a 100644 --- a/src/benchmarks/fd.py +++ b/src/benchmarks/fd.py @@ -22,6 +22,7 @@ from urllib.request import urlretrieve from src.artifact import ArchiveArtifact, GitArtifact from src.benchmark import Benchmark +import src.plots as plt from src.util import print_info @@ -66,19 +67,21 @@ class BenchmarkFd(Benchmark): os.link(src, dest) def summary(self): - self.barplot_single_arg("{task-clock}", - ylabel='"runtime in ms"', - title='"fd runtime"', - filepostfix="runtime") + plt.barplot_single_arg(self, + "{task-clock}", + ylabel='"runtime in ms"', + title='"fd runtime"', + filepostfix="runtime") - self.export_stats_to_dataref("task-clock") + plt.export_stats_to_dataref(self, "task-clock") - self.barplot_single_arg("{VmHWM}", - ylabel='"VmHWM in KB"', - title='"fd memusage"', - filepostfix="memusage") + plt.barplot_single_arg(self, + "{VmHWM}", + ylabel='"VmHWM in KB"', + title='"fd memusage"', + filepostfix="memusage") - self.export_stats_to_dataref("VmHWM") + plt.export_stats_to_dataref(self, "VmHWM") fd = BenchmarkFd() -- cgit v1.2.3