Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: C++ now is fast

24 views
Skip to first unread message

Bart

unread,
Jun 15, 2018, 9:05:32 AM6/15/18
to
On 15/06/2018 13:07, Stefan Ram wrote:
> There is this programming-language "shootout" site,
> where the runtime of programs for different programming
> languages is shown. C++ was clearly slower than C there,
> which seemed strange, given that, ostensibly, C is a part of
> C++. Maybe C++ triggered different algorithms in programmers,
> which were slower.
>
> But recently I saw that on this site C++ now nearly is
> as fast as C. Maybe C++ enthusiast took some time to
> run-time optimize the C++ programs for the "shootout".
>

If you mean this site:

https://benchmarksgame-team.pages.debian.net/benchmarksgame/

then those comparisons are not that meaningful, given that each program
is written differently and with a different algorithm and using a
different compiler.

There are even multiple versions written in the same language, so what
is it comparing?

But do you see differences where you expect them to be, between for
example a program in native code, and one that is interpreted. But you
don't need that website for that.

And, yes, you would also expect contributions to that site to be highly
tuned to those tasks.

--
bart
0 new messages