5 comments

[ 0.17 ms ] story [ 720 ms ] thread
What's a simple way to benchmark based on allocator?
Cargo flamegraph is great.
Author here. Please note that the "cheap" in the title refers to the effort needed as well as how sophisticated the tricks are; benchmarking and optimizing your algorithms is still super important! This was discussed quite a bit on the Rust subreddit [1] when it was published.

[1]: https://www.reddit.com/r/rust/comments/fdbszu/cheap_tricks_f...

Perhaps "low cost" in the title would have made it clearer since "cheap" as a word has a lot of connotations.

Language can be very hard to get right and I have struggled with this a lot personally.

I prefer low effort.