2 ms·
as not all languages get the same attention. ...which also seems to be reflective of how much programmers using language X care about (execution) efficiency, s
by userbinator 8y ago
as not all languages get the same attention.
...which also seems to be reflective of how much programmers using language X care about (execution) efficiency, so I'd say these results are not far off from reality.
C and C++ are another interesting pair --- proponents of the latter always love to claim "zero cost abstractions" that allow you to write very abstract code which they say the compiler can then optimise (or clean up the mess, depending on your viewpoint...) to the same output as if you did it manually in C, but the results show a very different picture.
- rienbdj 8y agoI think it calls into question the code samples. There are very few C features not in C++.
- fnrslvr 8y agoI haven't seen the code, but maybe c&p-ing the C entrant into the C++ box to get performance parity would make the C++ entrant run afoul of typical C++ coding conventions. (You can then have a debate about whether you want to see idiomatic C++ in benchmarks or purely the most performant C++ possible. Personally if I'm shopping for a language for a project then I'm far more likely to be interested in the former.)