Browse Source

use total time in submitmethod benchmark too

master
Constantin Fürst 1 year ago
parent
commit
6cde7288e9
  1. 11
      benchmarks/benchmark-plotters/plot-opt-submitmethod.py

11
benchmarks/benchmark-plotters/plot-opt-submitmethod.py

@ -35,7 +35,14 @@ def index_from_element(value,array):
def load_and_process_submit_json(file_path): def load_and_process_submit_json(file_path):
with open(file_path, 'r') as file: with open(file_path, 'r') as file:
data = json.load(file) data = json.load(file)
return data["list"][0]["report"]["time"]
iterations = data["list"][0]["task"]["iterations"]
return {
"total": data["list"][0]["report"]["total"] / iterations,
"combined": data["list"][0]["report"]["combined"],
"submission": data["list"][0]["report"]["submission"],
"completion": data["list"][0]["report"]["completion"]
}
# Function to plot the graph for the new benchmark # Function to plot the graph for the new benchmark
@ -48,7 +55,7 @@ def create_submit_dataset(file_paths, type_label):
idx = 0 idx = 0
for file_path in file_paths: for file_path in file_paths:
time = load_and_process_submit_json(file_path) time = load_and_process_submit_json(file_path)
times.append(time["combined"])
times.append(time["total"])
idx = idx + 1 idx = idx + 1
# Adjust time measurements based on type # Adjust time measurements based on type

Loading…
Cancel
Save