2 ms·
https://gist.github.com/AdamJacobMuller/8ca79af8c0102285ff076247cdc6d8fe https://gist.github.com/AdamJacobMuller/8ca79af8c0102285ff07... Results are very simil
by AdamJacobMuller 10y ago
https://gist.github.com/AdamJacobMuller/8ca79af8c0102285ff076247cdc6d8fe https://gist.github.com/AdamJacobMuller/8ca79af8c0102285ff07...
Results are very similar/identical to what my tool said.
Interestingly, If I look at strace call graphs the scandir version spends basically an identical amount of time in getdents as the os version, but, the os version spends a bunch of time in stat calls too. It just seems like on my workload, that time is considerably less than I expected.