Faster --stats
This commit is contained in:
parent
dee9f37a17
commit
e610acfc8f
@ -163,6 +163,7 @@ columns = [
|
|||||||
("helper_core_fixed", "helper_core", "core"),
|
("helper_core_fixed", "helper_core", "core"),
|
||||||
("helper_ht", "helper_core", "hthread"),
|
("helper_ht", "helper_core", "hthread"),
|
||||||
]
|
]
|
||||||
|
if not args.stats:
|
||||||
for (col, icol, key) in columns:
|
for (col, icol, key) in columns:
|
||||||
df[col] = df[icol].apply(remap_core(key))
|
df[col] = df[icol].apply(remap_core(key))
|
||||||
print_timed(f"Column {col} added")
|
print_timed(f"Column {col} added")
|
||||||
@ -244,7 +245,7 @@ def export_stats_csv():
|
|||||||
"""
|
"""
|
||||||
Compute the statistic for 1 helper core/main core/slice/column
|
Compute the statistic for 1 helper core/main core/slice/column
|
||||||
- median : default, not influenced by errors
|
- median : default, not influenced by errors
|
||||||
- average : better accuracy when observing floor steps in the results
|
- average : better precision when observing floor steps in the results
|
||||||
"""
|
"""
|
||||||
# return wq.median(x["time"], x[key])
|
# return wq.median(x["time"], x[key])
|
||||||
return np.average(x[key], weights=x["time"])
|
return np.average(x[key], weights=x["time"])
|
||||||
|
Loading…
Reference in New Issue
Block a user