MCPcopy Create free account
hub / github.com/tox-dev/filelock / _report

Function _report

tasks/benchmark.py:202–207  ·  view source on GitHub ↗
(samples: list[Sample])

Source from the content-addressed store, hash-verified

200
201
202def _report(samples: list[Sample]) -> None:
203 width = max(len(sample.name) for sample in samples)
204 print(f"\n{'metric':<{width}} {'median':>12} {'p95':>12} unit")
205 print("-" * (width + 34))
206 for sample in samples:
207 print(f"{sample.name:<{width}} {sample.median:>12.3f} {sample.p95:>12.3f} {sample.unit}")
208
209
210if __name__ == "__main__":

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected