aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/dj_trace.py14
-rw-r--r--src/benchmarks/falsesharing.py9
-rw-r--r--src/benchmarks/lld.py5
-rw-r--r--src/benchmarks/loop.py5
-rw-r--r--src/benchmarks/mysql.py8
-rw-r--r--src/benchmarks/t_test1.py8
6 files changed, 46 insertions, 3 deletions
diff --git a/src/benchmarks/dj_trace.py b/src/benchmarks/dj_trace.py
index 3f87e86..bca0d17 100644
--- a/src/benchmarks/dj_trace.py
+++ b/src/benchmarks/dj_trace.py
@@ -209,6 +209,11 @@ class BenchmarkDJTrace(Benchmark):
title='"Highwatermark of Vm (VmHWM)"',
filepostfix="newrss")
+ # self.barplot_fixed_arg("{Max_RSS}/1000",
+ # ylabel='"Max RSS in MB"',
+ # title='"Highwatermark of Vm (VmHWM)"',
+ # filepostfix="newrss")
+
del allocators["Ideal_RSS"]
del self.results["stats"]["Ideal_RSS"]
@@ -238,6 +243,15 @@ class BenchmarkDJTrace(Benchmark):
self.export_stats_to_dataref("Max_RSS")
self.export_stats_to_dataref("cputime")
+ # Big table
+ self.write_tex_table([{"label": "Runtime [ms]",
+ "expression": "{cputime}/1000",
+ "sort": "<"},
+ {"label": "Max RSS [MB]",
+ "expression": "{Max_RSS}/1000",
+ "sort":"<"}],
+ filepostfix="table")
+
# Tables
for perm in self.iterate_args(args=args):
# collect data
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()
diff --git a/src/benchmarks/lld.py b/src/benchmarks/lld.py
index 1c30ce0..d9796bc 100644
--- a/src/benchmarks/lld.py
+++ b/src/benchmarks/lld.py
@@ -274,5 +274,10 @@ class BenchmarkLld(Benchmark):
# self.export_stats_to_dataref("VmHWM")
self.export_stats_to_dataref("task-clock")
+ self.write_tex_table([{"label": "Runtime [ms]",
+ "expression": "{task-clock}",
+ "sort": "<"}],
+ filepostfix="table")
+
lld = BenchmarkLld()
diff --git a/src/benchmarks/loop.py b/src/benchmarks/loop.py
index 1f6a831..407aac1 100644
--- a/src/benchmarks/loop.py
+++ b/src/benchmarks/loop.py
@@ -74,6 +74,11 @@ class BenchmarkLoop(Benchmark):
self.write_best_doublearg_tex_table("perm.nthreads / ({task-clock}/1000)",
filepostfix="time.matrix")
+ self.write_tex_table([{"label": "MOPS/s",
+ "expression": "perm.nthreads / ({task-clock}/1000)",
+ "sort":">"}],
+ filepostfix="mops.table")
+
self.export_stats_to_csv("task-clock")
self.export_stats_to_dataref("task-clock")
diff --git a/src/benchmarks/mysql.py b/src/benchmarks/mysql.py
index 74d49cb..c7519c5 100644
--- a/src/benchmarks/mysql.py
+++ b/src/benchmarks/mysql.py
@@ -225,6 +225,14 @@ class BenchmarkMYSQL(Benchmark):
title='"Memusage sysbench oltp read only"',
filepostfix="mem")
+ self.write_tex_table([{"label": "Transactions",
+ "expression": "{transactions}",
+ "sort": ">"},
+ {"label": "Memusage [KB]",
+ "expression": "{rssmax}",
+ "sort": "<"}],
+ filepostfix="table")
+
# Colored latex table showing transactions count
d = {allocator: {} for allocator in allocators}
for perm in self.iterate_args(args=args):
diff --git a/src/benchmarks/t_test1.py b/src/benchmarks/t_test1.py
index d892a15..cbb9051 100644
--- a/src/benchmarks/t_test1.py
+++ b/src/benchmarks/t_test1.py
@@ -55,8 +55,12 @@ class BenchmarkTTest1(Benchmark):
autoticks=False)
# Speed Matrix
- self.write_best_doublearg_tex_table(yval,
- filepostfix="memusage.matrix")
+ self.write_best_doublearg_tex_table(yval, filepostfix="mops.matrix")
+
+ self.write_tex_table([{"label": "MOPS/s",
+ "expression": yval,
+ "sort": ">"}],
+ filepostfix="mops.table")
self.export_stats_to_csv("task-clock")