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 103.0946.574,6281191  62% 32% 61% 42%
1.0MicroPython 104.1647.434,6001191  54% 35% 50% 56%
1.0MicroPython 104.5747.714,6681191  57% 36% 48% 54%
1.0MicroPython 104.5747.814,5361191  46% 34% 59% 54%
1.0MicroPython #2 105.2247.944,6321191  44% 39% 56% 55%
1.1MicroPython #2 105.9749.134,5961191  47% 35% 59% 52%
1.2Pyston 105.6356.9868,7321192  32% 34% 27% 36%
1.2Pyston 105.8357.4370,8241192  29% 35% 29% 36%
1.3Pyston 106.6458.3066,8841192  31% 34% 26% 36%
1.4PyPy 2 130.7064.8275,8481192  40% 43% 43% 55%
1.6PyPy 3 145.7574.3367,3281191  45% 47% 40% 45%
1.6PyPy 3 #2 145.8074.6167,2921191  44% 44% 41% 46%
1.8Python 2 152.7883.777,1001192  44% 45% 42% 39%
2.1Python 3 #2 166.3596.308,8201191  51% 46% 41% 46%
2.1Python 3 166.66100.078,8361191  53% 49% 44% 48%
2.3Python development version #2 193.51104.978,1041191  38% 41% 45% 42%
2.3Python development version 194.24105.828,1361191  39% 42% 43% 42%
2.4Nuitka #2 207.00109.789,7841191  40% 42% 43% 46%
2.5Nuitka 216.37114.559,8001191  40% 42% 44% 46%
3.0Cython 283.91141.148,7441203  51% 43% 48% 45%
missing benchmark programs
Jython No program
IronPython No program
Shedskin No program
Numba No program
Grumpy No program
Graal 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