Skip to content

Commit

Permalink
Adjusted number formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshifter committed Jun 27, 2019
1 parent f371a65 commit 7c906c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/summary.py
Expand Up @@ -35,9 +35,9 @@ def main():
max_value = max(values)
min_value = min(values)
if max_value >= 1000:
value_strs = [f'__{x/1000:5.5} us__' if x == min_value else f' {x/1000:5.5} us ' for x in values]
value_strs = [f'__{x/1000:3.4} us__' if x == min_value else f' {x/1000:3.4} us ' for x in values]
else:
value_strs = [f'__{x:5.5f} ns__' if x == min_value else f' {x:5.5f} ns ' for x in values]
value_strs = [f'__{x:3.4f} ns__' if x == min_value else f' {x:3.4f} ns ' for x in values]
pt.add_row([bench_name] + value_strs)
pt.sortby = 'benchmark'
pt.align = 'r'
Expand Down

0 comments on commit 7c906c8

Please sign in to comment.