[issue22524] PEP 471 implementation: os.scandir() directory scanning function
Antoine Pitrou
report at bugs.python.org
Thu Oct 9 01:03:51 CEST 2014
Antoine Pitrou added the comment:
Ok, I've found it. The numbers don't look that good here (Linux, SSD):
$ ~/cpython/opt/python benchmark.py -c python /usr/share/
[...]
os.walk took 1.266s, scandir.walk took 1.852s -- 0.7x as fast
$ ~/cpython/opt/python benchmark.py -c c /usr/share/
[...]
os.walk took 1.276s, scandir.walk took 1.266s -- 1.0x as fast
$ ~/cpython/opt/python benchmark.py -c os /usr/share/
[...]
os.walk took 1.278s, scandir.walk took 0.585s -- 2.2x as fast
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22524>
_______________________________________
More information about the Python-bugs-list
mailing list