From f1f2b7ebb57d1d5a985cbded13ac39f0388a1eef Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 20 Jul 2018 16:14:23 +0200 Subject: make run argument an integer --- bench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bench.py') 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] -- cgit v1.2.3