diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-20 14:46:57 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-02-20 14:46:57 +0100 |
| commit | 263fc655d7d8d6694c4aae06150d1190efc9c696 (patch) | |
| tree | 9f34398b8d66ee0f1075b1fb2d4b0b7e39b8735e /src | |
| parent | 32649a17826f7793a52ed6af6aefa7ae18eb9db7 (diff) | |
| download | allocbench-263fc655d7d8d6694c4aae06150d1190efc9c696.tar.gz allocbench-263fc655d7d8d6694c4aae06150d1190efc9c696.zip | |
add falsesharing pgfplot
Diffstat (limited to 'src')
| -rw-r--r-- | src/benchmarks/falsesharing.py | 33 |
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() |
