From 25c4d81069f576354d0279bf38417c236e924540 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 25 Mar 2019 17:49:39 +0100 Subject: move benchmark definitions into src/benchmarks bench now loads all *.py files from src/benchmarks as benchmarks --- src/benchmarks/falsesharing.py | 74 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 src/benchmarks/falsesharing.py (limited to 'src/benchmarks/falsesharing.py') diff --git a/src/benchmarks/falsesharing.py b/src/benchmarks/falsesharing.py new file mode 100644 index 0000000..f6375a6 --- /dev/null +++ b/src/benchmarks/falsesharing.py @@ -0,0 +1,74 @@ +import matplotlib.pyplot as plt +import numpy as np +import re + +from src.benchmark import Benchmark + +time_re = re.compile("^Time elapsed = (?P