diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-10-18 17:06:56 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-10-18 17:06:56 +0200 |
commit | f8fb82cd25739fc2fe67c5e6997af28f2a5590d3 (patch) | |
tree | bebffd97163aa6d225f9365157bd230324a4312e /Python/errors.c | |
parent | bf9655854bec3e4cddc0580e815938f9f678cd23 (diff) | |
download | cpython-git-f8fb82cd25739fc2fe67c5e6997af28f2a5590d3.tar.gz |
timeit: start autorange with 1 iteration, not 10
Issue #28240: timeit autorange now uses a single loop iteration if the
benchmark takes less than 10 seconds, instead of 10 iterations.
"python3 -m timeit -s 'import time' 'time.sleep(1)'" now takes 4 seconds
instead of 40 seconds.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions