This is the
n-body benchmark from the benchmarksgame. It models the orbits
of Jovian planets, using the same simple symplectic-integrator.
It takes two arguments in this order:
n: the number of iterations to perform
algorithm: the algorithm to use - defaults to the fastest one.
0: scalar algorithm
1: SIMD algorithm
There are three kernels, two of which are only run twice independently of the
number of iterations (
advance kernel is
run once per iterations and uses 100% of the running time.