Created
October 31, 2019 17:00
-
-
Save rdp/7162414833becbee5919cda855f1cb86 to your computer and use it in GitHub Desktop.
cat vs direct on an NFS mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls -lh a | |
-rw-rw-r-- 1 x x 10G Oct 31 16:52 a | |
$ time grep abc < a | |
real 0m20.633s | |
user 0m9.745s | |
sys 0m10.837s | |
$ time grep abc a | |
real 0m20.781s | |
user 0m9.806s | |
sys 0m10.924s | |
$ time cat a | grep abc | |
real 0m16.032s | |
user 0m6.610s | |
sys 0m14.072s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment