N-body bench

Jerry jlquinn at optonline.net
Tue Jan 28 11:32:37 PST 2014


"bearophile" <bearophileHUGS at lycos.com> writes:

> If someone if willing to test LDC2 with a known benchmark, there's this one:
>
> http://benchmarksgame.alioth.debian.org/u32/performance.php?test=nbody
>
> A reformatted C++11 version good as start point for a D translation:
> http://codepad.org/4mOHW0fz

Just playing with the C++ version in gcc 4.7.3, I see a significant
speedup by using -funroll-loops.  You might want to make sure that's
enabled.

Jerry


More information about the Digitalmars-d-learn mailing list