Python 3.8.8 (default, Feb 24 2021, 21:46:12)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]:
In [2]:
In [3]:
In [3]: ...: ...: ...: ...: ...: ...: n = 1: time=2.34 µs ± 23.2 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
n = 10: time=2.36 µs ± 27.8 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
n = 100: time=2.41 µs ± 46.1 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
n = 1,000: time=3.03 µs ± 10.5 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
n = 10,000: time=6.92 µs ± 50.8 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each)
n = 100,000: time=47.5 µs ± 127 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each)
n = 1,000,000: time=1.05 ms ± 9.72 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)
n = 10,000,000: time=16.2 ms ± 1.15 ms per loop (mean ± std. dev. of 7 runs, 100 loops each)
n = 100,000,000: time=151 ms ± 872 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
In [4]: