(key, value)
| 463 | low, high = N-args.limit, N |
| 464 | # How to print entries. |
| 465 | def print_entry(key, value): |
| 466 | def stats(s, units=""): |
| 467 | conf = "{:0.1f}({:0.2f}%)".format(s['ci']['abs'], s['ci']['perc']) |
| 468 | return "{:8.1f}{} +/- {:15s}".format(s['average'], units, conf) |
| 469 | print("{:>50s} {} {}".format( |
| 470 | key, |
| 471 | stats(value['time_stat'], units="ms"), |
| 472 | stats(value['count_stat']) |
| 473 | )) |
| 474 | # Print and calculate partial sums, if necessary. |
| 475 | for i in range(low, high): |
| 476 | print_entry(*L[i]) |
no test coverage detected
searching dependent graphs…