aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-11-23 00:08:18 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-11-23 00:08:18 +0100
commit00f74bd822dda4b39ed439f53e0767283f85c5e5 (patch)
tree971dc58fb99f78e00ba17e56de7a826dfed9e862 /bench.py
parent8c2ef987bb90b4624ea684458f35b8ca7d2e04c0 (diff)
downloadallocbench-00f74bd822dda4b39ed439f53e0767283f85c5e5.tar.gz
allocbench-00f74bd822dda4b39ed439f53e0767283f85c5e5.zip
change result format from pickle to json
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bench.py b/bench.py
index 7875955..6b2c10f 100755
--- a/bench.py
+++ b/bench.py
@@ -221,10 +221,10 @@ def main():
continue
end_time = datetime.datetime.now()
bench.results['facts']['end-time'] = end_time.isoformat()
- bench.results['facts']['duration'] = end_time - start_time
+ bench.results['facts']['duration'] = (end_time - start_time).total_seconds()
# Save results in resultdir
- bench.save(os.path.join(src.globalvars.resdir, f"{bench.name}.save"))
+ bench.save(src.globalvars.resdir)
if hasattr(bench, "cleanup"):
print_status("Cleaning up", bench.name, "...")