TIL that `ag` isn’t just an alias for `ack-grep`, the Debianish name for `ack`, but actually a different program entirely (“the Silver Searcher”) which is ack-influenced but written in C instead of Perl, multithreaded, etc. It fast.https://github.com/ggreer/the_silver_searcher …
-
Show this thread
-
Replying to @mendel
You know, I keep hearing this but I'm old and tied to grep. So, I just tried it out. Searched through a 2.5G monolith code repository for a simple string. Grep took 13.5 seconds, ag 0.9 seconds. Didn't realize there was that much of a difference!
2 replies 0 retweets 0 likes -
Replying to @ahidalgosre @mendel
Huh. But, check this out: on subsequent runs, ag takes the exact same amount of time every time. Now that this must be in cache somewhere grep repeatedly only takes 0.7 seconds! It became faster than ag!
1 reply 0 retweets 0 likes -
Replying to @ahidalgosre @mendel
did you drop your FS cache between all these runs? See alsohttps://github.com/BurntSushi/ripgrep …
1 reply 0 retweets 1 like -
Nope. But it's interesting to me that it takes ag the exact same amount of time no matter what.
1 reply 0 retweets 1 like -
Replying to @ahidalgosre @mendel
I think my point is more that you aren’t doing apples-to-apples repeated benchmarks unless they look like 1) drop OS FS cache 2) time and run grep command
2 replies 0 retweets 0 likes -
dude I don't think alex needs any more help in procrastinating from finishing his book
1 reply 0 retweets 2 likes -
Says YOU
1 reply 0 retweets 2 likes -
Replying to @jhscott @mattstratton and
I didn’t suggest Alex benchmark grep binaries bit of he’s gonna, twitter code is to give him pedantic/questionable helpful advice
1 reply 0 retweets 2 likes -
The surprise is I've already gotten bored of this and have moved on to other things entirely.
2 replies 0 retweets 1 like
but seriously the things I like most about those grep-alternatives is that they have pretty output and useful defaults, and speed is a nice side benefit :Dpic.twitter.com/OvSj7BAYlQ
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.