Skip to content

Instantly share code, notes, and snippets.

Created June 28, 2010 23:46
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 anonymous/456559 to your computer and use it in GitHub Desktop.
Save anonymous/456559 to your computer and use it in GitHub Desktop.
time for (( i = 0; i < 1000; i++ )); do grep -E '[[:digit:]]' /etc/services > /dev/null; done
real 0m5.262s
user 0m3.024s
sys 0m1.192s
time for (( i = 0; i < 1000; i++ )); do grep -E '[0-9]' /etc/services > /dev/null; done
real 0m5.424s
user 0m2.868s
sys 0m1.160s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment