/mobile Handheld Friendly website

 chameneos-redux benchmark N=6,000,000

Each chart bar shows how many times more Memory, one ↓ chameneos-redux program used, compared to the program that used least Memory.

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.

    sortsort sort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0C gcc #5 2.440.626442863  100% 98% 97% 98%
1.0C gcc #2 32.9010.586681663  82% 81% 71% 82%
1.5Go #5 4.704.70992957  100% 4% 2% 5%
2.2C++ g++ #5 14.183.581,3921994  100% 100% 99% 99%
3.0Ada 2005 GNAT #5 38.9311.241,9442906  89% 87% 87% 90%
3.1Ada 2005 GNAT #2 8.232.111,9726001  99% 99% 97% 96%
4.6Haskell GHC 8.744.822,976989  80% 100% 2% 1%
4.6Haskell GHC #4 11.265.622,980989  99% 100% 1% 2%
5.1OCaml 8 min289.363,2801279  32% 47% 46% 30%
6.8OCaml #3 20 min12 min4,3801146  25% 48% 47% 24%
8.9Python 3 #2 6 min216.595,724866  42% 37% 36% 42%
9.1Lisp SBCL #3 4.241.155,8522907  86% 99% 99% 86%
12Ruby 253.41164.127,792920  18% 18% 49% 49%
15Perl #4 11 min8 min9,408785  56% 57% 9% 9%
22Erlang 120.8749.7114,208734  51% 73% 70% 50%
27Erlang HiPE 123.8650.6517,236734  67% 57% 58% 65%
34C# Mono 70.3321.4921,6001400  83% 86% 86% 82%
35Java  #4 18.275.3022,3161607  97% 61% 97% 93%
43Java  6.925.4027,9881770  28% 30% 28% 36%
64Java  #2 38.4612.5341,1161429  82% 79% 68% 82%
67Java  #3 27.288.1343,0161267  46% 98% 95% 97%
72Scala #2 36.6512.5546,5921171  69% 80% 79% 67%
170Racket 5 min5 min109,448791  0% 0% 100% 0%
331Clojure 197.27162.31213,2241331  32% 28% 26% 28%
882Ruby JRuby 135.9461.17568,320928  58% 53% 51% 59%
C++ g++ Make Error2449
Rust Bad Output1387
Scala Failed1271
missing benchmark programs
Dart No program
F# Mono No program
Fortran Intel No program
Hack No program
Pascal Free Pascal No program
PHP 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