CppCon 2015: Chandler Carruth "Tuning C++: Benchmarks, and CPUs, and Compilers! Oh My!"
CppConYouTube ↗
延伸阅读 1
字幕解读
Carruth 从向量操作的微基准追到机器指令。计时循环若没留下编译器认可的可观察效果,编译器能改变实际执行的工作,让漂亮数字失去原来的含义。
视频与逐字稿来源 ↗ · 引文按字幕原文展示,可点时间戳回看片段。
补充字幕原文 2
micro benchmarks are when you're benchmarking some really isolated part of your systemIn my case the observable side effect is the benchmarking.