diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-07 15:54:25 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-04-07 15:54:25 +0200 |
| commit | fe26e05dfba7b6c4a3e28b2be6dc369426277790 (patch) | |
| tree | e724a1264ea3e1f07f327d6d27e0c5afafa09d23 /src/benchmarks/cfrac.py | |
| parent | 57d94cd47a4a5c187aed2245b0f213ba520f2405 (diff) | |
| download | allocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.tar.gz allocbench-fe26e05dfba7b6c4a3e28b2be6dc369426277790.zip | |
unify plotting code
Now there is only a single plot function which takes a plot type as
well as some plot and figure options.
Diffstat (limited to 'src/benchmarks/cfrac.py')
| -rw-r--r-- | src/benchmarks/cfrac.py | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/src/benchmarks/cfrac.py b/src/benchmarks/cfrac.py index 9b4bc64..1f495e6 100644 --- a/src/benchmarks/cfrac.py +++ b/src/benchmarks/cfrac.py @@ -76,27 +76,36 @@ class BenchmarkCfrac(Benchmark): def summary(self): # Speed - plt.barplot_single_arg(self, - "{task-clock}/1000", - ylabel='"cpu-second"', - title='"Cfrac: runtime"', - file_postfix="time") + plt.plot(self, + "{task-clock}/1000", + plot_type='bar', + fig_options={ + 'ylabel': 'cpu-second', + 'title': 'Cfrac: runtime', + }, + file_postfix="time") # L1 cache misses - plt.barplot_single_arg( + plt.plot( self, "({L1-dcache-load-misses}/{L1-dcache-loads})*100", - ylabel="L1 misses in %", - title="Cfrac l1 cache misses", - file_postfix="l1misses", - yerr=False) + plot_type='bar', + fig_options={ + 'ylabel': "L1 misses in %", + 'title': "Cfrac l1 cache misses", + 'yerr': False + }, + file_postfix="l1misses") # Memusage - plt.barplot_single_arg(self, - "{VmHWM}", - ylabel="VmHWM in KB", - title="Cfrac VmHWM", - file_postfix="vmhwm") + plt.plot(self, + "{VmHWM}", + plot_type='bar', + fig_options={ + 'ylabel': "VmHWM in KB", + 'title': "Cfrac VmHWM", + }, + file_postfix="vmhwm") plt.write_tex_table(self, [{ "label": "Runtime [ms]", |
