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

Function main

tasks/benchmark.py:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def main() -> None:
46 print(_environment())
47 samples: list[Sample] = []
48 with TemporaryDirectory(prefix="filelock-bench-") as directory:
49 root = Path(directory)
50 samples += _construction(root)
51 samples += _uncontended(root)
52 samples.append(_timeout_cpu(root))
53 samples.append(_descriptor_growth(root))
54 samples += _cancellation_latency(root)
55 samples += _contention(root)
56 _report(samples)
57
58
59def _environment() -> str:

Callers 1

benchmark.pyFile · 0.70

Calls 8

_environmentFunction · 0.85
_constructionFunction · 0.85
_uncontendedFunction · 0.85
_timeout_cpuFunction · 0.85
_descriptor_growthFunction · 0.85
_cancellation_latencyFunction · 0.85
_contentionFunction · 0.85
_reportFunction · 0.85

Tested by

no test coverage detected