mirror of https://github.com/python/cpython.git
Reduce overhead on random timings (GH-24455)
This commit is contained in:
parent
d938816acf
commit
d9dda32040
|
@ -881,7 +881,7 @@ def _test_generator(n, func, args):
|
|||
from time import perf_counter
|
||||
|
||||
t0 = perf_counter()
|
||||
data = [func(*args) for i in range(n)]
|
||||
data = [func(*args) for i in _repeat(None, n)]
|
||||
t1 = perf_counter()
|
||||
|
||||
xbar = mean(data)
|
||||
|
|
Loading…
Reference in New Issue