From 6cde7288e937f1540327355f71ec3e1df88e1eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Mon, 11 Dec 2023 14:06:59 +0100 Subject: [PATCH] use total time in submitmethod benchmark too --- .../benchmark-plotters/plot-opt-submitmethod.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/benchmarks/benchmark-plotters/plot-opt-submitmethod.py b/benchmarks/benchmark-plotters/plot-opt-submitmethod.py index 4c4f107..ae1f5c4 100644 --- a/benchmarks/benchmark-plotters/plot-opt-submitmethod.py +++ b/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): with open(file_path, 'r') as 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 @@ -48,7 +55,7 @@ def create_submit_dataset(file_paths, type_label): idx = 0 for file_path in file_paths: time = load_and_process_submit_json(file_path) - times.append(time["combined"]) + times.append(time["total"]) idx = idx + 1 # Adjust time measurements based on type