← Back to context

Comment by genewitch

2 days ago

Hey, that's perfectly valid for arguing with your friend about which one to deploy on our server, all things equal.

I do this sort of thing to see what tools are faster all the time. ripgrep, ag(silver searcher), grep, MongoDB was one we were arguing about for a while recently.

Which one won? :)

(I'm the author of ripgrep.)

  • ripgrep, except against the full 160GB dataset, mongoDB was faster on my ryzen.

    I have a lot of subtitles. I'm partially hard of hearing and partially i can't stand the way everything is mastered, so i use volume normalization (sometimes called "night mode", vizio calls it this) and subtitles to make up for the fact that the audio tracks in most things is bad.

    Well a side effect of subtitles is now i have context for every video that i can search. grep was grep.

    you didn't think i'd leave you hanging https://i.imgur.com/Vs5AAT7.png

    some other non-statistics from that day: 15GB sorted password list, newline delimited, UTF-8 from spinningrust drive 64 seconds (~234MB/s) to make a copy of the file. ag and rg took 3.2 seconds to search the copy. I'm actually hesitant to state that grep took 52 seconds...

    Thanks for replying, thanks for making me remember the great conversations we had around those topics a couple months ago, and thanks for creating ripgrep, it's my go-to for anything non-trivial!

    • Love it! That's awesome. Thank you for replying. :-)

      I've occasionally wanted to put the subtitles from all of my Simpson episodes into an easily searchable format. What do you use to extract subtitles?

      4 replies →