Compilers
14 Sep 2026
I Set Out to Learn NRVO and Ended Up Measuring My Command Line
I wanted to understand named return value optimisation, got curious what the pessimised version costs, and my first numbers were reproducible to 0.01% and wrong. Instructions and cycles instead of wall-clock, and the pointer question turned out to be an allocator question.