MCPcopy Index your code
hub / github.com/python/cpython / bench_one_thread

Function bench_one_thread

Tools/ftscalingbench/ftscalingbench.py:298–302  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

296
297
298def bench_one_thread(func):
299 t0 = time.perf_counter_ns()
300 func()
301 t1 = time.perf_counter_ns()
302 return t1 - t0
303
304
305def bench_parallel(func):

Callers 2

benchmarkFunction · 0.85
mainFunction · 0.85

Calls 1

funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…