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

Function _one

tasks/benchmark.py:184–187  ·  view source on GitHub ↗
(run: Callable[[], object])

Source from the content-addressed store, hash-verified

182
183
184def _one(run: Callable[[], object]) -> float:
185 started = time.perf_counter()
186 run()
187 return time.perf_counter() - started
188
189
190def _percentile(values: list[float], percentile: int) -> float:

Callers 1

_timedFunction · 0.85

Calls 1

runFunction · 0.50

Tested by

no test coverage detected