feat(bench): Make it easier to profile benchmarks
These are practices I pulled over from toml_edit when working on the performance regression caused by winnow-rs/winnow#98. Feel free to pick and choose what you want from this.
Thanks. I read your recent blog post about testing, but I'm still not sure how this can help with profiling. Is it because you avoid the libtest/criterion layer here?
This was all independent of my blog post
Pinning the lockfile makes profiling results more reproducible (two people can profile a commit and get the same relative results)
prolfile.release.debug is recommended in the performance book
As for the program, maybe there are good ways to profile benches but I didn't find one quick enough, so I made them standalone that made it easy for me to profile the cases I cared about for toml_edit. I then carried that over.
I see, thanks for the clarification!
@epage This has been sitting here for almost a year now because I was hesitant for a while and then I simply forgot about it. It's conflicted now. If you can spare some of your valueable time to rebase it, I'd be happy to merge it. :)
Eh, haven't had a need in this for a while