Python Interpreters Benchmarks
x64 ArchLinux : AMD® Ryzen 7 4700U®

 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.0PyPy 2 190.59145.4270,1801192  4% 6% 5% 7% 9% 7% 10% 10%
1.1MicroPython 245.28156.624,6161191  11% 6% 14% 8% 6% 5% 7% 7%
1.1MicroPython #2 230.26164.244,6281191  9% 4% 5% 9% 10% 9% 9% 9%
1.3Python development version #2 5 min188.689,6921191  25% 22% 22% 22% 24% 21% 22% 22%
1.3Python development version 5 min188.949,5841191  25% 22% 23% 22% 25% 20% 22% 22%
1.4Pyston #2 296.47204.488,7641191  21% 17% 17% 16% 20% 19% 17% 16%
1.5Python 3 296.43215.338,7281191  19% 14% 14% 13% 14% 15% 14% 14%
1.5PyPy 3 237.47218.5464,9321191  5% 7% 7% 6% 6% 10% 13% 12%
1.5PyPy 3 #2 239.19220.0264,8161191  6% 7% 8% 9% 9% 8% 10% 5%
1.5Cython 265.20221.398,2321203  6% 9% 7% 6% 8% 7% 10% 8%
1.6Python 3 #2 5 min230.168,4841191  26% 25% 25% 25% 26% 26% 25% 25%
1.7Nuitka 5 min244.9310,6361191  11% 9% 9% 9% 7% 5% 5% 5%
1.7Nuitka #2 5 min248.0610,5441191  8% 6% 7% 8% 8% 8% 7% 7%
missing benchmark programs
Python 2 No program
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