Skip to content
Snippets Groups Projects

Add batch approach for matrix multiplication

1 file
+ 8
1
Compare changes
  • Side-by-side
  • Inline
+ 8
1
@@ -21,8 +21,15 @@ def read_and_combine_json(files, filter):
@@ -21,8 +21,15 @@ def read_and_combine_json(files, filter):
with open(f_name, 'r') as f_stream:
with open(f_name, 'r') as f_stream:
result_obj = json.load(f_stream)
result_obj = json.load(f_stream)
results_normalized = result_obj["benchmarks"]
results_normalized = result_obj["benchmarks"]
 
 
test_name_parts = results_normalized["name"].split("/")
 
results_normalized["initializer"] = test_name_parts[0]
 
results_normalized["method"] = test_name_parts[1]
 
if len(test_name_parts) > 2:
 
results_normalized["parameters"] = test_name_parts[2:]
 
for result_normalized in results_normalized:
for result_normalized in results_normalized:
if filter and not result_normalized["name"].split['/'][1].startswith(filter):
if filter and not result_normalized["method"].startswith(filter):
continue
continue
result_normalized["context"] = result_obj["context"]
result_normalized["context"] = result_obj["context"]
result_normalized["compiler_version"], result_normalized["architecture"] = basename.replace("results-", "").replace(".json", "").split("-")
result_normalized["compiler_version"], result_normalized["architecture"] = basename.replace("results-", "").replace(".json", "").split("-")
Loading