mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-29 00:28:57 +00:00
Export metric summaries and adapt analysis scripts
This commit is contained in:
1 parent
6d0ae4f87c
commit
1b3ec922fa
9 files changed
+292
-26
No files matched your search
@@ -53,7 +53,7 @@ with open(args.file) as f:
|
||||
|
||||
for result in results:
|
||||
label = result["command"]
|
||||
times = result["times"]
|
||||
times = [m["time_wall_clock"]["value"] for m in result["measurements"]]
|
||||
num = len(times)
|
||||
nums = range(num)
|
||||
|
||||
@@ -63,7 +63,9 @@ for result in results:
|
||||
|
||||
if not args.no_moving_average:
|
||||
moving_average_width = (
|
||||
num // 5 if args.moving_average_width is None else args.moving_average_width
|
||||
max(1, num // 5)
|
||||
if args.moving_average_width is None
|
||||
else args.moving_average_width
|
||||
)
|
||||
|
||||
average = moving_average(times, moving_average_width)
|
||||
|
||||
Reference in new issue
Block a user