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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22524>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to