File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def print_summary(results):
4141 for count_case in range (number_of_cases ):
4242
4343 print (f"\n ------ Summary of Case { count_case :02} : { cases [count_case ]} : " )
44- L = []
44+ parameter = []
4545 time_min = []
4646 time_max = []
4747 time_avg = []
@@ -50,21 +50,21 @@ def print_summary(results):
5050 print (f"Number of benchmarks = { number_of_benchmarks :04} " )
5151
5252 for parameter_tuple in benchmark_pairs .keys ():
53- L .append (parameter_tuple [0 ][ 1 ])
53+ parameter .append (parameter_tuple [0 ])
5454 times = benchmark_pairs [parameter_tuple ]["time" ]
5555 time_min .append (min (times ))
5656 time_max .append (max (times ))
5757 time_avg .append (sum (times ) / len (times ))
5858
59- summary [cases [count_case ]]["L " ] = L
59+ summary [cases [count_case ]]["parameter " ] = parameter
6060 summary [cases [count_case ]]["time_min" ] = time_min
6161 summary [cases [count_case ]]["time_max" ] = time_max
6262 summary [cases [count_case ]]["time_avg" ] = time_avg
6363
6464 for count_benchmark in range (number_of_benchmarks ):
6565 smry = summary [cases [count_case ]]
6666 print (
67- f"L : { smry ['L ' ][count_benchmark ]:04 } { smry ['time_min' ][count_benchmark ]:>#7.2g} s (min) { smry ['time_max' ][count_benchmark ]:>#7.2g} s (max) { smry ['time_avg' ][count_benchmark ]:>#7.2g} s (avg) "
67+ f"par : { smry ['parameter ' ][count_benchmark ]} { smry ['time_min' ][count_benchmark ]:>#7.2g} s (min) { smry ['time_max' ][count_benchmark ]:>#7.2g} s (max) { smry ['time_avg' ][count_benchmark ]:>#7.2g} s (avg) "
6868 )
6969
7070
You can’t perform that action at this time.
0 commit comments