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

 chameneos-redux benchmark N=6,000,000

Each chart bar shows how many times slower, one ↓ chameneos-redux program was, compared to the fastest program.

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.

    sort sortsort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0MicroPython #2 130.4760.344,5761191  55% 48% 44% 51%
1.0MicroPython 131.0060.534,5761191  56% 48% 45% 49%
1.1Pyston 152.8368.0825,5281192  50% 54% 47% 54%
1.4PyPy 2 175.4785.6774,1721192  51% 47% 44% 45%
1.7PyPy 3 #2 195.51101.4066,0321191  49% 41% 43% 42%
1.7PyPy 3 197.00102.6266,0881191  49% 40% 42% 41%
1.9Python 2 287.09114.886,9401192  62% 61% 61% 60%
2.8Cython 5 min166.108,4601203  50% 45% 47% 44%
2.8Nuitka 5 min170.2010,5161191  49% 45% 46% 45%
2.8Nuitka #2 5 min171.3110,3601191  50% 45% 45% 45%
2.8Python 3 5 min171.338,6801191  49% 44% 46% 43%
2.8Python 3 #2 5 min171.448,7081191  49% 46% 45% 43%
2.9Python development version 5 min172.837,9601191  48% 44% 45% 43%
2.9Python development version #2 5 min175.277,9001191  49% 45% 46% 44%
missing benchmark programs
Jython No program
IronPython No program
Shedskin No program
Numba No program
Grumpy No program
Graal No program
RustPython No program

 chameneos-redux benchmark : Symmetrical thread rendezvous requests

ndiff program output N = 600 with this output file to check your program output has the correct format 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.

The text-part and spelled-out numbers in the program output should match the expected output exactly. Thread scheduling may cause small differences in the other numbers, so program output is checked with ndiff -fields 2-10

Each program should

The chameneos benchmark is an adaptation of "Chameneos, a Concurrency Game for Java, Ada and Others" 100KB pdf (which includes example implementations in Java, Ada and C).

Programs may use pre-emptive kernel threads or pre-emptive lightweight threads; but programs that use non pre-emptive threads (coroutines, cooperative threads) and any programs that use custom schedulers, will be listed as interesting alternative implementations. Briefly say what concurrency technique is used in the program header comment.

Revised BSD license

  Home   Conclusions   License   Play