mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 08:08:58 +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
@@ -38,10 +38,10 @@ if args.labels:
|
||||
labels = args.labels.split(",")
|
||||
else:
|
||||
labels = [b["command"] for b in results]
|
||||
times = [b["times"] for b in results]
|
||||
times = [[m["time_wall_clock"]["value"] for m in b["measurements"]] for b in results]
|
||||
|
||||
if args.sort_by == "median":
|
||||
medians = [b["median"] for b in results]
|
||||
medians = [b["summary"]["time_wall_clock"]["median"] for b in results]
|
||||
indices = sorted(range(len(labels)), key=lambda k: medians[k])
|
||||
labels = [labels[i] for i in indices]
|
||||
times = [times[i] for i in indices]
|
||||
|
||||
Reference in new issue
Block a user