aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2018-07-20 16:14:23 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2018-07-20 16:14:23 +0200
commitf1f2b7ebb57d1d5a985cbded13ac39f0388a1eef (patch)
tree97a86f94af20e69616483d51c0ff1b0c0659fa0b /bench.py
parent24371760a19ad234cd96b10a79afffcb95c4c293 (diff)
downloadallocbench-f1f2b7ebb57d1d5a985cbded13ac39f0388a1eef.tar.gz
allocbench-f1f2b7ebb57d1d5a985cbded13ac39f0388a1eef.zip
make run argument an integer
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench.py b/bench.py
index 1ecec73..c52c0c1 100755
--- a/bench.py
+++ b/bench.py
@@ -9,7 +9,7 @@ from bench_mysql import mysql
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')
-parser.add_argument("-r", "--runs", help="how often the benchmarks run", default=3)
+parser.add_argument("-r", "--runs", help="how often the benchmarks run", default=3, type=int)
benchmarks = [loop, conprod, mysql]