diff options
Diffstat (limited to 'src/benchmarks/falsesharing.py')
| -rw-r--r-- | src/benchmarks/falsesharing.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/benchmarks/falsesharing.py b/src/benchmarks/falsesharing.py index b7222f6..93c2fe9 100644 --- a/src/benchmarks/falsesharing.py +++ b/src/benchmarks/falsesharing.py @@ -70,7 +70,9 @@ class BenchmarkFalsesharing(Benchmark): data = [float(m["time"]) for m in self.results[allocator][perm]] - y_vals.append(single_threaded / np.mean(data)) + speedup = single_threaded / np.mean(data) + self.results["stats"][allocator][perm]["mean"]["speedup"] = speedup + y_vals.append(speedup) plt.plot(nthreads, y_vals, marker='.', linestyle='-', label=allocator, color=allocators[allocator]["color"]) @@ -96,5 +98,10 @@ class BenchmarkFalsesharing(Benchmark): autoticks=False, fixed=["bench"]) + self.write_tex_table([{"label": "Speedup", + "expression": "{speedup}", + "sort":">"}], + filepostfix="speedup.table") + falsesharing = BenchmarkFalsesharing() |
