The Computer Language
22.01 Benchmarks Game

pidigits

Always look at the source code.

Look at the slower simple sequential programs, and  look at the parallel programs written for multicore, and  look at the manually vectorized SIMD programs. Choose which programs you want to compare.

× source secs mem gz busy cpu load
1.0 C gcc #6 0.56 2,440 1090 2.26 100% 100% 100% 100%
1.0 C++ g++ #6 0.59 5,024 986 2.36 98% 100% 100% 100%
1.2 Rust #4 0.70 2,580 799 0.70 0% 100% 0% 0%
1.3 C++ g++ #4 0.71 4,348 513 0.76 100% 3% 1% 3%
1.3 Rust #6 0.71 2,704 1597 2.85 100% 100% 100% 100%
1.3 C++ g++ #5 0.72 4,208 798 0.77 100% 4% 0% 3%
1.3 Ada 2012 GNAT #2 0.73 4,680 1130 0.73 0% 0% 100% 0%
1.3 Free Pascal #3 0.73 2,148 487 0.77 1% 0% 4% 100%
1.3 Classic Fortran #4 0.73 3,932 981 0.81 100% 5% 0% 5%
1.3 C gcc #2 0.74 2,916 416 0.77 0% 100% 1% 4%
1.3 Rust #3 0.74 2,964 1366 0.77 0% 100% 0% 4%
1.3 Rust 0.74 2,980 1420 0.75 1% 100% 0% 0%
1.3 Rust #2 0.74 3,108 1306 0.75 1% 0% 0% 100%
1.3 C gcc 0.74 2,660 452 0.78 0% 0% 100% 5%
1.3 OCaml #7 0.74 6,188 593 0.75 0% 0% 1% 100%
1.3 Swift #2 0.74 7,904 600 0.83 3% 3% 100% 7%
1.3 Chapel #2 0.76 7,432 423 0.85 100% 1% 5% 5%
1.3 Chapel #3 0.76 7,492 512 0.84 99% 5% 1% 5%
1.3 Chapel #4 0.76 7,424 512 0.83 100% 1% 3% 5%
1.4 Java  #3 0.79 36,192 764 0.82 0% 4% 1% 99%
1.4 C# .NET #6 0.79 33,196 1168 0.81 98% 4% 0% 1%
1.4 F# .NET #6 0.81 33,368 905 0.80 1% 96% 1% 0%
1.5 C# .NET #5 0.83 35,072 977 0.83 2% 1% 96% 0%
1.5 Go #4 0.86 9,188 683 0.90 99% 3% 1% 1%
1.6 PHP #5 0.92 14,236 399 0.93 0% 100% 1% 0%
1.6 PHP #4 0.93 14,228 389 0.96 2% 100% 1% 0%
1.7 PHP #3 0.94 14,376 504 0.96 1% 0% 1% 100%
1.7 Julia #3 0.97 179,944 506 1.24 8% 9% 99% 11%
1.8 Racket #2 1.03 68,576 1136 1.12 0% 3% 100% 6%
1.9 Julia #2 1.07 192,188 674 1.37 99% 12% 8% 8%
2.0 Node js #5 1.14 40,328 599 1.20 1% 100% 1% 3%
2.1 Python 3 #3 1.16 11,700 567 1.19 1% 100% 1% 1%
2.1 Go 1.21 9,336 708 1.26 2% 7% 95% 1%
2.3 F# .NET #4 1.27 34,776 874 1.29 2% 98% 0% 2%
2.3 C# .NET #4 1.28 31,580 1121 1.28 0% 98% 1% 1%
2.3 Java #2 1.29 40,092 938 1.37 2% 98% 4% 2%
2.4 Go #3 1.33 8,940 603 1.45 5% 25% 59% 20%
2.5 PHP #2 1.43 14,748 545 1.44 0% 0% 1% 100%
2.6 Haskell GHC #6 1.45 17,956 360 1.50 95% 3% 2% 2%
2.6 Ruby #5 1.47 841,620 485 1.69 3% 100% 1% 11%
2.9 Haskell GHC #4 1.63 17,892 348 1.74 3% 2% 36% 65%
3.3 Perl #4 1.84 8,416 261 1.89 100% 2% 1% 1%
3.3 Julia 1.88 265,568 275 2.16 5% 99% 5% 5%
3.4 Go #2 1.92 9,008 733 1.99 1% 2% 48% 54%
3.5 Perl #2 1.95 8,272 389 2.03 1% 100% 2% 1%
3.5 Haskell GHC #3 1.99 17,940 379 2.10 7% 3% 92% 4%
3.6 Haskell GHC #2 2.01 17,976 585 2.11 35% 44% 25% 2%
3.6 Haskell GHC 2.03 18,028 460 2.05 1% 96% 2% 2%
4.6 Go #8 2.59 19,072 720 2.61 0% 0% 100% 0%
4.7 Ruby #2 2.64 562,140 658 2.66 0% 1% 100% 0%
5.5 Dart #2 3.12 42,924 500 3.20 1% 1% 99% 2%
5.6 Lisp SBCL #3 3.17 125,476 493 3.21 100% 1% 1% 0%
6.3 OCaml #5 3.53 19,060 458 3.57 1% 100% 0% 1%
7.2 Python 3 #4 4.05 8,648 342 4.07 0% 100% 0% 0%
7.9 Free Pascal #2 4.47 2,564 797 4.51 100% 1% 0% 0%
7.9 Ada 2012 GNAT 4.48 4,724 1157 4.50 0% 0% 100% 0%
8.6 Go #7 4.87 10,256 696 5.61 25% 31% 32% 28%
11 Lisp SBCL #2 6.09 128,684 648 6.13 0% 100% 0% 0%
13 VW Smalltalk #4 7.19 54,988 753 7.22 100% 0% 0% 0%
13 C# .NET #7 7.36 52,372 567 8.34 19% 30% 33% 31%
14 Java 7.65 409,316 800 8.41 27% 33% 8% 41%
14 Erlang #3 7.74 52,164 562 9.24 14% 98% 3% 4%
14 Erlang 7.89 71,144 559 8.59 96% 3% 2% 7%
16 Erlang #2 8.84 57,804 512 11.02 32% 15% 56% 22%
18 Perl 9.95 12,712 463 10.03 0% 0% 0% 100%
22 Node js #4 12.39 70,536 530 12.48 0% 0% 100% 0%
23 Node js #3 12.71 70,976 553 12.80 0% 100% 0% 0%
26 Free Pascal 14.63 652 3047 14.67 0% 0% 0% 100%
31 Ruby 17.63 446,580 518 18.03 2% 100% 0% 0%
93 Racket 52.68 68,228 453 53.02 100% 0% 0% 0%
178 Haskell GHC #5 100.28 12,920 928 100.78 0% 100% 0% 0%
579 PHP 5 min 15,576 750 5 min 64% 0% 0% 37%
Lua #5 Failed
Lua #7 Failed
Lua Failed
Python 3 #2 Bad Output
Matz's Ruby #5 Failed
Matz's Ruby #2 Failed
Matz's Ruby Bad Output