Skip to content

Commit db76d22

Browse files
add stdev to perf_compare
1 parent ee1f4c9 commit db76d22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

misc/perf_compare.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,14 @@ def main() -> None:
171171
first = -1.0
172172
for commit in commits:
173173
tt = statistics.mean(results[commit])
174+
s = statistics.stdev(results[commit])
174175
if first < 0:
175176
delta = "0.0%"
176177
first = tt
177178
else:
178179
d = (tt / first) - 1
179180
delta = f"{d:+.1%}"
180-
print(f"{commit:<25} {tt:.3f}s ({delta})")
181+
print(f"{commit:<25} {tt:.3f}s ({delta}) | stdev {s}")
181182

182183
shutil.rmtree(self_check_dir)
183184
for target_dir in target_dirs:

0 commit comments

Comments
 (0)