binary-trees-redux benchmark N=20

Each chart bar shows how many times more Memory, one ↓ binary-trees-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.0Haskell GHC 25.3025.3374,060521  100% 1% 1% 1%
1.8Java  #2 253.7174.14134,460607  89% 90% 82% 82%
1.9Scala #4 257.0875.73137,540498  84% 94% 82% 81%
1.9Lisp SBCL #2 19.4619.50138,288649  0% 1% 100% 1%
3.1Clojure #6 110.2046.00226,796709  75% 51% 51% 65%
3.1Clojure 58.3026.05228,804661  45% 84% 53% 43%
11Ruby JRuby 14 min5 min841,504412  73% 53% 52% 69%
missing benchmark programs
Ada 2005 GNAT No program
C gcc No program
C# Mono No program
C++ g++ No program
Dart No program
Erlang HiPE No program
F# Mono No program
Fortran Intel No program
Go No program
OCaml No program
Pascal Free Pascal No program
Perl No program
PHP No program
Python 3 No program
Racket No program
Ruby No program
Rust No program

 binary-trees-redux benchmark : Allocate and deallocate many many binary trees

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

More specifically:

The binary-trees-redux benchmark is another simplistic adaptation of Hans Boehm's GCBench, which in turn was adapted from a benchmark by John Ellis and Pete Kovac.

Heap size has been limited for each program, to 8KB more than that program needs to complete the task.

Revised BSD license

  Home   Conclusions   License   Play