[Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue May 14 10:50:55 CEST 2013
- Previous message: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info
- Next message: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le Tue, 14 May 2013 10:41:01 +1200, Ben Hoyt <benhoyt at gmail.com> a écrit :
If anyone can run benchmark.py on Linux / NFS or similar, that'd be great. You'll probably have to lower DEPTH/NUMDIRS/NUMFILES first and then move the "benchtree" to the network file system to run it against that.
On a locally running VM: os.walk took 0.400s, scandir.walk took 0.120s -- 3.3x as fast
Same VM accessed from the host through a local sshfs: os.walk took 2.261s, scandir.walk took 2.055s -- 1.1x as fast
Same, but with "sshfs -o cache=no": os.walk took 24.060s, scandir.walk took 25.906s -- 0.9x as fast
Regards
Antoine.
- Previous message: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info
- Next message: [Python-Dev] Issue 11406: adding os.scandir(), a directory iterator returning stat-like info
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]