Message386816
Can reproduce on Linux:
$ for python in /usr/bin/python3.? /usr/local/bin/python3.?
do
$python -VV
$python -m timeit -r 10 -n 100_000 -u usec -s 'S = set(range(10_000))' 'S.remove(5000);S.add(5000)'
done
Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0]
100000 loops, best of 10: 0.0831 usec per loop
Python 3.6.11 (tags/v3.6.11:d56cd4006a, Jul 1 2020, 10:47:06)
[GCC 9.3.0]
100000 loops, best of 10: 0.0968 usec per loop
Python 3.7.9 (tags/v3.7.9:13c94747c7, Oct 19 2020, 23:50:03)
[GCC 9.3.0]
100000 loops, best of 10: 0.0935 usec per loop
Python 3.9.0 (tags/v3.9.0:9cf6752276, Nov 14 2020, 15:41:20)
[GCC 9.3.0]
100000 loops, best of 10: 50.2 usec per loop |
|
Date |
User |
Action |
Args |
2021-02-11 00:31:49 | zach.ware | set | recipients:
+ zach.ware, rhettinger, eamartin |
2021-02-11 00:31:49 | zach.ware | set | messageid: <1613003509.73.0.456648849683.issue43198@roundup.psfhosted.org> |
2021-02-11 00:31:49 | zach.ware | link | issue43198 messages |
2021-02-11 00:31:49 | zach.ware | create | |
|