15 July 2015 What’s measured gets optimized. So if we want high-performance Rust code, we need to measure it. Some time ago I wrote about benchmarks, and how Rust’s test crate makes it easy to set up a simple benchmark. Now I’m going to tackle the second type of performance measurement: Profiling. Whenever we want to optimize, we better profile our code to see where the time is spent. Now Rust has