Created
June 28, 2010 23:46
-
-
Save anonymous/456559 to your computer and use it in GitHub Desktop.
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
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