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 103.4255.7076,2681192  35% 34% 37% 39%
1.0PyPy 3 105.4455.7268,0441191  37% 39% 37% 37%
1.0PyPy 3 #2 105.4655.7968,4081191  37% 38% 38% 38%
1.0PyPy 3 105.5355.9166,0041191  35% 39% 37% 39%
1.0PyPy 3 #2 105.2555.9266,0001191  36% 38% 37% 39%
1.0PyPy 2 103.6456.0078,3121192  34% 34% 37% 39%
1.0PyPy 3 #2 106.1356.2667,9201191  35% 39% 36% 40%
1.0PyPy 2 103.8556.2677,9561192  34% 35% 37% 37%
1.0PyPy 3 105.5256.2965,6961191  35% 39% 37% 37%
1.0Pyston 105.6356.9868,7321192  32% 34% 27% 36%
1.0Pyston 105.8357.4370,8241192  29% 35% 29% 36%
1.0MicroPython 106.3457.564,5441191  42% 29% 36% 25%
1.0MicroPython 106.0657.804,4401191  35% 29% 37% 31%
1.0MicroPython #2 106.3958.054,6321191  37% 24% 38% 32%
1.0MicroPython 106.8058.204,4641191  40% 32% 30% 29%
1.0Pyston 106.6458.3066,8841192  31% 34% 26% 36%
1.0MicroPython #2 106.9358.454,5361191  40% 28% 37% 26%
1.1MicroPython #2 107.1458.614,5801191  38% 33% 31% 27%
1.1Cython 114.6961.868,7681203  31% 37% 31% 38%
1.1Cython 115.4062.108,7081203  31% 34% 35% 37%
1.1Cython 115.3462.318,7001203  31% 35% 33% 37%
1.1Python 2 113.1162.6911,0761192  34% 30% 32% 33%
1.1Python 2 113.2662.8311,0521192  32% 33% 32% 33%
1.1Python 2 114.0263.149,1241192  36% 33% 32% 29%
1.2Nuitka 120.4565.6310,6161191  39% 37% 40% 38%
1.2Python 3 121.2567.529,0961191  35% 38% 36% 38%
1.2Nuitka #2 123.1467.8410,9721191  40% 38% 39% 39%
1.2Python development version 122.9267.887,5761191  37% 33% 35% 34%
1.2Python 3 #2 122.3368.349,0761191  35% 38% 37% 37%
1.2Python 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