commit | f8fb82cd25739fc2fe67c5e6997af28f2a5590d3 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Oct 18 17:06:56 2016 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Tue Oct 18 17:06:56 2016 +0200 |
tree | bebffd97163aa6d225f9365157bd230324a4312e | |
parent | bf9655854bec3e4cddc0580e815938f9f678cd23 [diff] |
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.