Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 61ccfb8

Browse filesBrowse files
committed
test(benchmark): more reasonable numeric displays
1 parent 2fa45d6 commit 61ccfb8
Copy full SHA for 61ccfb8

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎lab/benchmark/benchmark.py

Copy file name to clipboardExpand all lines: lab/benchmark/benchmark.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,11 @@ def as_table_row(vals):
541541
key = (*tup, col)
542542
key = tuple(key[i] for i in remap)
543543
result_time = self.result_data[key] # type: ignore
544-
row.append(f"{result_time:.3f} s")
544+
row.append(f"{result_time:.1f} s")
545545
col_data[col] = result_time
546546
for _, num, denom in ratios:
547547
ratio = col_data[num] / col_data[denom]
548-
row.append(f"{ratio * 100:.2f}%")
548+
row.append(f"{ratio * 100:.0f}%")
549549
print(as_table_row(row))
550550

551551

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.