I don’t want my benchmarks to be measured in milliseconds, I want them measured in microseconds.

12 points•Brajeshwar•1 day ago•3 comments•

3 comments

arch_rustabout 23 hours ago
Surprised he didn't use https://github.com/gungraun/gungraun to easily see the instruction count.
Sytten1 day ago
I wish the blog showed some code so we could learn what optimizations the AI did. At some point there is also a tradeoff between speed/memory and proper code abstractions.
sgarland1 day ago
It did, near the end. byteseek [0].

As to tradeoffs, IMO it depends on your goals. It seems like the goal here was performance at any cost, so potentially inscrutable code is probably acceptable to the author.

0: https://github.com/minimaxir/byteseek

Read the full thread on Hacker News →

Related stories