Python Interpreters Benchmarks
x64 ArchLinux : Intel® i5-7200U®

 n-body benchmark N=5,000,000

Each chart bar shows how many times more Code, one ↓ n-body program used, compared to the program that used least Code.

These are not the only programs that could be written. These are not the only compilers and interpreters. These are not the only programming languages.

Column × shows how many times more each program used compared to the benchmark program that used least.

    sortsortsort 
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Nuitka 36.3336.369,5121315  6% 100% 1% 1%
1.0PyPy 3 4.664.6668,5121315  3% 100% 2% 1%
1.0Python 3 40.0140.049,0601315  6% 100% 1% 1%
1.0Python development version 41.6143.498,0521315  100% 1% 2% 1%
1.0MicroPython 106.50106.614,4081315  6% 2% 1% 100%
1.0Graal 7.397.58470,3001315  11% 93% 3% 4%
1.0Python 2 47.5847.637,0081337  6% 1% 1% 100%
1.0Pyston 34.1134.148,3201337  64% 2% 37% 1%
1.0PyPy 2 4.684.7874,2721337  100% 1% 1% 1%
1.0Jython 84.3980.203,3521337  29% 31% 34% 19%
1.1Cython 10.7810.958,5201392  100% 1% 1% 1%
missing benchmark programs
IronPython No program
Shedskin No program
Numba No program
Grumpy No program
RustPython No program

 n-body benchmark : Double-precision N-body simulation

ndiff -abserr 1.0e-8 program output N = 1000 with this output file to check your program is correct before contributing.

We are trying to show the performance of various programming language implementations - so we ask that contributed programs not only give the correct result, but also use the same algorithm to calculate that result.

For background information see N-body problem. Useful symplectic integrators are freely available, for example the HNBody Symplectic Integration Package.

Thanks to Mark C. Lewis for this benchmark.

Revised BSD license

  Home   Conclusions   License   Play