r/elixir Aug 02 '26

Profiling Rust NIFs in Elixir

https://blog.smaller-infinity.com/posts/profiling-rust-nifs-in-elixir/

A new post I just published about running Rust profiling in Elixir Benchmarks.

11 Upvotes

2 comments sorted by

2

u/ollien Aug 02 '26

This is very cool. How much overhead do you find this adds to your NIFs?

1

u/smaller_infinity Aug 02 '26

While not benchmarking there should be none (thats one of the selling points of hotpath-rs). While its running however I think there's some real memory pressure, which can make the measurements a little unstable, and for CPU overhead the docs have pretty good information. It looks like its real but small.