Skip to content
Snippets Groups Projects
Commit fff71a80 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

scripts: group results more flat

parent 200951f8
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@
import sys
from collections import defaultdict
from functools import partial
from pathlib import Path
......@@ -19,5 +18,5 @@
"""dispatch a list of result into consistent subgroup
for now lets keep it simple:
benchmark -> hg-variant -> repo
benchmark -> results
"""
......@@ -23,9 +22,4 @@
"""
repo_func = partial(defaultdict, list)
hg_branch_func = partial(defaultdict, repo_func)
hg_variant_func = partial(defaultdict, hg_branch_func)
benchmark_func = partial(defaultdict, hg_variant_func)
benchmarks = benchmark_func()
benchmarks = defaultdict(list)
for r in results:
b_name = r["benchmark"]["name"]
......@@ -30,14 +24,8 @@
for r in results:
b_name = r["benchmark"]["name"]
flavor = r["bin-env-vars"]["hg"]["flavor"]
branch = r["bin-env-vars"]["hg"]["changeset"]["branch"]
repo = r["data-env-vars"]["name"]
benchmarks[b_name][flavor][branch][repo].append(r)
for w in benchmarks.values():
for x in w.values():
for y in x.values():
for z in y.values():
z.sort(key=result_sort_key)
benchmarks[b_name].append(r)
for res in benchmarks.values():
res.sort(key=result_sort_key)
return benchmarks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment