Niccolo,

Thought you might find this article interesting: ripgrep is faster than {grep, ag, git grep, ucg, pt, sift} - Andrew Gallant's Blog

These are the types of challenges I had been thinking of. Well, my search program is much simpler because I don't need to support regular expressions, and it turns out, strstr() is SUPER FAST. I was able to run it on 3 million lines of text in like .16 seconds and print results.

But, obviously grep support is entirely different, but still an interesting group of solutions.