• Victor Stinner's avatar
    timeit: start autorange with 1 iteration, not 10 · f8fb82cd
    Victor Stinner yazdı
    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.
    f8fb82cd
timeit.py 13.1 KB