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 9.809.815802863  1% 1% 0% 100%
1.0C gcc #2 10.5210.535841663  1% 1% 0% 100%
1.3Go #5 8.008.00764957  0% 1% 1% 100%
1.6C++ g++ #5 9.719.729121994  3% 1% 1% 100%
2.9Ada 2005 GNAT #2 215.92215.981,6606001  0% 1% 1% 100%
2.9Ada 2005 GNAT #5 21.2121.231,6922906  0% 1% 1% 100%
3.4Haskell GHC 4.664.661,996989  1% 0% 0% 100%
3.4Haskell GHC #4 5.845.852,000989  0% 1% 0% 100%
3.5OCaml 100.79100.832,0161279  0% 0% 0% 100%
4.9OCaml #3 9 min9 min2,8601146  0% 0% 0% 100%
7.5Python 3 #2 258.02258.214,372866  0% 1% 1% 100%
9.3Ruby 45.8445.855,412920  0% 1% 1% 100%
19Erlang HiPE 10.1210.1311,148734  0% 0% 1% 100%
38Smalltalk VisualWorks #2 46.8946.9121,9522515  0% 0% 0% 100%
39C# Mono 15.3515.3622,4921400  0% 1% 1% 100%
46Java  3.503.5126,5121770  1% 1% 0% 100%
46Java  #4 107.74107.7726,8641607  2% 1% 0% 100%
58Rust 178.84178.9033,6641622  1% 1% 0% 100%
58Lisp SBCL #3 12.0412.0533,9082907  0% 1% 1% 100%
70Java  #3 104.45104.4840,4401267  1% 1% 0% 100%
106Java  #2 12.3212.3361,6681429  1% 1% 1% 100%
114Racket 5 min5 min66,044791  0% 0% 1% 100%
169Scala #2 12.8312.8498,2721171  1% 2% 0% 100%
681Clojure 114.26114.40394,9521331  1% 1% 1% 100%
943Ruby JRuby 35.6835.71547,224928  2% 1% 1% 100%
C CINT #2 Failed1663
C++ g++ Make Error2449
Perl #4 Failed785
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

You can write your own program for this task and contribute to the benchmarks game by following these general instructions.

More specifically:

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