After benchmarking, the Arch Linux devs have found no significant perf cost in security hardening CFLAGS! https://lists.archlinux.org/pipermail/arch-dev-public/2016-October/028405.html (PIE etc)
miniblog.
Related Posts
Benchmarking the cost of array bounds checks in Rust code: https://blog.readyset.io/bounds-checks/
The author even patches rustc to make sure *all* bounds checks are gone, in order to compare the performance!
Cute benchmarking technique for choosing sample programs in a benchmarking suite: perform principal component analysis to avoid redundancy!
I really like instruction counts for measuring performance. It's not perfect, but it's a very stable metric, even if I'm listening to music whilst developing and benchmarking.
