Message339621
More benchmarks for slow iterators:
import perf
runner = perf.Runner()
runner.timeit("list_comp",
stmt="[x**2 for x in k]",
setup="k=iter(list(range(10)))")
Current master:
❯ ./python.exe ../check.py
.....................
list_comp: Mean +- std dev: 924 ns +- 35 ns
PR 12718:
❯ ./python.exe ../check.py
.....................
list_comp: Mean +- std dev: 1.17 us +- 0.06 us |
|
Date |
User |
Action |
Args |
2019-04-08 11:39:43 | pablogsal | set | recipients:
+ pablogsal, ronaldoussoren, ncoghlan, methane, serhiy.storchaka, Aaron Hall, anthony shaw |
2019-04-08 11:39:43 | pablogsal | set | messageid: <1554723583.69.0.457400739618.issue36551@roundup.psfhosted.org> |
2019-04-08 11:39:43 | pablogsal | link | issue36551 messages |
2019-04-08 11:39:43 | pablogsal | create | |
|