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 manually vectorized SIMD programs.

× source secs mem gz busy cpu load
1.0 Rust #7 0.71 2,544 932 2.85 99% 100% 100% 100%
1.0 Rust #4 0.72 2,600 817 2.85 100% 99% 100% 100%
1.0 Rust #5 0.72 2,592 1055 2.84 99% 99% 100% 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.87 100% 100% 100% 100%
1.0 C gcc #4 0.72 2,356 1139 2.88 100% 100% 99% 99%
1.0 Rust 0.73 2,204 1254 2.88 99% 99% 99% 100%
1.0 Rust #2 0.73 2,248 1110 2.89 99% 100% 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,244 1053 2.97 99% 99% 99% 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 Swift #3 1.43 8,168 601 5.68 99% 100% 99% 99%
2.0 Go #4 1.44 2,356 548 5.71 99% 99% 99% 99%
2.0 Lisp SBCL #2 1.44 15,688 915 5.70 99% 99% 99% 99%
2.0 Lisp SBCL #3 1.44 15,680 890 5.72 99% 99% 99% 99%
2.0 Lisp SBCL #7 1.44 15,680 762 5.72 99% 99% 99% 99%
2.0 Lisp SBCL #8 1.44 15,664 791 5.71 99% 99% 99% 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 Haskell GHC #4 1.47 3,964 987 5.71 97% 97% 97% 97%
2.1 Ada 2012 GNAT #3 1.48 4,264 1717 5.76 97% 97% 98% 98%
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.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 Go #2 1.56 1,496 668 5.67 92% 92% 90% 90%
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 64,452 999 6.18 83% 86% 83% 83%
3.7 Intel Fortran #2 2.66 1,924 513 2.67 0% 0% 0% 100%
5.5 Racket #3 3.90 66,500 627 15.15 100% 96% 96% 96%
7.5 Swift 5.32 12,448 438 5.35 0% 0% 0% 100%
7.5 Go 5.32 2,712 411 5.35 0% 0% 100% 0%
7.5 Lisp SBCL #6 5.32 16,900 505 5.82 5% 5% 0% 100%
7.5 Node js #7 5.36 33,636 414 5.38 100% 0% 0% 0%
7.5 OCaml #2 5.36 3,436 377 5.37 0% 0% 100% 0%
7.5 Node js 5.37 33,904 319 5.37 100% 0% 0% 0%
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.8 Dart #5 5.59 129,020 489 5.74 1% 3% 2% 96%
7.8 Dart 5.59 124,248 462 6.30 5% 98% 5% 4%
8.0 Lisp SBCL 5.71 20,776 631 5.76 0% 0% 0% 100%
8.5 Haskell GHC #2 6.08 6,028 403 6.08 0% 0% 0% 100%
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%
20 Racket 14.58 66,508 446 15.37 2% 100% 0% 3%
21 Racket #2 14.64 66,768 532 15.03 2% 0% 0% 100%
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%
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%
112 Lua 79.73 2,780 329 79.91 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%
165 Ruby #4 118.16 24,764 326 120.08 0% 1% 100% 0%
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%
226 Ruby 161.58 24,272 292 165.49 100% 0% 0% 2%
255 Ruby #5 182.14 26,228 758 12 min 99% 99% 99% 99%
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 9 min 19,728 758 34 min 93% 95% 94% 94%
  Matz's Ruby 22 min 6,080 292 22 min 0% 0% 25% 76%
  Matz's Ruby #4 23 min 5,928 326 24 min 0% 0% 0% 100%