aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-20 14:46:57 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-20 14:46:57 +0100
commit263fc655d7d8d6694c4aae06150d1190efc9c696 (patch)
tree9f34398b8d66ee0f1075b1fb2d4b0b7e39b8735e
parent32649a17826f7793a52ed6af6aefa7ae18eb9db7 (diff)
downloadallocbench-263fc655d7d8d6694c4aae06150d1190efc9c696.tar.gz
allocbench-263fc655d7d8d6694c4aae06150d1190efc9c696.zip
add falsesharing pgfplot
-rw-r--r--src/benchmarks/falsesharing.py33
1 files changed, 24 insertions, 9 deletions
diff --git a/src/benchmarks/falsesharing.py b/src/benchmarks/falsesharing.py
index fb4627d..b9d0006 100644
--- a/src/benchmarks/falsesharing.py
+++ b/src/benchmarks/falsesharing.py
@@ -96,13 +96,13 @@ class BenchmarkFalsesharing(Benchmark):
autoticks=False,
fixed=["bench"])
- plt.plot_fixed_arg(self,
- "({LLC-load-misses}/{LLC-loads})*100",
- ylabel="llc cache misses in %",
- title="LLC misses: {arg} {arg_value}",
- filepostfix="llc-misses",
- autoticks=False,
- fixed=["bench"])
+ # plt.plot_fixed_arg(self,
+ # "({LLC-load-misses}/{LLC-loads})*100",
+ # ylabel="llc cache misses in %",
+ # title="LLC misses: {arg} {arg_value}",
+ # filepostfix="llc-misses",
+ # autoticks=False,
+ # fixed=["bench"])
plt.write_tex_table(self, [{
"label": "Speedup",
@@ -111,8 +111,23 @@ class BenchmarkFalsesharing(Benchmark):
}],
filepostfix="speedup.table")
- plt.export_stats_to_csv(self, "speedup", "time")
- plt.export_stats_to_csv(self, "l1chache_misses", "l1-misses")
+ # plt.export_stats_to_csv(self, "speedup", "time")
+ # plt.export_stats_to_csv(self, "l1chache_misses", "l1-misses")
+
+ # pgfplots
+ for bench in args["bench"]:
+ plt.pgfplot(self,
+ self.iterate_args_fixed({"bench": bench}, args=args),
+ "int(perm.threads)",
+ "{speedup}",
+ xlabel="Threads",
+ ylabel="Speedup",
+ title=f"{bench}: Speedup",
+ postfix=f"{bench}.speedup")
+
+ # create pgfplot legend
+ plt.pgfplot_legend(self)
+
falsesharing = BenchmarkFalsesharing()