The Computer Language
Benchmarks Game

spectral-norm

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 low-level programs written for SIMD.

× source secs mem gz busy cpu load
1.0 Rust #6 1.97 2,220 1126 7.88 100% 99% 99% 100%
1.0 C gcc #5 1.98 1,236 569 7.87 99% 99% 99% 99%
1.0 C++ g++ #6 1.98 2,320 1044 7.90 99% 100% 99% 100%
1.0 C gcc #4 1.98 2,356 1139 7.89 99% 99% 99% 100%
1.0 Rust #5 1.99 2,100 1055 7.92 99% 99% 99% 99%
1.0 Intel Fortran #3 1.99 1,748 638 7.94 100% 100% 99% 100%
1.0 C++ g++ #5 2.00 3,220 1044 7.98 100% 100% 100% 100%
1.0 Ada 2012 GNAT #4 2.00 4,360 2770 7.89 99% 99% 99% 99%
1.0 Rust #2 2.05 2,224 1110 7.96 98% 97% 97% 97%
1.1 Rust 2.07 2,276 1254 7.96 96% 97% 96% 95%
1.1 C# .NET Core #5 2.13 36,024 764 8.11 93% 98% 95% 93%
1.2 Rust #3 2.30 2,332 1053 8.89 97% 96% 96% 97%
1.2 Rust #4 2.31 2,188 817 9.21 100% 100% 100% 100%
1.4 Julia #3 2.67 168,236 521 8.94 79% 79% 78% 98%
1.7 C++ g++ #8 3.40 2,412 1278 13.55 100% 100% 100% 100%
2.0 C gcc #3 3.94 1,180 463 15.74 100% 100% 100% 100%
2.0 Swift #3 3.96 8,044 601 15.81 100% 100% 100% 99%
2.0 Go #4 3.96 2,752 548 15.74 99% 99% 99% 99%
2.0 Chapel 3.97 5,488 310 15.77 99% 99% 99% 99%
2.0 Lisp SBCL #8 3.98 16,756 791 15.76 99% 99% 99% 99%
2.0 Free Pascal #2 3.98 1,912 542 15.84 99% 99% 99% 99%
2.0 Lisp SBCL #7 3.99 16,692 762 15.77 99% 99% 99% 99%
2.0 Lisp SBCL #3 4.00 16,696 890 15.76 99% 99% 99% 99%
2.0 Lisp SBCL #2 4.00 20,184 915 15.76 99% 98% 98% 99%
2.0 Free Pascal #3 4.00 1,892 650 15.92 100% 99% 100% 100%
2.0 Ada 2012 GNAT #3 4.00 4,368 1717 15.79 99% 99% 99% 98%
2.1 C# .NET Core #3 4.08 32,192 878 15.87 97% 97% 98% 98%
2.1 Go #2 4.09 1,992 668 15.78 96% 96% 98% 96%
2.1 Haskell GHC #4 4.10 4,012 987 15.83 97% 97% 99% 95%
2.1 C# .NET Core #4 4.10 32,788 1102 15.90 97% 96% 97% 98%
2.1 F# .NET Core #2 4.11 35,712 853 15.92 96% 97% 99% 96%
2.1 C# .NET Core #2 4.14 32,088 930 16.11 97% 97% 98% 97%
2.1 F# .NET Core #4 4.18 35,964 732 16.12 96% 98% 96% 95%
2.1 F# .NET Core #5 4.19 37,396 730 16.23 96% 99% 96% 96%
2.1 F# .NET Core #6 4.22 36,012 787 16.27 95% 96% 98% 96%
2.1 Java  #2 4.22 36,948 950 16.43 98% 97% 98% 96%
2.1 Java #3 4.23 37,860 756 16.23 96% 95% 96% 97%
2.2 F# .NET Core #7 4.28 36,904 592 16.59 96% 97% 99% 96%
2.2 Node js #6 4.29 62,304 999 16.47 96% 96% 96% 97%
2.4 Julia #2 4.74 171,820 370 17.12 88% 87% 99% 87%
2.4 F# .NET Core #3 4.75 35,428 721 18.39 97% 96% 96% 99%
2.7 Racket #3 5.41 40,256 627 20.73 95% 95% 98% 95%
4.0 Intel Fortran #2 7.85 3,324 513 7.99 39% 0% 1% 62%
8.0 Go 15.70 2,764 411 15.91 0% 0% 100% 0%
8.0 OCaml #2 15.70 3,712 377 15.99 1% 1% 100% 0%
8.0 Ada 2012 GNAT 15.70 3,696 716 15.92 100% 1% 1% 0%
8.0 Swift 15.70 12,680 438 15.84 0% 0% 100% 1%
8.0 Lisp SBCL #6 15.73 21,268 505 15.82 100% 1% 0% 0%
8.0 Lisp SBCL 15.73 21,320 631 15.88 100% 0% 1% 0%
8.0 Haskell GHC #2 15.77 6,032 403 16.07 0% 2% 100% 0%
8.0 C gcc 15.78 1,100 383 16.07 0% 1% 1% 100%
8.0 Node js 15.78 34,892 319 15.99 0% 1% 1% 100%
8.0 Node js #3 15.79 34,940 381 16.07 0% 1% 1% 100%
8.0 Node js #2 15.80 34,004 336 16.12 0% 1% 1% 100%
8.0 Node js #5 15.81 35,076 393 16.16 1% 2% 100% 0%
8.0 TypeScript 15.84 35,740 388 16.06 100% 1% 1% 0%
8.0 C# .NET Core 15.84 31,780 459 15.99 1% 0% 100% 0%
8.1 Free Pascal 15.98 8 423 16.15 100% 0% 1% 0%
8.1 Dart 16.04 119,092 462 16.65 99% 2% 1% 1%
8.1 Dart #5 16.05 119,496 489 17.35 99% 5% 4% 1%
8.1 C++ g++ 16.05 3,228 452 16.17 0% 1% 0% 100%
8.4 Java 16.58 37,360 514 16.93 100% 1% 1% 0%
10 TypeScript #2 20.04 36,484 388 20.25 2% 92% 5% 2%
11 Erlang HiPE #2 20.84 32,656 747 68.21 85% 84% 79% 79%
17 PHP 33.49 24,336 1152 132.61 99% 99% 99% 99%
17 VW Smalltalk #2 33.72 247,024 1047 111.66 81% 83% 83% 83%
19 Racket #2 37.88 36,716 532 38.32 64% 1% 0% 36%
19 Perl #4 38.15 11,784 555 146.68 95% 97% 95% 97%
20 Racket 40.40 35,920 446 41.57 1% 2% 1% 100%
29 PHP #3 56.28 25,852 1210 223.88 99% 100% 99% 100%
46 VW Smalltalk 91.64 54,988 642 92.41 74% 0% 0% 26%
57 Erlang HiPE 112.45 28,936 507 113.86 0% 41% 59% 0%
75 Perl #5 147.46 7,400 340 148.88 97% 0% 0% 4%
76 Ruby #5 150.32 26,188 839 9 min 97% 97% 97% 97%
78 Perl 153.76 7,500 333 155.52 0% 12% 88% 1%
86 Python 3 #7 169.87 49,188 417 11 min 100% 99% 99% 99%
94 Perl #3 184.89 18,792 850 12 min 100% 100% 100% 100%
98 Lua 192.80 2,872 329 199.44 15% 85% 1% 2%
106 Ruby #4 209.02 25,408 326 212.23 0% 1% 100% 0%
114 PHP #2 225.01 8,676 397 227.66 0% 20% 81% 0%
147 Ruby 289.55 25,404 292 295.48 87% 1% 5% 9%
315 Python 3 #6 10 min 9,572 328 10 min 1% 1% 91% 10%
387 Perl #2 12 min 6,820 343 12 min 1% 17% 83% 0%
493 Matz's Ruby #5 16 min 21,068 839 1h 04 min 99% 98% 99% 99%
  Matz's Ruby 39 min 6,080 292 39 min 98% 0% 2% 1%
  Matz's Ruby #4 46 min 6,072 326 46 min 66% 34% 0% 0%