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 #5 0.71 2,696 1055 2.86 100% 100% 100% 100%
1.0 Rust #4 0.72 2,596 817 2.83 99% 99% 99% 100%
1.0 C++ g++ #6 0.72 1,216 1044 2.86 100% 100% 99% 100%
1.0 C gcc #5 0.72 1,100 569 2.86 100% 99% 100% 100%
1.0 Intel Fortran #3 0.72 1,776 638 2.85 100% 100% 99% 99%
1.0 Rust #6 0.72 2,524 1126 2.86 100% 99% 100% 99%
1.0 C gcc #4 0.72 2,356 1139 2.88 100% 100% 99% 99%
1.0 Rust #2 0.73 2,276 1110 2.87 99% 99% 99% 99%
1.0 Rust #7 0.73 2,576 932 2.88 99% 99% 100% 99%
1.0 Rust 0.73 2,224 1254 2.88 99% 99% 99% 100%
1.0 Ada 2012 GNAT #4 0.74 4,252 2770 2.88 97% 97% 97% 96%
1.1 Rust #3 0.75 2,228 1053 2.98 99% 99% 100% 99%
1.1 C# .NET #5 0.82 34,720 764 2.98 91% 88% 89% 98%
1.7 Julia #3 1.23 180,836 521 3.87 73% 71% 91% 80%
1.9 C++ g++ #5 1.33 3,276 1044 5.29 100% 99% 99% 100%
2.0 C gcc #3 1.43 1,100 463 5.68 99% 100% 100% 99%
2.0 Go #4 1.43 2,088 548 5.67 99% 99% 99% 99%
2.0 Lisp SBCL #8 1.43 15,772 791 5.69 99% 99% 99% 99%
2.0 Lisp SBCL #7 1.44 15,760 762 5.70 99% 99% 99% 99%
2.0 Lisp SBCL #2 1.44 15,744 915 5.69 99% 99% 99% 99%
2.0 Lisp SBCL #3 1.44 15,752 890 5.69 99% 99% 99% 99%
2.0 Swift #3 1.44 7,960 601 5.73 100% 99% 100% 99%
2.0 Free Pascal #3 1.44 1,908 650 5.72 99% 99% 99% 99%
2.0 Free Pascal #2 1.45 1,796 542 5.72 99% 99% 99% 99%
2.0 Chapel 1.46 5,204 310 5.80 99% 99% 99% 99%
2.1 Ada 2012 GNAT #3 1.48 4,264 1717 5.76 97% 97% 98% 98%
2.1 Haskell GHC #4 1.48 4,044 987 5.71 96% 96% 97% 96%
2.1 C++ g++ #8 1.52 2,364 1278 6.07 100% 100% 99% 99%
2.1 C# .NET #3 1.52 30,908 878 5.81 98% 95% 95% 94%
2.1 Go #2 1.53 1,804 668 5.67 95% 92% 91% 92%
2.2 F# .NET #2 1.55 31,916 853 5.83 92% 98% 93% 93%
2.2 F# .NET #4 1.55 32,684 732 5.91 92% 96% 95% 96%
2.2 Julia #2 1.58 185,512 370 5.22 77% 77% 99% 77%
2.3 Java  #2 1.68 38,348 950 6.43 96% 96% 96% 95%
2.4 Java #3 1.68 38,984 756 6.48 98% 95% 95% 96%
2.6 Node js #6 1.84 61,080 999 6.15 84% 81% 86% 83%
3.7 Intel Fortran #2 2.66 1,924 513 2.67 0% 0% 0% 100%
4.1 Racket #3 2.90 40,688 627 10.89 93% 93% 93% 97%
7.5 Go 5.32 2,636 411 5.34 0% 0% 100% 0%
7.5 Lisp SBCL #6 5.32 16,992 505 5.36 0% 0% 0% 100%
7.5 Node js #7 5.36 32,388 414 5.38 0% 0% 0% 100%
7.5 OCaml #2 5.36 3,436 377 5.37 0% 0% 100% 0%
7.5 Swift 5.37 12,156 438 5.40 0% 0% 100% 0%
7.5 Node js 5.37 32,716 319 5.40 0% 0% 0% 100%
7.5 C++ g++ 5.37 3,216 452 5.40 0% 0% 100% 1%
7.5 C gcc 5.39 1,052 383 5.40 0% 100% 0% 0%
7.6 Ada 2012 GNAT 5.39 1,924 716 5.40 0% 0% 0% 100%
7.7 Dart 5.53 123,976 462 5.74 97% 1% 3% 3%
7.8 Dart #5 5.53 123,860 489 5.66 1% 1% 2% 98%
8.0 Lisp SBCL 5.74 17,000 631 5.80 0% 100% 0% 0%
8.5 Haskell GHC #2 6.08 6,092 403 6.15 1% 0% 100% 0%
8.6 Java 6.17 38,168 514 6.32 0% 100% 1% 2%
11 PHP 7.51 35,364 1152 29.55 99% 98% 98% 98%
16 Erlang HiPE #2 11.18 36,732 747 44.14 98% 99% 99% 99%
16 Free Pascal 11.77 8 423 11.97 0% 100% 1% 1%
26 PHP #3 18.77 37,668 1210 73.74 98% 98% 98% 98%
29 VW Smalltalk #2 20.54 248,124 1047 62.47 72% 73% 75% 84%
35 Perl #4 24.69 12,188 555 96.59 97% 99% 98% 97%
35 Racket #2 25.23 36,716 532 25.92 1% 1% 1% 100%
38 Racket 27.47 36,324 446 28.17 1% 100% 1% 1%
69 VW Smalltalk 49.55 55,032 642 49.71 100% 0% 0% 0%
95 PHP #2 67.74 13,172 397 72.33 3% 100% 1% 3%
122 Lua 87.25 2,736 329 87.59 0% 0% 100% 0%
129 Erlang HiPE 92.35 29,888 507 93.06 100% 0% 0% 0%
135 Perl #5 96.64 7,864 340 98.95 100% 0% 1% 1%
142 Perl 101.53 7,832 333 104.34 1% 1% 100% 1%
160 Ruby #4 113.92 25,196 326 115.91 1% 0% 1% 100%
166 Python 3 #8 118.40 22,912 407 7 min 99% 99% 99% 100%
174 Python 3 #7 124.29 13,844 417 8 min 100% 100% 100% 100%
182 Perl #3 129.67 17,964 850 8 min 98% 98% 98% 98%
207 Ruby #5 148.14 25,104 839 9 min 98% 98% 98% 98%
228 Ruby 162.64 25,180 292 167.76 1% 100% 1% 1%
576 Matz's Ruby 6 min 4,400 292 13 min 0% 100% 10% 90%
611 Matz's Ruby #4 7 min 4,500 326 14 min 1% 100% 0% 100%
626 Perl #2 7 min 6,964 343 7 min 100% 1% 1% 1%
676 Python 3 #6 8 min 9,644 328 8 min 0% 100% 0% 1%
  Matz's Ruby #5 10 min 19,176 839 40 min 99% 98% 99% 99%