commit | d9dda32040f2c664321e3f9c189154e93726e397 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | Thu Feb 04 21:36:03 2021 -0800 |
committer | GitHub <noreply@github.com> | Thu Feb 04 21:36:03 2021 -0800 |
tree | c20bd6e89631ee0647b65c08bf6baf9b1fd34aa0 | |
parent | d938816acf71a74f1bd13fdf0534b3d9ea962e44 [diff] |
Reduce overhead on random timings (GH-24455)
diff --git a/Lib/random.py b/Lib/random.py index 187b0a0..0df2664 100644 --- a/Lib/random.py +++ b/Lib/random.py
@@ -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)