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 142.5276.5565,3081192  31% 28% 48% 52%
1.1PyPy 3 149.7780.5639,2161191  37% 33% 44% 49%
1.1MicroPython #2 151.5982.424,5721191  31% 26% 49% 50%
1.1MicroPython 151.5282.944,5441191  29% 23% 51% 53%
1.1Pyston 143.8383.0282,6241192  50% 49% 48% 52%
1.2PyPy 3 #2 142.2388.3137,2361191  50% 50% 55% 55%
1.2Nuitka #2 167.6291.1010,3561191  30% 32% 50% 49%
1.2Python 2 166.7992.188,4121192  35% 30% 48% 50%
1.2Cython 171.6094.138,2561203  39% 36% 48% 50%
1.2Nuitka 172.2594.4310,3561191  32% 35% 51% 50%
1.2Python 3 175.2995.248,8201191  31% 32% 49% 50%
1.3Python 3 #2 177.2596.008,9001191  41% 27% 47% 51%
1.4Python development version 192.59105.387,5841191  41% 33% 46% 48%
1.4Python development version #2 195.81109.207,6681191  39% 44% 51% 49%
missing benchmark programs
Jython No program
IronPython No program
Shedskin No program
Numba No program
Grumpy 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