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 2 103.6456.0078,3121192  34% 34% 37% 39%
1.0PyPy 2 103.8556.2677,9561192  34% 35% 37% 37%
1.0Pyston 105.6356.9868,7321192  32% 34% 27% 36%
1.0Pyston 105.8357.4370,8241192  29% 35% 29% 36%
1.0Pyston 106.6458.3066,8841192  31% 34% 26% 36%
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.2Python development version 122.9267.887,5761191  37% 33% 35% 34%
1.2Python development version #2 123.3968.587,4321191  36% 35% 34% 33%
1.5MicroPython 148.9682.694,4681191  40% 43% 41% 44%
1.5PyPy 3 #2 151.0182.7864,0961191  44% 43% 43% 44%
1.5PyPy 3 150.7183.9564,2801191  44% 46% 44% 47%
1.5Cython 155.3284.889,0241203  42% 42% 40% 42%
1.6MicroPython #2 147.7387.894,1681191  50% 48% 49% 49%
1.6Python 3 159.9289.519,6001191  40% 41% 37% 44%
1.6Python 3 #2 163.4291.309,5201191  41% 38% 44% 41%
1.7Nuitka #2 165.1592.3911,0121191  46% 47% 43% 46%
1.7Nuitka 165.3792.9911,0801191  44% 45% 45% 45%
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