From d42158a6e3518c0bd6bbb101f106433517f56400 Mon Sep 17 00:00:00 2001 From: shudson Date: Mon, 16 Sep 2024 18:15:31 -0500 Subject: [PATCH 1/2] Fix timing average --- scripts/run_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_all.py b/scripts/run_all.py index 9d18b896..0ef1a0c3 100644 --- a/scripts/run_all.py +++ b/scripts/run_all.py @@ -200,10 +200,10 @@ def set_config(): clean_all_bmarks(config['root_path'], config['bmark_list'], config['result_path']) - perf_list = [] perf_dic_acc = {} for j in range(config['run_num']): perf_dic = {} + perf_list = [] for bmark in config['bmark_list']: run_all(config['root_path'], bmark, tests) perf_list.append(get_time(config['root_path'], bmark, results)) From 91c57bcf218ceec26b12cfec42bf879bbb83c70b Mon Sep 17 00:00:00 2001 From: shudson Date: Mon, 16 Sep 2024 21:27:36 -0500 Subject: [PATCH 2/2] Get keys without naming a benchmark --- scripts/run_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_all.py b/scripts/run_all.py index 0ef1a0c3..9b839e57 100644 --- a/scripts/run_all.py +++ b/scripts/run_all.py @@ -82,7 +82,7 @@ def Postprocess(perf_dic_acc, perf_dic, bmark_list, run_num): # #del perf_dic[bmark]['seq'] mean = { 'geomean': {}} - for key in perf_dic['atax'].keys(): + for key in next(iter(perf_dic.values())).keys(): geo = 1 for bmark in bmark_list: geo = geo*pow(perf_dic[bmark][key], 1/len(bmark_list))