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.61 6,400 423 1.62 100% 1% 1% 1%
1.0 Chapel 1.61 6,504 501 1.62 100% 1% 2% 1%
1.1 Pascal Free Pascal #3 1.73 2,400 530 1.73 100% 1% 1% 1%
1.1 Rust #3 1.74 4,420 1366 1.74 100% 1% 0% 1%
1.1 Rust 1.74 4,448 1420 1.74 99% 1% 0% 2%
1.1 Rust #2 1.75 4,460 1306 1.74 100% 0% 1% 2%
1.1 C gcc 1.74 2,716 452 1.74 100% 1% 1% 2%
1.1 Ada 2005 GNAT #2 1.75 4,328 1068 1.74 1% 1% 100% 1%
1.1 Swift #2 1.76 8,932 601 1.75 100% 2% 1% 2%
1.1 Lisp SBCL #4 1.78 20,912 940 1.78 1% 2% 1% 99%
1.2 C++ g++ #4 1.88 4,276 513 1.88 0% 100% 1% 0%
1.3 Go #3 2.03 9,428 603 2.03 0% 0% 0% 100%
1.3 PHP #5 2.12 10,256 399 2.12 100% 0% 0% 1%
1.3 PHP #4 2.13 10,264 389 2.13 100% 0% 0% 2%
1.3 PHP #3 2.15 10,244 504 2.15 0% 1% 100% 2%
1.3 Racket #2 2.17 27,660 1122 2.17 100% 0% 1% 0%
1.8 Go #2 2.94 9,456 733 2.94 1% 1% 1% 100%
1.8 Go 2.95 9,452 708 2.96 5% 15% 75% 8%
1.9 C# .NET Core #3 3.03 35,360 1026 3.03 1% 0% 0% 100%
1.9 F# .NET Core #3 3.06 37,836 909 3.05 0% 1% 1% 100%
1.9 Ruby #5 3.14 477,092 478 3.12 0% 100% 2% 1%
2.0 PHP #2 3.25 10,568 545 3.25 100% 0% 0% 1%
2.0 Java  #2 3.12 36,788 938 3.31 6% 3% 4% 96%
2.1 Python 3 #2 3.43 12,716 386 3.43 100% 1% 1% 0%
2.2 Perl #4 3.50 7,348 261 3.50 100% 1% 1% 1%
2.4 Perl #2 3.83 7,320 389 3.83 2% 1% 100% 1%
5.2 Ruby #2 8.48 227,764 653 8.46 1% 100% 0% 0%
6.8 Ada 2005 GNAT 10.93 4,924 1157 10.93 0% 100% 0% 1%
6.8 Pascal Free Pascal #2 10.94 2,568 828 10.93 1% 0% 1% 100%
7.4 Lisp SBCL #3 12.02 130,572 493 12.00 0% 1% 1% 100%
8.3 Smalltalk VW #4 13.37 55,996 773 13.36 1% 1% 100% 1%
9.6 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%
11 Erlang HiPE #2 14.65 46,412 512 17.61 12% 27% 5% 77%
13 Lisp SBCL #2 21.30 129,148 648 21.27 100% 1% 1% 1%
13 Java 19.52 297,464 800 21.30 5% 41% 62% 4%
16 Pascal Free Pascal 25.30 652 3060 25.29 0% 100% 1% 0%
16 Racket 25.63 130,528 453 25.58 100% 0% 1% 1%
17 F# .NET Core #2 25.58 80,396 701 27.69 31% 20% 26% 33%
18 Ruby 29.69 163,316 518 29.63 1% 100% 1% 1%
21 Ruby JRuby 23.23 811,220 518 34.00 51% 22% 20% 57%
28 F# .NET Core 41.23 100,876 513 44.71 34% 23% 24% 30%
338 PHP 9 min 11,168 736 9 min 100% 0% 1% 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
Node.js #2 Bad Output
Lisp SBCL Bad Output
Lua #7 Failed
Lua Failed
Lua #5 Failed
OCaml Make Error
OCaml #4 Make Error
OCaml #2 Make Error
OCaml #3 Make Error
Ruby JRuby #5 Failed
Swift Make Error