If you are trying to optimise a filesystem operation, remember to clear Linux buffers and cache between benchmarks or some of the file reads will be served from memory!
Clear the caches and buffers using:
sync; echo 3 > /proc/sys/vm/drop_caches
Otherwise, subsequent runs of your code will appear faster as more file reads are cached in memory.