The Computer Language
Benchmarks Game

pidigits

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 Pascal Free Pascal #3 2.49 1,940 482 2.48 1% 100% 1% 100%
1.0 C gcc 2.50 1,972 448 2.50 1% 0% 0% 100%
1.0 Rust 2.52 7,972 1420 2.51 1% 2% 4% 100%
1.0 Chapel 2.52 20,768 501 2.52 100% 0% 0% 2%
1.1 Fortran Intel #2 2.66 1,464 934 2.66 0% 0% 1% 100%
1.1 Fortran Intel #3 2.67 1,200 975 2.66 1% 1% 1% 100%
1.1 C gcc #4 2.67 2,112 541 2.66 0% 0% 1% 100%
1.1 C++ g++ #3 2.68 3,720 682 2.67 0% 1% 1% 100%
1.1 Ada 2005 GNAT #2 2.68 4,016 1254 2.67 0% 1% 1% 100%
1.1 Python 3 #5 2.74 8,468 335 2.73 0% 1% 1% 100%
1.1 Lisp SBCL 2.75 16,388 1073 2.75 0% 1% 1% 100%
1.1 Lua #3 2.76 2,996 414 2.75 0% 1% 1% 100%
1.1 PHP #5 2.81 8,264 394 2.80 0% 1% 1% 100%
1.1 PHP #4 2.82 8,216 384 2.81 0% 1% 1% 100%
1.1 Lua #5 2.82 3,088 479 2.82 1% 1% 1% 100%
1.1 PHP #3 2.84 8,296 500 2.83 1% 1% 1% 100%
1.2 Racket #2 2.96 17,232 1122 2.96 2% 0% 0% 100%
1.2 Python 3 #2 3.06 8,308 256 3.06 2% 0% 1% 100%
1.3 Haskell GHC #4 3.14 7,272 341 3.13 1% 1% 0% 100%
1.3 Go 3.28 9,052 685 3.27 0% 1% 1% 100%
1.5 Pascal Free Pascal #2 3.76 1,888 785 3.76 1% 100% 3% 100%
1.5 Ada 2005 GNAT 3.77 3,932 1143 3.77 0% 0% 1% 100%
1.6 Lua 4.03 2,960 522 4.02 2% 0% 0% 100%
1.6 F# Mono LLVM #3 4.09 40,772 903 4.08 0% 1% 1% 100%
1.6 C# Mono LLVM #3 4.10 39,488 1026 4.09 0% 1% 1% 100%
1.7 Java  #2 4.14 25,988 938 4.13 1% 1% 0% 100%
1.8 PHP #2 4.42 8,624 537 4.42 1% 0% 1% 100%
1.8 Scala #4 4.44 53,504 1125 4.44 1% 2% 0% 100%
1.8 Perl #4 4.51 5,452 261 4.51 0% 0% 1% 100%
2.0 Perl #2 4.86 5,552 385 4.86 1% 1% 0% 100%
2.1 Lua #7 5.11 3,020 477 5.10 1% 0% 0% 100%
2.8 Go #2 7.05 11,748 674 7.03 1% 1% 1% 100%
2.8 Go #4 7.07 11,832 607 7.06 0% 1% 1% 100%
3.1 Java #3 7.68 50,376 1826 7.67 2% 0% 1% 100%
3.1 Java #4 7.72 50,376 1808 7.71 2% 1% 0% 100%
3.8 Clojure #4 9.54 397,788 1794 9.53 1% 1% 100% 100%
4.3 Ruby #4 10.71 152,052 240 10.69 1% 100% 1% 100%
4.3 Ruby #3 10.80 152,172 242 10.78 1% 1% 100% 100%
6.4 Dart 15.97 50,728 321 15.94 2% 0% 0% 100%
6.5 Perl 16.27 6,808 452 16.26 0% 1% 1% 100%
6.7 Erlang HiPE #2 16.56 20,624 512 16.54 0% 1% 1% 100%
6.9 Erlang HiPE 17.21 21,644 559 17.18 0% 1% 1% 100%
8.5 Node.js #2 21.08 1,315,104 464 21.04 0% 1% 1% 100%
8.6 Ruby 21.32 159,712 518 21.27 1% 1% 100% 100%
8.7 Scala #3 21.68 377,796 479 21.64 1% 1% 0% 100%
9.1 Ruby JRuby #4 22.65 641,672 240 22.60 0% 1% 1% 100%
9.2 Ruby JRuby #3 22.98 662,836 242 22.93 1% 1% 0% 100%
10 Smalltalk VW #4 25.20 30,020 652 25.19 0% 1% 1% 100%
10 Racket 25.31 110,100 453 25.27 0% 1% 1% 100%
11 Java 26.33 376,900 800 26.29 3% 1% 0% 100%
12 Clojure #2 29.49 394,312 571 29.44 1% 100% 1% 100%
13 Clojure #3 31.69 395,120 482 31.64 1% 1% 100% 100%
13 Lisp SBCL #2 32.57 65,280 645 32.52 1% 1% 1% 100%
14 Ruby JRuby 34.41 651,944 518 34.34 0% 1% 1% 100%
16 Pascal Free Pascal 40.66 644 3042 40.64 1% 100% 1% 100%
33 C# Mono LLVM #2 82.21 65,368 856 82.10 0% 1% 1% 100%
37 F# Mono LLVM 91.14 73,924 513 91.00 1% 1% 0% 100%
229 PHP 9 min 9,076 736 9 min 1% 1% 1% 100%
Clojure #5 Failed
Fortran Intel Failed
Lua #2 Failed
OCaml Make Error
OCaml #2 Make Error
OCaml #3 Make Error
OCaml #4 Make Error
Perl #3 Bad Output
Ruby #2 Failed
Ruby #5 Failed
Scala Failed