aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-04-07 17:22:53 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-04-07 17:22:53 +0200
commit7db2f0449594945e221ad85e10146886d8f5fe8c (patch)
tree1be32bfaccaf746d47cc90c8404f3110f362c5e2
parent60c3db918e7194f5b26a1d4d5435ced1855fafc7 (diff)
downloadallocbench-7db2f0449594945e221ad85e10146886d8f5fe8c.tar.gz
allocbench-7db2f0449594945e221ad85e10146886d8f5fe8c.zip
fix keydb and loop summaries
-rw-r--r--src/benchmarks/keydb.py4
-rw-r--r--src/benchmarks/loop.py24
2 files changed, 16 insertions, 12 deletions
diff --git a/src/benchmarks/keydb.py b/src/benchmarks/keydb.py
index 8502e21..92470b0 100644
--- a/src/benchmarks/keydb.py
+++ b/src/benchmarks/keydb.py
@@ -114,7 +114,7 @@ class BenchmarkKeyDB(Benchmark):
"{totals_ops}",
fig_options={
'ylabel': "'OPS/second'",
- 'title': "KeyDB Operations - {arg}: {arg_value}",
+ 'title': "KeyDB Operations - {fixed_part_str}",
},
file_postfix="total_ops")
@@ -122,7 +122,7 @@ class BenchmarkKeyDB(Benchmark):
"{keydb_vmhwm}",
fig_options={
'ylabel': "'VmHWM [KB]'",
- 'title': "KeyDB Memusage - {arg}: {arg_value}",
+ 'title': "KeyDB Memusage - {fixed_part_str}",
},
file_postfix="vmhwm")
diff --git a/src/benchmarks/loop.py b/src/benchmarks/loop.py
index 3c9bbac..030552b 100644
--- a/src/benchmarks/loop.py
+++ b/src/benchmarks/loop.py
@@ -1,4 +1,4 @@
-# Copyright 2018-2019 Florian Fischer <florian.fl.fischer@fau.de>
+# Copyright 2018-2020 Florian Fischer <florian.fl.fischer@fau.de>
#
# This file is part of allocbench.
#
@@ -64,19 +64,23 @@ class BenchmarkLoop(Benchmark):
plt.plot(
self,
"{mops}",
- ylabel="MOPS/cpu-second",
- title="Loop: {fixed_part_str}",
- file_postfix="time",
- autoticks=False)
+ fig_options={
+ 'ylabel': 'MOPS/cpu-second',
+ 'title': 'Loop: {fixed_part_str}',
+ 'autoticks': False,
+ },
+ file_postfix="time")
# L1 cache misses
plt.plot(
self,
"({L1-dcache-load-misses}/{L1-dcache-loads})*100",
- ylabel="L1 misses in %",
- title="Loop l1 cache misses: {fixed_part_str}",
- file_postfix="l1misses",
- autoticks=False)
+ fig_options={
+ 'ylabel': "L1 misses in %",
+ 'title': "Loop l1 cache misses: {fixed_part_str}",
+ 'autoticks': False,
+ },
+ file_postfix="l1misses")
# Speed Matrix
plt.write_best_doublearg_tex_table(
@@ -98,7 +102,7 @@ class BenchmarkLoop(Benchmark):
# pgfplot test
plt.pgfplot(self,
- self.iterate_args({"maxsize": 1024}, self.results["args"]),
+ self.iterate_args(fixed={"maxsize": 1024}, args=self.results["args"]),
"int(perm.threads)",
"{mops}",
xlabel="Threads",