diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-11 14:22:07 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-11 14:25:55 +0100 |
| commit | 5d6a470ce0c7d334205293de9b596a5ea4eb2e8c (patch) | |
| tree | faaff064ca49524167e2f1933a055ee816280946 /src/benchmarks/espresso.py | |
| parent | 60b860ce3619d5f165bf8eda6ad596d5d458d1e2 (diff) | |
| download | allocbench-5d6a470ce0c7d334205293de9b596a5ea4eb2e8c.tar.gz allocbench-5d6a470ce0c7d334205293de9b596a5ea4eb2e8c.zip | |
cleanup plot code
* use str.format instead of eval for plot labels
* use meaningful variable names
* add license header
* add some doc strings
Diffstat (limited to 'src/benchmarks/espresso.py')
| -rw-r--r-- | src/benchmarks/espresso.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/benchmarks/espresso.py b/src/benchmarks/espresso.py index 1c9d4d2..5149dcb 100644 --- a/src/benchmarks/espresso.py +++ b/src/benchmarks/espresso.py @@ -82,24 +82,24 @@ class BenchmarkEspresso(Benchmark): # Speed plt.barplot_single_arg(self, "{task-clock}/1000", - ylabel='"cpu-second"', - title='"Espresso: runtime"', + ylabel="cpu-second", + title="Espresso: runtime", filepostfix="time") # L1 cache misses plt.barplot_single_arg( self, "({L1-dcache-load-misses}/{L1-dcache-loads})*100", - ylabel='"L1 misses in %"', - title='"Espresso l1 cache misses"', + ylabel="L1 misses in %", + title="Espresso l1 cache misses", filepostfix="l1misses", yerr=False) # Memusage plt.barplot_single_arg(self, "{VmHWM}", - ylabel='"VmHWM in KB"', - title='"Espresso VmHWM"', + ylabel="VmHWM in KB", + title="Espresso VmHWM", filepostfix="vmhwm") plt.write_tex_table(self, [{ |
