/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 3.100.795682863  99% 100% 100% 99%
1.2C++ g++ #5 3.460.929081994  89% 90% 100% 100%
1.3Lisp SBCL #3 3.561.004,6282907  80% 99% 100% 80%
2.6Ada 2005 GNAT #2 8.192.081,6366001  99% 99% 99% 99%
6.4Go #5 5.065.061,004957  0% 1% 100% 0%
6.6Java 7  6.575.1929,5841770  37% 20% 19% 44%
8.1C++ g++ 23.476.391,2882449  97% 96% 87% 87%
11Java 7  #3 29.118.5548,2521267  94% 81% 70% 96%
16Java 7  #2 37.6412.5930,7561429  70% 88% 81% 59%
16C gcc #2 44.5912.965961663  90% 89% 92% 78%
17Scala #2 38.6513.6651,2641171  62% 85% 84% 50%
23Ada 2005 GNAT #5 69.6717.861,9002906  98% 98% 98% 98%
31C# Mono 84.4324.4820,9721400  89% 86% 89% 85%
47Haskell GHC #4 86.6537.173,304991  59% 59% 48% 50%
49Ruby JRuby 85.3538.52457,728928  51% 52% 54% 56%
70Erlang HiPE 135.1855.2611,292734  50% 73% 72% 53%
187Clojure 177.26146.75394,8161331  35% 35% 23% 22%
238Ruby 2.0 290.60186.725,100920  25% 24% 46% 44%
356OCaml 7 min280.122,0441279  21% 59% 57% 19%
371Python 3 #2 8 min291.384,772866  27% 50% 50% 26%
429Racket 5 min5 min57,752791  0% 0% 100% 0%
719Perl #4 13 min9 min6,684785  46% 19% 18% 46%
869OCaml #3 18 min11 min2,8681146  53% 22% 27% 54%
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