aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2018-09-14 14:32:36 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2018-09-14 14:32:36 +0200
commite6ccf23edfd14767a45d618ceb58c5b40429ecf6 (patch)
treec6d4af75c4fb427d5a479898078d073aea8952d7
parentbded5bf95f032e11f1baea2b0967f5f45109984e (diff)
downloadallocbench-e6ccf23edfd14767a45d618ceb58c5b40429ecf6.tar.gz
allocbench-e6ccf23edfd14767a45d618ceb58c5b40429ecf6.zip
cleanup bench.py
-rwxr-xr-xbench.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bench.py b/bench.py
index 237afa3..b661a56 100755
--- a/bench.py
+++ b/bench.py
@@ -7,11 +7,12 @@ import common_targets
from falsesharing import falsesharing
from loop import loop
-# from bench_conprod import conprod
from mysql import mysql
from dj_trace import dj_trace
from larson import larson
+benchmarks = [loop, mysql, falsesharing, dj_trace, larson]
+
parser = argparse.ArgumentParser(description="benchmark memory allocators")
parser.add_argument("-s", "--save", help="save benchmark results to disk", action='store_true')
parser.add_argument("-l", "--load", help="load benchmark results from disk", action='store_true')
@@ -22,9 +23,6 @@ parser.add_argument("-ns", "--nosum", help="don't produce plots", action='store_
parser.add_argument("-sd", "--summarydir", help="directory where all plots and the summary go", type=str)
parser.add_argument("-a", "--analyse", help="collect allocation sizes", action='store_true')
-
-benchmarks = [loop, mysql, falsesharing, dj_trace, larson]
-
def main():
args = parser.parse_args()
print (args)