The Computer Language
Benchmarks Game

pidigits

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Chapel 1.62 6,416 501 1.63 100% 2% 0% 1%
1.0 Chapel #2 1.62 6,512 423 1.63 99% 1% 0% 1%
1.1 Free Pascal #3 1.73 2,428 530 1.72 0% 2% 100% 1%
1.1 Rust #3 1.74 4,592 1366 1.74 2% 1% 100% 2%
1.1 Rust 1.75 4,464 1420 1.74 1% 100% 3% 0%
1.1 C gcc 1.75 2,728 452 1.74 1% 2% 0% 100%
1.1 Rust #2 1.75 4,632 1306 1.74 1% 1% 100% 0%
1.1 Ada 2005 GNAT #2 1.75 4,312 1068 1.75 1% 0% 100% 0%
1.1 Swift #2 1.76 8,520 601 1.76 1% 100% 2% 1%
1.1 Lisp SBCL #4 1.79 20,196 940 1.79 1% 2% 1% 100%
1.2 C++ g++ #4 1.89 4,284 513 1.88 5% 0% 1% 100%
1.2 Go #3 2.02 9,256 603 2.02 0% 0% 100% 0%
1.3 PHP #5 2.12 10,664 399 2.11 100% 0% 1% 1%
1.3 PHP #4 2.12 10,512 389 2.12 100% 0% 0% 2%
1.3 PHP #3 2.14 10,672 504 2.14 1% 0% 0% 100%
1.4 Racket #2 2.19 26,440 1136 2.18 0% 100% 1% 0%
1.8 Go 2.92 9,744 708 2.93 33% 3% 1% 65%
1.8 Go #2 2.93 9,344 733 2.93 0% 100% 0% 0%
1.9 F# .NET Core #4 3.07 36,768 874 3.08 1% 94% 8% 1%
1.9 C# .NET Core #3 3.08 36,632 1026 3.08 2% 1% 1% 98%
1.9 F# .NET Core #3 3.10 37,812 909 3.10 4% 0% 2% 98%
1.9 Java  #2 3.14 37,080 938 3.35 4% 4% 1% 98%
2.0 PHP #2 3.21 10,968 545 3.20 1% 0% 1% 100%
2.2 Perl #4 3.50 7,348 261 3.50 100% 1% 1% 1%
2.2 Python 3 #2 3.52 10,540 504 3.52 0% 1% 1% 100%
2.4 Perl #2 3.83 7,320 389 3.83 2% 1% 100% 1%
4.2 OCaml #5 6.72 19,836 458 6.71 1% 1% 1% 100%
6.8 Free Pascal #2 10.93 2,628 828 10.93 100% 0% 0% 0%
6.8 Ada 2005 GNAT 10.94 4,784 1157 10.93 1% 100% 0% 0%
7.4 Lisp SBCL #3 11.99 325,776 493 11.96 0% 1% 100% 0%
7.8 VW Smalltalk #4 12.63 55,416 788 12.62 0% 0% 1% 100%
9.1 Erlang HiPE #2 14.65 46,412 512 17.61 12% 27% 5% 77%
9.5 Perl 15.45 10,876 463 15.44 0% 81% 19% 1%
10 Erlang HiPE 16.03 35,912 559 16.35 1% 1% 99% 2%
12 Java 19.56 254,404 800 21.25 3% 6% 97% 6%
13 Lisp SBCL #2 21.04 333,764 648 21.01 0% 100% 1% 0%
15 JRuby 23.74 776,596 518 34.32 19% 14% 78% 35%
15 F# .NET Core #2 24.59 80,624 701 25.78 25% 34% 31% 16%
16 Free Pascal 25.22 652 3060 25.22 100% 0% 1% 0%
17 Racket 27.58 124,156 453 27.56 100% 1% 0% 0%
18 Matz's Ruby 29.39 17,712 518 29.34 0% 0% 100% 0%
19 Java AOT 30.26 269,940 800 30.22 1% 30% 71% 1%
20 Truffle Ruby 31.61 562,844 518 67.27 55% 50% 55% 53%
20 Ruby 31.64 167,496 518 64.02 46% 55% 36% 68%
24 F# .NET Core 39.55 104,924 513 41.28 20% 34% 32% 18%
337 PHP 9 min 11,680 736 9 min 0% 91% 10% 0%
C# .NET Core #2 Failed
C++ g++ #3 Timed Out
Dart Bad Output
Fortran Intel #3 Make Error
Fortran Intel Failed
Haskell GHC #4 Make Error
Hack Bad Output
Java AOT #2 Make Error
Node js #2 Failed
Lisp SBCL Bad Output
Lua #7 Failed
Lua Failed
Lua #5 Failed
Ruby #5 Failed
Ruby #2 Failed
Matz's Ruby #5 Failed
Matz's Ruby #2 Failed
JRuby #5 Failed
Truffle Ruby #5 Failed
Truffle Ruby #2 Failed
Swift Make Error