Skip to content

Commit 61ccfb8

Browse files
committed
test(benchmark): more reasonable numeric displays
1 parent 2fa45d6 commit 61ccfb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lab/benchmark/benchmark.py

+2-2
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)