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

Function _report

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

Source from the content-addressed store, hash-verified

210
211
212def _report(samples: list[Sample]) -> None:
213 width = max(len(sample.name) for sample in samples)
214 print(f"\n{'metric':<{width}} {'median':>12} {'p95':>12} unit")
215 print("-" * (width + 34))
216 for sample in samples:
217 print(f"{sample.name:<{width}} {sample.median:>12.3f} {sample.p95:>12.3f} {sample.unit}")
218
219
220if __name__ == "__main__":

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected