MCPcopy Create free account
hub / github.com/apache/datafusion / timed_run

Function timed_run

benchmarks/compile_profile.py:84–90  ·  view source on GitHub ↗
(command: Iterable[str])

Source from the content-addressed store, hash-verified

82
83
84def timed_run(command: Iterable[str]) -> float:
85 start = time.perf_counter()
86 try:
87 subprocess.run(command, cwd=REPO_ROOT, check=True)
88 except subprocess.CalledProcessError as exc:
89 raise RuntimeError(f"command failed: {' '.join(command)}") from exc
90 return time.perf_counter() - start
91
92
93def cargo_build(profile: str) -> float:

Callers 1

cargo_buildFunction · 0.85

Calls 2

runMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…