Why my Rust benchmarks were wrong, or how to use std::hint::black_box? (2022)
19 points by aw1621107
by bayesnet
1 subcomments
> I have no idea what the mov rcx, rsp instruction is for. The rcx register is not read anywhere after that.
Anyone have any ideas? I’m surprised that the compiler emits a “useless” instruction at -o3.
by aw1621107
0 subcomment
Full title is "Why my Rust benchmarks were wrong, or how to [correctly] use std::hint::black_box?", but I had to remove something to get the title to fit.