The Computer Language
Benchmarks Game

pidigits

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Chapel #2 1.62 6,484 423 1.63 99% 1% 1% 2%
1.0 Chapel 1.62 6,488 501 1.63 99% 1% 1% 1%
1.1 Free Pascal #3 1.73 2,428 530 1.72 0% 2% 100% 1%
1.1 Rust #3 1.74 4,488 1366 1.74 1% 100% 1% 0%
1.1 Rust 1.74 4,616 1420 1.74 1% 100% 1% 0%
1.1 Rust #2 1.74 4,636 1306 1.74 1% 100% 0% 0%
1.1 C gcc 1.75 2,728 452 1.74 1% 2% 0% 100%
1.1 Ada 2012 GNAT #2 1.75 4,312 1068 1.75 1% 0% 100% 0%
1.1 Swift #2 1.76 8,492 601 1.76 1% 100% 1% 0%
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.3 Go #3 2.04 8,976 603 2.04 1% 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.3 Racket #2 2.19 26,440 1136 2.18 0% 100% 1% 0%
1.8 Go 2.96 9,480 708 2.97 13% 21% 43% 25%
1.8 Go #2 2.96 9,240 733 2.96 1% 0% 100% 0%
1.9 C# .NET Core #4 3.06 36,204 1121 3.06 98% 1% 2% 3%
1.9 C# .NET Core #3 3.07 37,068 1026 3.08 100% 1% 2% 0%
1.9 F# .NET Core #4 3.08 37,256 874 3.09 98% 1% 0% 3%
1.9 F# .NET Core #3 3.10 38,652 909 3.11 4% 0% 1% 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.51 10,500 386 3.50 1% 1% 0% 100%
2.4 Perl #2 3.83 7,320 389 3.83 2% 1% 100% 1%
4.1 OCaml #5 6.72 19,836 458 6.71 1% 1% 1% 100%
6.7 Free Pascal #2 10.93 2,628 828 10.93 100% 0% 0% 0%
6.7 Ada 2012 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%
8.5 Erlang HiPE #3 13.79 46,228 562 16.86 13% 25% 6% 79%
8.9 Node js #4 14.47 62,316 530 14.53 13% 1% 1% 87%
9.0 Erlang HiPE #2 14.57 43,304 512 18.09 16% 65% 38% 7%
9.5 Perl 15.45 10,876 463 15.44 0% 81% 19% 1%
10 Erlang HiPE 16.17 40,480 559 16.61 4% 1% 53% 46%
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.53 80,344 701 25.71 33% 28% 27% 19%
16 Free Pascal 25.22 652 3060 25.22 100% 0% 1% 0%
17 Node js #3 27.11 62,352 553 27.15 1% 84% 16% 1%
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%
19 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.53 105,312 513 41.27 21% 35% 34% 16%
336 PHP 9 min 11,680 736 9 min 0% 91% 10% 0%
C# .NET Core #2 Failed
C++ g++ #3 Timed Out
Dart Failed
Fortran Intel #3 Make Error
Fortran Intel Failed
Haskell GHC #4 Make Error
Hack Bad Output
Java AOT #2 Make Error
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