Skip to content

Instantly share code, notes, and snippets.

@rdp
Created October 31, 2019 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdp/7162414833becbee5919cda855f1cb86 to your computer and use it in GitHub Desktop.
Save rdp/7162414833becbee5919cda855f1cb86 to your computer and use it in GitHub Desktop.
cat vs direct on an NFS mount
$ 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