aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-01-15 16:09:24 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-01-15 18:29:39 +0100
commit183795e6a9370fb06002574a3cc413cb475601e8 (patch)
tree27369517a10163fe5b25da596fc7bca3b4017501
parent3a5d4ecc1a5aa8b111caae8703d94aac244ffc6b (diff)
downloadallocbench-183795e6a9370fb06002574a3cc413cb475601e8.tar.gz
allocbench-183795e6a9370fb06002574a3cc413cb475601e8.zip
move loop.py to src/ and add cache miss plot and best matrix
-rw-r--r--src/loop.py (renamed from loop.py)13
1 files changed, 12 insertions, 1 deletions
diff --git a/loop.py b/src/loop.py
index 3f7120f..9590710 100644
--- a/loop.py
+++ b/src/loop.py
@@ -1,6 +1,6 @@
import multiprocessing
-from benchmark import Benchmark
+from src.benchmark import Benchmark
class Benchmark_Loop( Benchmark ):
def __init__(self):
@@ -34,4 +34,15 @@ class Benchmark_Loop( Benchmark ):
filepostfix="memusage",
sumdir=sumdir)
+ self.plot_fixed_arg("({L1-dcache-load-misses}/{L1-dcache-loads})*100",
+ ylabel='"L1 misses in %"',
+ title= '"Loop l1 cache misses: " + arg + " " + str(arg_value)',
+ filepostfix="l1misses",
+ sumdir=sumdir)
+
+ # Speed Matrix
+ self.write_best_doublearg_tex_table("perm.nthreads / (float({task-clock})/1000)",
+ filepostfix="memusage.matrix",
+ sumdir=sumdir)
+
loop = Benchmark_Loop()