|
|
|
|
|
by jitl
526 days ago
|
|
Mostly I want to benchmark code in our production monorepo, so a web tool doesn’t make much sense. We have a bunch of data structure code and standard utility libraries so it’s not feasible to copy everything into a web form. 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. |
|
I was wondering if there is a tool that can profile nodejs code? I did find some options(most of them are web tools) but they dont seem to give out information as much as mitata about what and where my code is used more often although mitata is a benchmarking tool.
What profilers do you use? Thanks :)