|
|
@ -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 |
|
|
|