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.310.606322863  100% 95% 93% 100%
1.3C++ g++ #5 2.960.791,3801994  90% 90% 100% 100%
1.6Lisp SBCL #3 3.770.9940,0882907  93% 99% 100% 93%
3.3Ada 2005 GNAT #2 7.922.011,9326001  98% 98% 100% 100%
5.6C++ g++ #2 11.953.381,1242016  97% 90% 94% 75%
7.6Java  #4 16.124.5632,5241607  97% 64% 97% 97%
7.7Haskell GHC 8.344.639,108989  79% 100% 2% 2%
7.8Java  5.314.6738,1521770  31% 22% 26% 32%
9.3Haskell GHC #4 11.235.597,068989  100% 100% 2% 1%
12Go #5 7.357.351,020957  1% 0% 0% 100%
13Java  #3 27.088.0693,6601267  84% 87% 74% 92%
20Java  #2 36.3712.1690,9361429  84% 71% 65% 82%
21Scala #2 36.8212.8167,0921171  74% 77% 74% 65%
22Ada 2005 GNAT #5 49.8413.272,2602906  95% 97% 96% 94%
22C gcc #2 46.3713.416681663  97% 77% 76% 98%
82Ruby JRuby 110.4849.36663,448928  61% 54% 51% 57%
88Erlang 120.4753.0028,864734  65% 52% 53% 60%
91Erlang HiPE 128.2854.5632,328734  67% 54% 54% 63%
164Rust 209.3798.4639,9401714  65% 43% 42% 54%
205Ruby 192.03122.967,500920  39% 28% 28% 38%
224Clojure 156.85134.78415,2481331  32% 30% 24% 25%
303Racket #2 182.11182.16116,664842  1% 0% 100% 1%
360Python 3 #2 6 min216.595,724866  42% 37% 36% 42%
407OCaml 6 min244.645,3281279  41% 33% 33% 41%
550Racket 5 min5 min109,448791  0% 0% 100% 0%
700Perl #4 10 min7 min12,036785  36% 35% 34% 36%
1,237OCaml #3 19 min12 min5,9361146  35% 35% 35% 35%
C# Mono Failed1400
C++ g++ Make Error2449
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

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