From c192f47de98dc205cac7deb0af367b087f0bfd84 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 18 Sep 2018 17:40:57 +0200 Subject: use perf again and add cache and rss plot --- larson.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/larson.py b/larson.py index 9ec48ab..f915495 100644 --- a/larson.py +++ b/larson.py @@ -14,7 +14,6 @@ class Benchmark_Larson( Benchmark ): (randomly selected) to other threads to be freed.""" self.cmd = "build/larson{binary_suffix} 1 8 {maxsize} 1000 50000 1 {threads}" - self.measure_cmd = "" self.args = { "maxsize" : [8, 32, 64, 128, 256, 512, 1024], @@ -33,9 +32,23 @@ class Benchmark_Larson( Benchmark ): def summary(self, sumdir): # Plot threads->throughput and maxsize->throughput - self.plot_fixed_arg("{throughput}", - ylabel="'OPS/s'", + self.plot_fixed_arg("{throughput}/1000000", + ylabel="'MOPS/s'", title = "'Larson: ' + arg + ' ' + str(arg_value)", + filepostfix = "throughput", + sumdir=sumdir) + + self.plot_fixed_arg("({L1-dcache-load-misses}/{L1-dcache-loads})*100", + ylabel="'l1 cache misses in %'", + title = "'Larson cache misses: ' + arg + ' ' + str(arg_value)", + filepostfix = "cachemisses", + sumdir=sumdir) + + # Memusage + self.plot_fixed_arg("int({VmHWM})", + ylabel='"VmHWM in kB"', + title= '"Loop Memusage: " + arg + " " + str(arg_value)', + filepostfix="memusage", sumdir=sumdir) larson = Benchmark_Larson() -- cgit v1.2.3