diff options
| -rw-r--r-- | src/benchmarks/dj_trace.py | 28 | ||||
| -rw-r--r-- | src/benchmarks/loop.py | 1 | ||||
| -rw-r--r-- | src/benchmarks/mysql.py | 1 | ||||
| -rw-r--r-- | src/benchmarks/realloc.py | 1 |
4 files changed, 31 insertions, 0 deletions
diff --git a/src/benchmarks/dj_trace.py b/src/benchmarks/dj_trace.py index 162750e..485ac8a 100644 --- a/src/benchmarks/dj_trace.py +++ b/src/benchmarks/dj_trace.py @@ -187,6 +187,12 @@ class Benchmark_DJ_Trace(Benchmark): plt.savefig(".".join([self.name, perm.workload, "runtime", "png"])) plt.clf() + + self.barplot_single_arg("{cputime}/1000", + ylabel='"time in ms"', + title='"total runtime"', + filepostfix="runtime") + # Function Times func_times_means = {allocator: {} for allocator in allocators} xa = np.arange(0, 6, 1.5) @@ -217,6 +223,22 @@ class Benchmark_DJ_Trace(Benchmark): plt.clf() # Memusage + # hack ideal rss in data set + allocators["Ideal_RSS"] = {"color": "C" + str(len(allocators) + 1)} + self.results["stats"]["Ideal_RSS"] = {} + for perm in self.iterate_args(args=args): + ideal_rss = self.results[list(allocators.keys())[0]][perm][0]["Ideal_RSS"]/1000 + self.results["stats"]["Ideal_RSS"][perm] = {"mean": {"Max_RSS": ideal_rss}} + + + self.barplot_single_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"]) + rss_means = {allocator: {} for allocator in allocators} for perm in self.iterate_args(args=args): for i, allocator in enumerate(allocators): @@ -237,6 +259,12 @@ class Benchmark_DJ_Trace(Benchmark): plt.savefig(".".join([self.name, perm.workload, "rss", "png"])) plt.clf() + self.export_to_csv("Max_RSS") + self.export_to_csv("cputime") + + self.export_to_dataref("Max_RSS") + self.export_to_dataref("cputime") + # Tables for perm in self.iterate_args(args=args): # collect data diff --git a/src/benchmarks/loop.py b/src/benchmarks/loop.py index bf43310..be0def8 100644 --- a/src/benchmarks/loop.py +++ b/src/benchmarks/loop.py @@ -47,6 +47,7 @@ class Benchmark_Loop(Benchmark): filepostfix="memusage.matrix") self.export_to_csv("task-clock") + self.export_to_dataref("task-clock") loop = Benchmark_Loop() diff --git a/src/benchmarks/mysql.py b/src/benchmarks/mysql.py index 1420b4d..752a4ea 100644 --- a/src/benchmarks/mysql.py +++ b/src/benchmarks/mysql.py @@ -249,6 +249,7 @@ class Benchmark_MYSQL(Benchmark): print("\end{tabular}", file=f) self.export_to_csv("transactions") + self.export_to_dataref("transactions") mysql = Benchmark_MYSQL() diff --git a/src/benchmarks/realloc.py b/src/benchmarks/realloc.py index e5dae1b..423bf44 100644 --- a/src/benchmarks/realloc.py +++ b/src/benchmarks/realloc.py @@ -24,6 +24,7 @@ class Benchmark_Realloc(Benchmark): title='"realloc micro benchmark"') self.export_to_csv("task-clock") + self.export_to_dataref("task-clock") realloc = Benchmark_Realloc() |
