MCPcopy Create free account
hub / github.com/cppla/moto / fmt_perc

Function fmt_perc

test/bench.py:178–180  ·  view source on GitHub ↗
(vals, name)

Source from the content-addressed store, hash-verified

176 return ", ".join(f"{k}:{v}" for k,v in c.most_common(top)) or "-"
177
178 def fmt_perc(vals, name):
179 p = percentiles(vals)
180 return f"{name} p50={p[50]:.1f} p90={p[90]:.1f} p95={p[95]:.1f} p99={p[99]:.1f}"
181
182 lines = []
183 lines.append(f"Total={len(results)} OK={len(ok)} Fail={len(fail)} "

Callers 1

summarizeFunction · 0.85

Calls 1

percentilesFunction · 0.85

Tested by

no test coverage detected