Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
298
def
bench_one_thread(func):
299
t0 = time.perf_counter_ns()
300
func()
301
t1 = time.perf_counter_ns()
302
return
t1 - t0
303
304
305
def
bench_parallel(func):
Callers
2
benchmark
Function · 0.85
main
Function · 0.85
Calls
1
func
Function · 0.50
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…