The results from my machine are available on my blog.
Feel free to send me pull requests for any correction or improvements.
How to run
The java version is compiled with
javac nbody and run with
java nbody 50000000. It's the Java #4 version from the Computer Language Benchmarks Game
The C versions in the c directory can be compiled with
gcc -O3 nbody.c -o nbody and
gcc -O3 -fomit-frame-pointer -march=native -mfpmath=sse -msse3 nbody_fastest.c -o nbody_fastest
They are the original version and version #4.
The WebAsssembly version is compiled with
emcc nbody.c -O3 -s WASM=1 -s SIDE_MODULE=1 -o nbody.wasm. You'll have to setup emscripten and binaryen as described on Compile Emscripten from Source