diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-20 16:14:23 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-07-20 16:14:23 +0200 |
| commit | f1f2b7ebb57d1d5a985cbded13ac39f0388a1eef (patch) | |
| tree | 97a86f94af20e69616483d51c0ff1b0c0659fa0b | |
| parent | 24371760a19ad234cd96b10a79afffcb95c4c293 (diff) | |
| download | allocbench-f1f2b7ebb57d1d5a985cbded13ac39f0388a1eef.tar.gz allocbench-f1f2b7ebb57d1d5a985cbded13ac39f0388a1eef.zip | |
make run argument an integer
| -rwxr-xr-x | bench.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] |
