3 ms·
Good point, I had always just taken for granted that C would be faster, and it's not! (Obvious disclaimers about benchmarks inserted here https://benchmarksgame
by totalperspectiv 7y ago
Good point, I had always just taken for granted that C would be faster, and it's not! (Obvious disclaimers about benchmarks inserted here https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/cpp.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...).
- igouy 7y ago> and it's not! Well those numbers seem to show some C programs are faster than the C++ programs they are compared to; and other programs are not.
- __d 7y agoI'll point out that those benchmarks show C++ faster for four, C faster for five, and both the same for one scenario. Modern C++ enables some very concise expression, at the cost of significant language complexity, and enormous compile-time cost. C requires more work from the programmer, but is vastly quicker to compile.