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 C gcc #6 0.40 872 1197 1.58 100% 100% 100% 98%
1.8 Rust #5 0.72 2,672 1055 2.86 100% 100% 100% 99%
1.8 Intel Fortran #3 0.72 1,776 638 2.85 100% 100% 99% 99%
1.8 C gcc #5 0.72 1,128 569 2.85 100% 99% 99% 100%
1.8 Rust #7 0.72 2,664 932 2.87 100% 100% 100% 100%
1.8 Rust #4 0.72 2,656 817 2.86 100% 100% 99% 100%
1.8 C++ g++ #6 0.72 1,192 1044 2.85 99% 99% 100% 100%
1.8 Rust #6 0.72 2,460 1126 2.89 100% 100% 100% 100%
1.8 C gcc #4 0.73 1,192 1139 2.86 99% 99% 99% 99%
1.8 Rust #2 0.73 2,580 1110 2.90 99% 99% 99% 100%
1.8 Rust 0.73 2,540 1254 2.89 99% 99% 99% 99%
1.9 Ada 2012 GNAT #4 0.76 4,260 2770 2.95 97% 97% 96% 97%
1.9 Rust #3 0.77 2,740 1053 3.04 99% 100% 100% 99%
2.1 C# .NET #5 0.82 35,048 764 2.99 89% 96% 89% 89%
2.8 Julia #4 1.11 182,068 429 3.74 80% 79% 80% 98%
3.3 C++ g++ #5 1.33 3,368 1044 5.28 99% 99% 99% 100%
3.6 C gcc #3 1.43 1,184 463 5.69 99% 100% 100% 99%
3.6 Swift #3 1.43 8,144 601 5.68 100% 99% 99% 99%
3.6 Go #4 1.43 2,208 548 5.68 99% 99% 100% 99%
3.6 Lisp SBCL #7 1.44 15,680 762 5.72 99% 99% 99% 99%
3.6 Lisp SBCL #2 1.44 15,688 915 5.70 99% 99% 99% 99%
3.6 Lisp SBCL #3 1.44 15,680 890 5.72 99% 99% 99% 99%
3.6 Go #2 1.44 1,456 668 5.69 99% 99% 99% 99%
3.6 Lisp SBCL #8 1.44 15,664 791 5.71 99% 99% 99% 99%
3.6 Free Pascal #3 1.44 1,908 650 5.72 99% 99% 99% 99%
3.6 Free Pascal #2 1.45 1,796 542 5.72 99% 99% 99% 99%
3.7 Chapel 1.47 5,184 310 5.85 100% 99% 99% 99%
3.7 Haskell GHC #4 1.47 3,964 987 5.71 97% 97% 97% 97%
3.7 Ada 2012 GNAT #3 1.47 4,252 1717 5.80 97% 99% 99% 99%
3.7 Dart #6 1.48 25,380 1196 5.72 97% 97% 97% 95%
3.8 C# .NET #3 1.53 31,044 878 5.80 95% 95% 94% 95%
3.9 C++ g++ #8 1.54 1,192 1278 6.16 100% 100% 100% 100%
3.9 F# .NET #2 1.55 31,916 853 5.83 92% 98% 93% 93%
3.9 F# .NET #4 1.55 32,684 732 5.91 92% 96% 95% 96%
4.0 Java  #3 1.58 39,408 756 5.97 94% 94% 96% 94%
4.1 Node js #6 1.64 67,912 999 6.11 92% 93% 96% 92%
4.6 Julia #2 1.85 207,776 370 5.50 67% 99% 66% 66%
5.9 Java #2 2.33 38,300 950 9.06 97% 97% 97% 98%
6.7 Intel Fortran #2 2.66 1,924 513 2.67 0% 0% 0% 100%
8.3 Dart #2 3.29 38,496 1168 12.61 96% 95% 95% 96%
9.6 Racket #3 3.80 66,688 627 14.75 97% 99% 96% 96%
13 Go 5.32 1,980 411 5.35 100% 0% 0% 1%
13 Lisp SBCL #6 5.32 16,900 505 5.82 5% 5% 0% 100%
13 Swift 5.34 12,492 438 5.37 0% 0% 0% 100%
13 Dart 5.34 10,476 461 5.35 0% 0% 0% 100%
13 OCaml #2 5.36 3,448 377 5.36 0% 0% 0% 100%
14 Ada 2012 GNAT 5.38 3,612 716 5.39 100% 0% 0% 0%
14 Node js #7 5.38 34,432 414 5.41 0% 0% 100% 0%
14 C++ g++ 5.38 3,256 452 5.44 0% 0% 100% 1%
14 C gcc 5.40 1,028 383 5.65 0% 0% 100% 4%
14 Node js 5.46 34,508 319 5.49 100% 0% 0% 0%
14 Lisp SBCL 5.71 20,776 631 5.76 0% 0% 0% 100%
15 Haskell GHC #2 6.08 6,028 403 6.08 0% 0% 0% 100%
19 PHP 7.51 35,364 1152 29.55 99% 98% 98% 98%
20 Java 8.02 38,696 514 8.09 100% 0% 0% 1%
29 Erlang #2 11.49 47,708 747 45.25 98% 98% 98% 99%
30 Free Pascal 11.77 8 423 11.97 0% 100% 1% 1%
38 Racket #2 15.04 66,556 532 15.08 100% 0% 0% 0%
47 PHP #3 18.77 37,668 1210 73.74 98% 98% 98% 98%
52 VW Smalltalk #2 20.54 248,124 1047 62.47 72% 73% 75% 84%
62 Perl #4 24.69 12,188 555 96.59 97% 99% 98% 97%
74 Racket 29.59 68,252 446 29.74 0% 0% 100% 0%
125 VW Smalltalk 49.55 55,032 642 49.71 100% 0% 0% 0%
157 Erlang 62.52 45,988 507 63.57 0% 100% 0% 1%
170 PHP #2 67.74 13,172 397 72.33 3% 100% 1% 3%
200 Lua 79.73 2,780 329 79.91 0% 0% 100% 0%
243 Perl #5 96.64 7,864 340 98.95 100% 0% 1% 1%
255 Perl 101.53 7,832 333 104.34 1% 1% 100% 1%
297 Ruby #4 118.16 24,764 326 120.08 0% 1% 100% 0%
304 Python 3 #8 120.99 13,424 407 7 min 99% 99% 99% 99%
314 Python 3 #7 124.94 13,436 417 8 min 99% 99% 99% 99%
326 Perl #3 129.67 17,964 850 8 min 98% 98% 98% 98%
406 Ruby 161.58 24,272 292 165.49 100% 0% 0% 2%
458 Ruby #5 182.14 26,228 758 12 min 99% 99% 99% 99%
  Perl #2 7 min 6,964 343 7 min 100% 1% 1% 1%
  Python 3 #6 7 min 9,672 328 7 min 100% 0% 0% 0%
  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%