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.0MicroPython 126.9158.804,5641191  54% 57% 43% 53%
1.0MicroPython #2 127.9759.494,6641191  50% 55% 48% 53%
1.5Python 2 152.7883.777,1001192  44% 45% 42% 39%
1.7PyPy 3 185.5097.8267,6121191  43% 50% 38% 47%
1.8PyPy 3 #2 188.25101.7967,4601191  46% 51% 41% 46%
1.8PyPy 2 181.95103.0974,7521192  70% 84% 66% 81%
2.4Cython 283.69139.268,5241203  46% 46% 48% 47%
2.6Nuitka #2 5 min147.549,9201191  46% 49% 47% 48%
2.7Nuitka 5 min153.189,6641191  48% 49% 45% 48%
2.7Python development version #2 5 min153.767,8401191  49% 45% 46% 46%
2.7Python development version 5 min154.697,9081191  50% 46% 46% 45%
3.1Python 3 #2 5 min177.208,8881191  49% 54% 48% 51%
3.1Python 3 5 min178.378,7881191  49% 54% 47% 52%
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