/mobile Handheld Friendly website

 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.0C gcc #5 2.650.686482863  99% 99% 99% 100%
1.5Lisp SBCL #3 3.841.035,8082907  89% 99% 99% 88%
5.0C++ g++ #5 12.673.381,3761994  100% 100% 88% 88%
6.7Go #5 4.554.551,272957  76% 24% 0% 0%
9.9Java 7  9.776.6639,4121770  35% 32% 35% 35%
12Java 7  #3 28.078.2482,4201267  98% 74% 71% 98%
18Java 7  #2 37.6512.1433,6641429  72% 82% 88% 66%
18C gcc #2 43.6312.416681663  83% 92% 96% 83%
19Scala #2 39.1313.1141,8121171  78% 71% 77% 70%
24Ada 2005 GNAT #5 64.0216.381,9402906  98% 99% 99% 98%
33C# Mono 78.7722.4016,8281400  95% 82% 80% 95%
53Haskell GHC #4 87.0135.943,728991  55% 59% 57% 53%
74Erlang 120.8749.7114,208734  51% 73% 70% 50%
75Erlang HiPE 123.8650.6517,236734  67% 57% 58% 65%
93Ruby JRuby 140.4762.83487,676928  59% 55% 57% 52%
193Ruby 2.0 197.08130.586,208920  14% 54% 54% 14%
243Clojure 199.36164.17401,9241331  31% 26% 25% 29%
404OCaml 7 min272.423,2921279  33% 47% 45% 31%
435Python 3 #2 7 min293.766,356866  26% 49% 47% 23%
497Racket 5 min5 min96,228791  67% 33% 0% 0%
735Perl #4 11 min8 min9,408785  56% 57% 9% 9%
1,140OCaml #3 20 min12 min4,3881146  24% 48% 48% 23%
Ada 2005 GNAT #2 Bad Output6001
C++ g++ Make Error2449
Scala Failed1271
missing benchmark programs
ATS No program
Dart No program
F# Mono No program
Fortran Intel 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