This is just a short post about something I recently discovered in the Rust ecosystem:

Criterion + pprof = 🔥

Update: Based on this blog post, pprof now ships with a custom profiler for Criterion since version 0.4.2! Make sure to check out this example and enable "criterion" and "flamegraph" crate features.


Criterion is a well-known and often-used benchmarking framework in the Rust ecosystem. If you’ve not yet heard of it, definitely check it out!

Since v0.3, Criterion supports in-process profiling hooks. They allow us to use a custom profiler while running benchmarks. …

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store