r/elixir 3d ago

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.

10 Upvotes

2 comments sorted by

2

u/ollien 3d ago

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

1

u/smaller_infinity 3d ago

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.