top | item 22980666

(no title)

Porygon | 5 years ago

This is the n-body problem from the Computer Language Benchmark Game with the attribution to the original author removed.

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

The faster programs usually use SIMD.

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

discuss

order

fallat|5 years ago

Really sorry about that one. I've added the link a few minutes ago. I just did not expect this to be notable at all to anyone. Thanks for pointing it out!

MaxBarraclough|5 years ago

Any idea what's going on with the mem values in the listing in your second link?

Wouldn't expect a C++ implementation to use 200x the memory of a C implementation. Different algorithms presumably? Or a significant compiler optimisation being missed?

heeen2|5 years ago

Maybe because the cpp version includes stdlib on top of stdio?