Message228821
| Author |
pitrou |
| Recipients |
abacabadabacaba, akira, benhoyt, giampaolo.rodola, pitrou, socketpair, tim.golden, vstinner |
| Date |
2014年10月08日.23:03:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1412809431.86.0.597332597762.issue22524@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|