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.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.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.4PyPy 2 140.9777.1974,7921192  45% 39% 43% 39%
1.4PyPy 3 #2 146.9981.1663,8641191  46% 39% 43% 39%
1.4PyPy 3 147.6081.3563,5401191  44% 40% 44% 38%
1.5MicroPython 148.9682.694,4681191  40% 43% 41% 44%
1.5Python 2 152.7883.777,1001192  44% 45% 42% 39%
1.5Cython 154.8285.528,8881203  43% 42% 42% 40%
1.5Nuitka #2 156.1686.3910,6521191  44% 43% 44% 40%
1.5Nuitka 157.3387.5810,6961191  43% 44% 43% 41%
1.5MicroPython #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%
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