/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.

     sortsortsort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Java  3.503.5018,0761770  1% 1% 0% 100%
1.3Haskell GHC 4.664.661,996989  1% 0% 0% 100%
1.5Go #5 5.165.16724957  0% 1% 1% 100%
1.7Haskell GHC #4 5.845.852,000989  0% 1% 0% 100%
2.7C++ g++ #5 9.399.409241994  1% 1% 1% 100%
2.7C gcc #5 9.529.535922863  0% 0% 1% 100%
3.0C gcc #2 10.3410.355961663  1% 0% 1% 100%
3.0Erlang HiPE 10.6210.637,876734  0% 0% 0% 100%
3.3Lisp SBCL #3 11.6611.664,7762907  1% 1% 0% 100%
3.5Java  #2 12.2812.2950,1601429  1% 1% 0% 100%
3.6Scala #2 12.6812.69147,9241171  0% 1% 1% 100%
4.3C# Mono 14.9614.9720,3921400  0% 0% 1% 100%
5.8Ada 2005 GNAT #5 20.3020.321,9722906  0% 1% 0% 100%
10Ruby JRuby 36.4136.44503,272928  0% 1% 1% 100%
12Ruby 40.6040.625,596920  0% 1% 0% 100%
13Smalltalk VisualWorks #2 46.8946.9121,9522515  0% 0% 0% 100%
29OCaml 100.79100.832,0161279  0% 0% 0% 100%
30Java  #3 104.46104.4933,3001267  1% 0% 0% 100%
31Java  #4 108.15108.1817,6401607  1% 1% 0% 100%
39Clojure 137.34137.51396,8921331  1% 1% 0% 100%
62Ada 2005 GNAT #2 215.88215.961,6886001  0% 0% 1% 100%
74Python 3 #2 258.02258.214,372866  0% 1% 1% 100%
98Racket 5 min5 min66,044791  0% 0% 1% 100%
166OCaml #3 9 min9 min2,8601146  0% 0% 0% 100%
C CINT #2 Failed1663
C++ g++ Make Error2449
Perl #4 Failed785
Rust Bad Output1387
Scala Failed1271
missing benchmark programs
Dart No program
F# Mono No program
Fortran Intel No program
JavaScript V8 No program
Lua 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