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 #4 0.72 2,448 817 2.84 100% 99% 100% 99%
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,820 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,428 1055 2.88 100% 100% 100% 100%
1.0 Rust #6 0.72 2,452 1126 2.87 100% 100% 99% 100%
1.0 Rust #2 0.73 2,200 1110 2.90 100% 99% 99% 99%
1.0 Rust 0.74 2,216 1254 2.89 99% 99% 97% 99%
1.0 Ada 2012 GNAT #4 0.74 4,232 2770 2.86 96% 96% 97% 99%
1.0 Rust #3 0.74 2,200 1053 2.93 99% 99% 99% 100%
1.2 C# .NET Core #5 0.83 34,120 764 2.97 88% 90% 88% 93%
1.7 Julia #3 1.22 181,480 521 3.85 73% 99% 72% 71%
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 Lisp SBCL #3 1.44 15,796 890 5.69 99% 99% 99% 99%
2.0 Lisp SBCL #8 1.44 15,796 791 5.67 99% 99% 99% 99%
2.0 Lisp SBCL #7 1.44 15,800 762 5.68 99% 99% 99% 99%
2.0 Swift #3 1.44 7,932 601 5.72 99% 100% 99% 99%
2.0 Lisp SBCL #2 1.44 15,824 915 5.69 99% 99% 99% 99%
2.0 Go #4 1.44 2,340 548 5.69 99% 99% 99% 99%
2.0 Free Pascal #3 1.44 1,824 650 5.71 99% 99% 99% 99%
2.0 Free Pascal #2 1.44 1,784 542 5.72 99% 99% 99% 99%
2.0 Go #2 1.46 1,540 668 5.70 98% 99% 97% 97%
2.0 Chapel 1.46 5,168 310 5.80 99% 99% 99% 99%
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.1 C# .NET Core #3 1.53 30,752 878 5.81 95% 95% 93% 95%
2.2 F# .NET Core #2 1.56 33,784 853 5.83 94% 92% 96% 92%
2.2 Julia #2 1.57 186,044 370 5.20 77% 78% 77% 99%
2.2 F# .NET Core #4 1.58 35,920 732 5.91 96% 96% 91% 92%
2.3 Java  #2 1.66 38,280 950 6.36 97% 95% 96% 96%
2.3 Node js #6 1.66 62,744 999 6.04 90% 90% 93% 90%
2.4 Java #3 1.69 39,048 756 6.49 95% 97% 97% 96%
3.7 Intel Fortran #2 2.66 1,928 513 2.68 0% 0% 100% 0%
4.0 Racket #3 2.86 38,512 627 10.88 94% 94% 94% 98%
7.4 Go 5.32 2,096 411 5.38 1% 0% 1% 100%
7.4 Lisp SBCL #6 5.32 16,988 505 5.78 4% 100% 4% 0%
7.5 C gcc 5.33 920 383 5.51 1% 3% 0% 100%
7.5 OCaml #2 5.35 3,428 377 5.38 0% 100% 0% 0%
7.5 Swift 5.36 12,008 438 5.36 100% 0% 0% 0%
7.5 Node js #7 5.36 32,332 414 5.39 100% 0% 0% 0%
7.5 Node js 5.37 33,264 319 5.38 100% 0% 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 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 21,044 631 6.36 0% 6% 100% 5%
8.5 Haskell GHC #2 6.08 5,996 403 6.17 1% 100% 0% 0%
8.6 Java 6.17 38,200 514 6.48 100% 4% 0% 1%
16 Erlang HiPE #2 11.17 36,596 747 44.05 99% 99% 98% 98%
16 Free Pascal 11.76 8 423 11.77 0% 0% 100% 0%
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.19 36,716 532 25.25 0% 0% 100% 0%
36 Perl #4 25.68 12,092 555 101.06 98% 99% 98% 98%
38 Racket 27.42 36,128 446 27.46 0% 100% 0% 0%
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%
129 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%
163 Python 3 #8 116.23 50,080 407 7 min 100% 100% 100% 100%
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%
207 Ruby 148.25 23,772 292 150.36 1% 0% 100% 0%
575 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%
621 Python 3 #6 7 min 9,616 328 7 min 0% 0% 100% 0%
657 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%