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 0.71 2,436 1126 2.86 100% 100% 100% 100%
1.0 C++ g++ #6 0.72 2,348 1044 2.84 100% 99% 99% 99%
1.0 C gcc #5 0.72 1,020 569 2.87 100% 100% 100% 99%
1.0 Intel Fortran #3 0.72 1,780 638 2.88 100% 100% 100% 100%
1.0 C gcc #4 0.72 2,356 1139 2.86 99% 100% 100% 99%
1.0 Rust #5 0.72 2,444 1055 2.87 99% 100% 99% 100%
1.0 Rust #4 0.72 2,396 817 2.88 100% 100% 100% 100%
1.0 Rust #2 0.74 2,340 1110 2.90 97% 99% 99% 100%
1.0 Rust 0.74 2,164 1254 2.92 99% 100% 99% 99%
1.0 Ada 2012 GNAT #4 0.74 4,232 2770 2.86 96% 96% 97% 99%
1.1 Rust #3 0.78 2,196 1053 3.10 100% 99% 99% 99%
1.2 C# .NET Core #5 0.83 33,876 764 2.98 93% 89% 90% 88%
1.7 Julia #3 1.21 179,392 521 3.66 68% 99% 68% 68%
1.9 C++ g++ #5 1.33 3,296 1044 5.28 100% 99% 99% 99%
2.0 C gcc #3 1.43 1,020 463 5.67 99% 99% 99% 99%
2.0 Go #4 1.43 2,668 548 5.70 99% 99% 99% 100%
2.0 Swift #3 1.44 7,932 601 5.72 99% 100% 99% 99%
2.0 Lisp SBCL #3 1.44 15,936 890 5.70 99% 99% 99% 99%
2.0 Lisp SBCL #2 1.44 15,944 915 5.70 99% 99% 99% 99%
2.0 Lisp SBCL #7 1.45 15,932 762 5.68 98% 98% 99% 99%
2.0 Free Pascal #2 1.45 1,876 542 5.73 99% 99% 99% 99%
2.0 Free Pascal #3 1.45 1,800 650 5.73 99% 99% 99% 99%
2.0 Lisp SBCL #8 1.45 15,924 791 5.70 98% 99% 98% 99%
2.0 Chapel 1.46 5,168 310 5.80 99% 99% 99% 99%
2.1 Go #2 1.47 2,116 668 5.70 98% 97% 97% 97%
2.1 Ada 2012 GNAT #3 1.47 4,160 1717 5.76 97% 97% 98% 98%
2.1 Haskell GHC #4 1.48 4,124 987 5.73 96% 97% 96% 98%
2.1 C++ g++ #8 1.53 2,356 1278 6.09 99% 100% 99% 100%
2.2 C# .NET Core #3 1.54 30,540 878 5.79 94% 94% 94% 95%
2.2 F# .NET Core #2 1.56 33,784 853 5.83 94% 92% 96% 92%
2.2 Java  #3 1.57 39,376 756 5.94 96% 94% 95% 95%
2.2 F# .NET Core #4 1.58 35,920 732 5.91 96% 96% 91% 92%
2.4 Node js #6 1.68 62,068 999 6.05 89% 90% 91% 90%
2.4 Java #2 1.68 38,324 950 6.40 95% 96% 96% 94%
2.7 Julia #2 1.95 183,048 370 6.51 99% 78% 78% 78%
3.7 Intel Fortran #2 2.66 1,660 513 2.66 0% 0% 100% 0%
4.0 Racket #3 2.87 38,656 627 10.89 94% 94% 94% 98%
7.4 Free Pascal 5.31 8 423 5.51 2% 1% 100% 1%
7.4 Go 5.32 2,712 411 5.36 100% 0% 0% 0%
7.4 Lisp SBCL #6 5.32 16,908 505 5.34 0% 100% 0% 0%
7.5 C gcc 5.33 920 383 5.51 1% 3% 0% 100%
7.5 OCaml #2 5.35 3,504 377 5.38 0% 0% 100% 0%
7.5 Swift 5.36 12,008 438 5.36 100% 0% 0% 0%
7.5 Node js #7 5.36 32,584 414 5.37 0% 100% 0% 0%
7.5 Ada 2012 GNAT 5.39 3,428 716 5.46 0% 1% 100% 0%
7.6 C++ g++ 5.43 3,180 452 5.51 100% 1% 1% 0%
7.7 Node js 5.48 33,748 319 5.51 0% 1% 0% 100%
7.7 Dart 5.52 123,280 462 5.65 2% 2% 1% 98%
7.7 Dart #5 5.53 123,424 489 5.65 1% 1% 97% 2%
8.0 Lisp SBCL 5.71 16,916 631 5.75 100% 0% 0% 0%
8.5 Haskell GHC #2 6.08 5,996 403 6.17 1% 100% 0% 0%
11 Java 7.57 38,848 514 7.67 100% 0% 0% 1%
16 Erlang HiPE #2 11.17 36,596 747 44.05 99% 99% 98% 98%
25 PHP 17.84 24,120 1152 71.08 100% 100% 100% 100%
29 VW Smalltalk #2 20.53 246,372 1047 62.40 75% 78% 76% 75%
35 Racket #2 25.20 36,452 532 25.41 100% 0% 0% 0%
36 Perl #4 25.68 12,092 555 101.06 98% 99% 98% 98%
38 Racket 27.44 35,936 446 27.84 97% 0% 3% 1%
55 PHP #3 39.04 25,732 1210 155.77 100% 100% 100% 100%
69 VW Smalltalk 49.25 54,436 642 49.58 100% 0% 0% 0%
122 Lua 87.18 2,696 329 87.66 0% 100% 0% 0%
130 Erlang HiPE 92.54 27,580 507 93.21 56% 0% 45% 0%
139 Ruby #5 99.44 25,108 839 6 min 96% 95% 95% 95%
142 Perl #5 101.38 7,868 340 102.01 0% 0% 0% 100%
147 Perl 104.79 7,836 333 105.40 0% 100% 0% 0%
174 Python 3 #7 124.52 49,872 417 8 min 97% 97% 97% 97%
187 Perl #3 133.52 17,860 850 8 min 99% 99% 99% 99%
194 Ruby #4 138.38 24,084 326 139.72 0% 0% 0% 100%
204 PHP #2 145.90 8,896 397 147.19 0% 0% 0% 100%
208 Ruby 148.25 23,772 292 150.36 1% 0% 100% 0%
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%
622 Python 3 #6 7 min 9,616 328 7 min 0% 0% 100% 0%
658 Perl #2 7 min 7,192 343 7 min 0% 47% 0% 53%
  Matz's Ruby #5 10 min 19,176 839 40 min 99% 98% 99% 99%