Updated benchmark command line arguments

Fixes #475
This commit is contained in:
saschawillems 2018-07-14 11:28:58 +02:00
parent d53b098017
commit 8a6184dc81

View file

@ -72,9 +72,9 @@ os.makedirs("./benchmark", exist_ok=True)
for example in EXAMPLES: for example in EXAMPLES:
print("---- (%d/%d) Running %s in benchmark mode ----" % (CURR_INDEX+1, len(EXAMPLES), example)) print("---- (%d/%d) Running %s in benchmark mode ----" % (CURR_INDEX+1, len(EXAMPLES), example))
if platform.system() == 'Linux': if platform.system() == 'Linux':
RESULT_CODE = subprocess.call("./%s %s ./benchmark/%s 5" % (example, ARGS, example), shell=True) RESULT_CODE = subprocess.call("./%s %s -bf ./benchmark/%s.csv 5" % (example, ARGS, example), shell=True)
else: else:
RESULT_CODE = subprocess.call("%s %s ./benchmark/%s 5" % (example, ARGS, example)) RESULT_CODE = subprocess.call("%s %s -bf ./benchmark/%s.csv 5" % (example, ARGS, example))
if RESULT_CODE == 0: if RESULT_CODE == 0:
print("Results written to ./benchmark/%s.csv" % example) print("Results written to ./benchmark/%s.csv" % example)
else: else: