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 3 102.4052.6659,7881191  41% 32% 42% 26%
1.0PyPy 3 #2 103.0053.1759,9001191  40% 32% 36% 32%
1.0PyPy 3 102.5653.4859,5681191  36% 33% 36% 34%
1.0PyPy 3 102.9453.5859,4881191  39% 36% 33% 31%
1.0PyPy 3 #2 103.1154.0359,4721191  34% 38% 34% 31%
1.0PyPy 2 101.8754.5267,1241192  37% 29% 32% 33%
1.0PyPy 2 101.5454.6366,6681192  32% 33% 28% 36%
1.0PyPy 2 102.2954.9466,2241192  31% 34% 32% 33%
1.1PyPy 3 #2 104.6055.3059,4521191  39% 34% 30% 33%
1.1Pyston 105.6356.9868,7321192  32% 34% 27% 36%
1.1Pyston 105.8357.4370,8241192  29% 35% 29% 36%
1.1MicroPython 106.3457.564,5441191  42% 29% 36% 25%
1.1MicroPython 106.0657.804,4401191  35% 29% 37% 31%
1.1MicroPython #2 106.3958.054,6321191  37% 24% 38% 32%
1.1MicroPython 106.8058.204,4641191  40% 32% 30% 29%
1.1Pyston 106.6458.3066,8841192  31% 34% 26% 36%
1.1MicroPython #2 106.9358.454,5361191  40% 28% 37% 26%
1.1MicroPython #2 107.1458.614,5801191  38% 33% 31% 27%
1.2Cython 114.6961.868,7681203  31% 37% 31% 38%
1.2Cython 115.4062.108,7081203  31% 34% 35% 37%
1.2Cython 115.3462.318,7001203  31% 35% 33% 37%
1.2Python 2 113.1162.6911,0761192  34% 30% 32% 33%
1.2Python 2 113.2662.8311,0521192  32% 33% 32% 33%
1.2Python 2 114.0263.149,1241192  36% 33% 32% 29%
1.2Nuitka #2 118.5063.9711,0521191  33% 38% 33% 35%
1.2Nuitka 118.8364.4210,6761191  32% 38% 33% 36%
1.2Nuitka #2 119.0064.4610,9401191  35% 37% 33% 34%
1.2Nuitka 118.4864.4810,9041191  33% 35% 33% 37%
1.2Nuitka 118.5164.6410,9801191  33% 38% 33% 35%
1.2Nuitka #2 120.1764.7911,0001191  34% 37% 35% 34%
1.3Python 3 120.8065.948,8321191  36% 34% 35% 33%
1.3Python 3 #2 120.5866.008,9801191  35% 35% 36% 31%
1.3Python development version 122.9267.887,5761191  37% 33% 35% 34%
1.3Python development version #2 123.3968.587,4321191  36% 35% 34% 33%
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