Skip to content
Snippets Groups Projects
Commit 9523c56c authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

run: also record the duration of the run

This will be useful to steer the scheduling according to the usual run-time of
benchmark combination.
parent 84816eeb
No related branches found
No related tags found
1 merge request!8run: also record the duration of the run
Pipeline #56121 passed
......@@ -57,6 +57,8 @@
def run_one(bin_env_path, data_env_path, benchmark, result):
result_data = {}
result_data['run'] = {}
result_data['run']["timestamp"] = time.time()
# gather info about the binary environment
bin_env_desc = poulpe.bin_env_file(bin_env_path)
......@@ -73,8 +75,6 @@
result_data['benchmark'] = {}
result_data['benchmark']['name'] = benchmark_data['meta']['name']
result_data['run'] = {}
result_data['run']["timestamp"] = time.time()
# building the benchmark scenarion, that will likely changes often and quickly
cmd = SimpleCommand(benchmark_data)
......@@ -91,6 +91,8 @@
result_data['result']['time']['min'] = r['results'][0]['min']
result_data['result']['time']['max'] = r['results'][0]['max']
result_data['run']["duration"] = time.time() - result_data['run']["timestamp"]
poulpe.write_data(result, result_data)
return 0
......
......@@ -112,6 +112,7 @@
min = * (glob)
standard-deviation = * (glob)
run:
duration = * (glob)
timestamp = * (glob)
Quick comparision of values
......@@ -146,4 +147,5 @@
result.time.median: * -> * (glob)
result.time.min: * -> * (glob)
result.time.standard-deviation: * -> * (glob)
run.duration: * -> * (glob)
run.timestamp: * -> * (glob)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment