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 | sort | sort | ||||
× | Program Source Code | CPU secs | Elapsed secs | Memory KB | Code B | ≈ CPU Load |
---|---|---|---|---|---|---|
1.0 | MicroPython #2 | 104.41 | 137.62 | 4,444 | 1191 | 14% 15% 14% 15% 3% 1% 1% 1% |
1.0 | MicroPython | 106.40 | 142.47 | 4,340 | 1191 | 13% 11% 10% 10% 11% 9% 9% 9% |
1.3 | Python development version | 252.58 | 184.28 | 13,504 | 1191 | 19% 19% 16% 18% 16% 16% 18% 10% |
1.3 | Python development version #2 | 251.45 | 184.80 | 13,484 | 1191 | 20% 21% 16% 23% 13% 17% 12% 10% |
1.4 | Python 3 #2 | 275.05 | 194.31 | 16,748 | 1191 | 11% 14% 14% 14% 17% 21% 18% 22% |
1.4 | Python 3 | 278.32 | 196.44 | 16,732 | 1191 | 11% 14% 14% 19% 19% 17% 20% 19% |
1.6 | RustPython | 220.28 | 215.70 | 15,008 | 1191 | 18% 19% 18% 19% 8% 15% 10% 10% |
1.6 | RustPython #2 | 225.46 | 218.17 | 14,996 | 1191 | 20% 18% 16% 19% 20% 20% 17% 20% |
1.7 | Pyston #2 | 151.46 | 230.98 | 14,316 | 1191 | 9% 6% 6% 6% 8% 8% 7% 8% |
2.0 | Cython | 177.89 | 271.05 | 12,888 | 1203 | 6% 3% 3% 3% 11% 10% 10% 11% |
2.0 | Nuitka #2 | 188.65 | 274.40 | 15,268 | 1191 | 8% 5% 5% 5% 9% 8% 8% 9% |
2.1 | Nuitka | 181.81 | 282.46 | 15,256 | 1191 | 13% 13% 13% 13% 4% 1% 0% 1% |
missing benchmark programs | ||||||
Python 2 | No program | |||||
PyPy 2 | No program | |||||
PyPy 3 | No program | |||||
Jython | No program | |||||
IronPython | No program | |||||
Shedskin | No program | |||||
Numba | No program | |||||
Grumpy | No program | |||||
Graal | No program |
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.