mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-27 02:08:52 +00:00
Improve table formatting, add calculated performance difference.
This commit is contained in:
committed by
Allison Vacanti
parent
d9704f0db1
commit
8fcad4908f
@@ -87,8 +87,11 @@ def get_row(cmp_benches, ref_benches):
|
||||
cmp_noise = find_named_value("value", cmp_noise_summary["values"])["value"]
|
||||
ref_noise = find_named_value("value", ref_noise_summary["values"])["value"]
|
||||
|
||||
yield f"{state_description} {cmp_time:0.6f} {ref_time:0.6f} {cmp_noise:0.6f}% {ref_noise:0.6f}%\n".split()
|
||||
# Relative time comparison
|
||||
yield [cmp_bench['name'], state_description] + f"{cmp_time - ref_time} {cmp_time} {ref_time} {cmp_noise:0.6f}% {ref_noise:0.6f}%\n".split()
|
||||
|
||||
|
||||
print(tabulate.tabulate(row for row in get_row(cmp_benches, ref_benches)))
|
||||
|
||||
print(tabulate.tabulate((row for row in get_row(cmp_benches, ref_benches)),
|
||||
floatfmt="0.12f",
|
||||
headers=("Name", "Parameters", "Old - New", "New Time", "Old Time", "New Std", "Old Std"),
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user