The Computer Language
Benchmarks Game

binary-trees

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Pascal Free Pascal 32.25 65,804 769 32.22 1% 0% 0% 100%
1.0 C gcc 35.84 66,784 706 35.81 1% 1% 0% 100%
1.2 C++ g++ #7 6.86 76,616 846 6.85 0% 1% 0% 100%
1.5 Fortran Intel #2 19.19 99,624 1199 19.17 0% 1% 1% 100%
1.5 C gcc #3 9.58 100,796 906 9.57 1% 1% 1% 100%
1.5 C++ g++ #2 42.74 101,016 553 42.71 1% 1% 0% 100%
1.5 Ada 2005 GNAT 43.88 101,204 955 43.86 0% 1% 1% 100%
1.6 Ada 2005 GNAT #5 11.09 105,168 2167 11.05 0% 1% 1% 100%
1.6 Ada 2005 GNAT #4 11.06 105,232 2167 11.03 0% 0% 1% 100%
1.7 C gcc #5 74.42 110,536 963 74.37 1% 1% 1% 100%
1.7 F# Mono LLVM #4 19.30 110,552 511 19.26 0% 1% 1% 100%
1.9 Rust 25.58 122,236 792 25.54 1% 0% 0% 100%
2.1 OCaml #5 34.05 139,200 496 34.00 0% 1% 1% 100%
2.2 F# Mono LLVM 26.02 142,892 537 25.98 1% 1% 0% 100%
2.3 C++ g++ #6 11.27 150,264 892 11.26 1% 1% 0% 100%
2.8 C++ g++ #3 11.44 181,440 993 11.42 1% 1% 0% 100%
2.9 Haskell GHC #4 16.98 190,168 612 16.95 0% 0% 1% 100%
2.9 Haskell GHC 18.14 190,300 521 18.11 2% 1% 0% 100%
3.0 Lisp SBCL #2 14.66 199,060 649 14.64 0% 1% 1% 100%
3.0 Lisp SBCL 23.19 199,096 612 23.16 0% 1% 1% 100%
3.3 Dart 28.71 216,556 503 28.68 1% 0% 1% 100%
3.3 Chapel 62.54 219,460 554 62.50 100% 1% 1% 0%
3.3 Racket #2 24.89 219,988 640 24.85 0% 1% 1% 100%
7.8 Java  #3 16.53 511,692 584 16.51 1% 1% 0% 100%
7.8 Java #2 16.73 516,400 603 16.70 1% 1% 1% 100%
8.0 Clojure 21.25 525,540 657 21.22 2% 1% 1% 100%
8.0 Clojure #2 23.26 525,932 750 23.23 1% 0% 0% 100%
8.0 Java #6 16.64 527,868 583 16.62 1% 1% 0% 100%
8.5 Clojure #6 27.73 557,132 705 27.70 0% 1% 100% 100%
9.1 Java #4 20.32 599,748 911 20.29 1% 1% 0% 100%
9.7 Java #7 23.49 635,272 889 23.45 0% 0% 2% 100%
25 C++ g++ 12.58 1,624,236 796 12.54 1% 2% 0% 100%
Ada 2005 GNAT #3 Partial
C# Mono LLVM #2 Partial
C# Mono LLVM Partial
C# Mono LLVM #4 Partial
C# Mono LLVM #3 Partial
Erlang HiPE Partial
Erlang HiPE #2 Partial
F# Mono LLVM #3 Partial
F# Mono LLVM #2 Partial
Fortran Intel Partial
Go #5 Partial
Go #9 Partial
Go #4 Partial
Go Partial
Go #2 Partial
Go #7 Partial
Node.js Partial
Lisp SBCL #3 Bad Output
Lua #2 Partial
OCaml #2 Partial
Perl #3 Failed
Perl Partial
PHP #2 Partial
PHP #3 Partial
PHP Partial
PHP #4 Partial
Python 3 Partial
Racket Partial
Ruby #5 Partial
Ruby #3 Partial
Ruby #4 Partial
Ruby Partial
Ruby #2 Partial
Ruby JRuby Partial
Ruby JRuby #4 Partial
Ruby JRuby #3 Partial
Ruby JRuby #5 Partial
Scala #2 Failed
Scala #5 Partial
Scala #4 Partial
TypeScript Partial
TypeScript #2 Partial
Smalltalk VW Partial