benchmarks
benchmarks copied to clipboard
Add n-body example
This benchmark / example could be identical to all the Fortran versions from:
https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/nbody.html
We can also try a few different n-body problems.
nbody6.zip I modified the source file at https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/nbody-ifc-6.html by reorganizing the three sets of DO loops in subroutine advance() into two sets. On my PC, with Intel OneAPI 2021.5, this reorganization increased the speed by 18 percent.