MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / distribution

Function distribution

tools/materialize-bench/run.py:80–85  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

78
79
80def distribution(values):
81 ordered = sorted(values)
82 return dict(n=len(values), median=statistics.median(values), mean=statistics.mean(values),
83 p95=ordered[max(0, math.ceil(0.95 * len(values)) - 1)],
84 minimum=ordered[0], maximum=ordered[-1],
85 stdev=statistics.stdev(values) if len(values) > 1 else 0.0)
86
87
88def summarize(report):

Callers 2

summarizeFunction · 0.90
summarizeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected