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 137.5476.2577,0601192  39% 40% 37% 37%
1.0MicroPython #2 140.2378.804,3001191  40% 42% 32% 40%
1.0MicroPython 140.2778.814,5601191  38% 40% 34% 42%
1.0PyPy 3 #2 144.9979.3462,3401191  38% 41% 37% 40%
1.0PyPy 3 145.3079.4664,5241191  39% 42% 37% 39%
1.1Pyston 143.8383.0282,6241192  50% 49% 48% 52%
1.2Cython 160.1988.278,8361203  40% 39% 39% 39%
1.2Nuitka 161.5190.3610,2801191  40% 39% 37% 42%
1.2Nuitka #2 162.3590.5010,9641191  40% 41% 37% 41%
1.2Python 3 159.8591.858,8561191  38% 35% 36% 38%
1.2Python 2 166.7992.188,4121192  35% 30% 48% 50%
1.2Python 3 #2 161.7292.818,8281191  36% 36% 39% 38%
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