News for hackers. Stuff that matters.
Re:Depressing and faintly terrifying days for the C standard... by anyfoo on Wednesday May 30, 2018 @01:59PM (#17189967)
Every once in a while I have to compile a kernel without optimizations. The performance penalty you pay is far away from 0.1%, it is definitely very noticeable on first glance. There might be projects where even that does not matter, but I would not think those are the majority.
Re:Depressing and faintly terrifying days for the C standard... by BeeOnRope on Wednesday May 30, 2018 @05:54PM (#17192227)
An order of magnitude slower on non-trivial computation-heavy code (i.e,. not just doing a lot of IO or calls into libraries/the kernel) is a pretty good rule of thumb. Sometimes better, sometimes much worse.

The more layers of abstraction, the worse the penalty for not optimizing, so C++ is usually more heavily affected than C, for example: many of the so called "zero-cost" abstractions in C++ rely on a good optimizer.