Absolutely absurd bench results with fat LTO

123 · Users Rust Lang · June 13, 2026, 8:23 p.m.
Summary
This blog post discusses the use of `black_box` in benchmarking functions in Rust, illustrating how it prevents certain compiler optimizations that can skew benchmarking results. The example provided focuses on the GCD (Greatest Common Divisor) benchmark test, demonstrating its practical significance for developers seeking accurate performance measurements.