Created
November 17, 2021 09:48
-
-
Save Flouse/542977fcf4a5814519d6d3d0732b0193 to your computer and use it in GitHub Desktop.
Time consumed Comparison of grep, egrep and ripgrep
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
cmd: | |
time docker logs docker-1 -f --tail 1000000 2>&1 | egrep error --color | |
grep | |
Executed in 10.43 secs fish external | |
usr time 6.51 secs 254.00 micros 6.51 secs | |
sys time 1.23 secs 979.00 micros 1.23 secs | |
egrep | |
________________________________________________________ | |
Executed in 8.25 secs fish external | |
usr time 5.10 secs 170.00 micros 5.10 secs | |
sys time 1.11 secs 772.00 micros 1.11 secs | |
rg | |
________________________________________________________ | |
Executed in 5.21 secs fish external | |
usr time 0.76 secs 0.24 millis 0.76 secs | |
sys time 1.15 secs 1.15 millis 1.15 secs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment