iai-callgrind gives you deterministic, instruction-count benchmarks. The catch: it needs Valgrind, and Valgrind has zero Apple Silicon support.
Here's how I run them locally on an M-series Mac in a native arm64 container - seccomp trap and all.
#rust #rustlang #performance #benchmarking #applesilicon #valgrind
https://martinhicks.dev/articles/running-iai-callgrind-on-apple-silicon

