When doing data structure work I’ve started writing micro benchmark files with mitata (https://github.com/evanwashere/mitata) which does a decent job running GC between runs and outputs some very cute graphs and such. I recently rewrote a core container class we use at Notion and for a 5% speed up on a bunch of our public API routes.
OP, I see you have a mitata-inspired benchmark library “benchmate” (https://github.com/3rd/benchmate/tree/master), I’m curious about difference from mitata, what was missing from it, features added? I looked a bit at the code and it’s certainly easier to read… mitata codebase feels like C written by someone who’s too smart.