The Computer Language
Benchmarks Game

spectral-norm

We accept something intermediate between chaos and rigidity — enough flex & slop & play to allow for Haskell programs that are not just mechanically translated from Fortran; enough similarity in the basic workloads & tested results.

Programming language advocates and curious programmers have contributed new programs and introduced newer techniques. 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. Always look at the source code.

× source secs mem gz busy cpu load
1.0 Rust #6 1.97 2,196 1126 7.87 100% 100% 99% 99%
1.0 C gcc #5 1.98 1,224 569 7.88 99% 99% 99% 100%
1.0 Fortran Intel #3 1.98 2,948 638 7.92 100% 100% 100% 100%
1.0 C gcc #4 1.98 2,416 1139 7.90 99% 100% 99% 100%
1.0 C++ g++ #6 1.98 2,268 1044 7.89 100% 99% 99% 99%
1.0 Rust #5 1.99 2,184 1055 7.94 99% 99% 100% 100%
1.0 C++ g++ #5 2.00 3,284 1044 7.99 100% 100% 100% 100%
1.0 Ada 2012 GNAT #4 2.00 4,392 2770 7.89 99% 99% 99% 99%
1.0 Rust #2 2.06 2,340 1110 7.96 97% 97% 97% 96%
1.0 Rust 2.07 2,344 1254 7.95 97% 97% 97% 96%
1.1 C# .NET Core #5 2.14 36,360 764 8.11 93% 98% 95% 93%
1.1 C# aot #5 2.14 36,480 764 8.13 94% 93% 93% 99%
1.2 Rust #4 2.30 2,184 817 9.18 100% 100% 100% 100%
1.2 Rust #3 2.31 2,212 1053 8.88 96% 96% 96% 97%
1.7 C++ g++ #8 3.39 2,444 1278 13.53 100% 100% 100% 100%
2.0 C gcc #3 3.94 1,240 463 15.74 100% 100% 100% 100%
2.0 Go #4 3.94 2,740 548 15.74 100% 100% 100% 100%
2.0 Swift #3 3.96 7,996 601 15.79 100% 99% 100% 100%
2.0 Free Pascal #2 3.98 1,912 542 15.84 99% 99% 99% 99%
2.0 Chapel 3.99 5,380 310 15.83 99% 99% 99% 99%
2.0 Lisp SBCL #2 4.00 16,424 915 15.77 99% 99% 99% 99%
2.0 Lisp SBCL #3 4.00 19,676 890 15.77 99% 99% 99% 99%
2.0 Free Pascal #3 4.00 1,892 650 15.92 100% 99% 100% 100%
2.0 Lisp SBCL #8 4.01 16,460 791 15.77 98% 98% 98% 99%
2.0 Lisp SBCL #7 4.01 19,708 762 15.78 99% 99% 98% 98%
2.0 Ada 2012 GNAT #3 4.02 4,364 1717 15.82 100% 98% 98% 98%
2.1 C# aot #3 4.08 32,088 878 15.86 97% 96% 98% 98%
2.1 Go #2 4.09 1,992 668 15.78 96% 96% 98% 96%
2.1 C# aot #4 4.09 32,440 1102 15.89 96% 97% 97% 97%
2.1 Haskell GHC #4 4.10 4,012 987 15.83 97% 97% 99% 95%
2.1 F# .NET Core #2 4.11 34,960 853 15.91 96% 99% 97% 96%
2.1 C# .NET Core #3 4.13 32,032 878 15.92 95% 98% 97% 95%
2.1 C# aot #2 4.14 32,492 930 16.15 98% 98% 97% 97%
2.1 C# .NET Core #2 4.15 32,484 930 16.11 97% 97% 97% 98%
2.1 C# .NET Core #4 4.15 32,496 1102 15.94 97% 96% 96% 95%
2.1 F# .NET Core #5 4.18 37,632 730 16.13 96% 96% 96% 98%
2.1 F# .NET Core #4 4.18 35,956 732 16.12 95% 98% 96% 96%
2.1 Java  #2 4.19 36,680 950 16.31 98% 97% 97% 98%
2.1 F# .NET Core #6 4.21 36,048 787 16.24 95% 96% 96% 98%
2.2 Node js #6 4.27 54,968 999 16.42 96% 97% 95% 96%
2.2 F# .NET Core #7 4.27 37,556 592 16.58 96% 97% 98% 96%
2.3 Java OpenJ9 #2 4.55 54,968 950 17.06 96% 93% 92% 94%
2.4 Julia #2 4.74 171,668 370 17.14 88% 99% 87% 88%
2.4 F# .NET Core #3 4.74 35,248 721 18.39 99% 96% 96% 97%
2.4 Julia 4.81 191,868 401 16.97 99% 85% 85% 84%
2.8 Racket #3 5.44 42,396 627 20.74 94% 95% 98% 94%
4.0 Fortran Intel #2 7.85 3,008 513 7.97 0% 1% 1% 100%
8.0 Go 15.70 2,764 411 15.91 0% 0% 100% 0%
8.0 OCaml #2 15.70 3,744 377 16.33 1% 3% 0% 100%
8.0 Ada 2012 GNAT 15.70 3,700 716 15.88 0% 1% 100% 0%
8.0 Swift 15.70 12,260 438 15.96 0% 1% 100% 0%
8.0 Lisp SBCL #6 15.73 20,828 505 15.91 100% 0% 1% 0%
8.0 Lisp SBCL 15.73 20,852 631 16.01 100% 1% 1% 0%
8.0 Dart exe #5 15.76 13,292 489 15.86 0% 1% 0% 100%
8.0 Haskell GHC #2 15.77 6,032 403 16.07 0% 2% 100% 0%
8.0 Node js #2 15.77 32,188 336 15.92 1% 0% 0% 100%
8.0 Node js #5 15.78 33,284 393 15.92 0% 0% 1% 100%
8.0 Node js #3 15.78 32,892 381 16.16 1% 0% 1% 100%
8.0 Node js 15.78 33,084 319 15.98 1% 0% 100% 0%
8.0 Dart aot 15.80 13,236 462 16.20 100% 0% 1% 1%
8.0 TypeScript 15.81 33,968 388 16.00 1% 0% 0% 100%
8.0 Dart snapshot #5 15.81 80,160 489 16.14 100% 1% 1% 1%
8.0 C# aot 15.84 31,908 459 16.04 0% 1% 100% 0%
8.0 Dart aot #5 15.86 13,244 489 16.08 87% 1% 1% 13%
8.1 Dart snapshot 15.89 80,120 462 16.23 1% 1% 1% 100%
8.1 C# .NET Core 15.91 31,568 459 16.13 0% 1% 100% 0%
8.1 Dart exe 15.91 13,192 462 16.03 0% 0% 100% 0%
8.1 C gcc 15.92 1,088 383 16.07 1% 100% 0% 0%
8.1 Free Pascal 15.98 8 423 16.15 100% 0% 1% 0%
8.1 Dart 16.00 117,976 462 16.47 99% 2% 2% 1%
8.1 C++ g++ 16.05 3,304 452 16.28 1% 100% 0% 0%
8.1 Dart #5 16.05 119,192 489 17.19 99% 2% 5% 1%
8.4 Java 16.58 37,360 514 16.93 100% 1% 1% 0%
8.4 Java OpenJ9 16.60 52,128 514 17.26 61% 1% 3% 40%
10 TypeScript #2 19.85 34,348 388 20.12 0% 1% 100% 0%
11 Erlang HiPE #2 20.84 32,656 747 68.21 85% 84% 79% 79%
17 PHP 33.49 24,336 1152 132.61 99% 99% 99% 99%
17 VW Smalltalk #2 33.72 247,024 1047 111.66 81% 83% 83% 83%
19 Racket #2 37.89 36,764 532 38.29 18% 0% 0% 82%
19 Perl #4 38.15 11,784 555 146.68 95% 97% 95% 97%
20 Racket 40.44 36,172 446 40.92 0% 1% 100% 0%
29 PHP #3 56.28 25,852 1210 223.88 99% 100% 99% 100%
32 Racket CS #3 63.93 85,148 627 237.86 93% 93% 93% 93%
38 Racket CS #2 74.54 84,396 532 75.38 100% 0% 1% 0%
46 VW Smalltalk 91.64 54,988 642 92.41 74% 0% 0% 26%
47 Racket CS 93.59 82,588 446 94.59 1% 54% 46% 0%
51 Pharo Smalltalk 99.74 102,868 674 101.04 0% 1% 100% 0%
57 Erlang HiPE 112.45 28,936 507 113.86 0% 41% 59% 0%
75 Perl #5 147.46 7,400 340 148.88 97% 0% 0% 4%
78 Perl 153.76 7,500 333 155.52 0% 12% 88% 1%
83 JRuby #2 164.42 749,764 776 10 min 97% 97% 98% 96%
86 Python 3 #7 169.87 49,188 417 11 min 100% 99% 99% 99%
94 Perl #3 184.89 18,792 850 12 min 100% 100% 100% 100%
98 Lua 192.80 2,872 329 199.44 15% 85% 1% 2%
114 PHP #2 225.01 8,676 397 227.66 0% 20% 81% 0%
118 Ruby #4 232.89 18,324 326 274.11 16% 92% 7% 2%
127 JRuby #4 250.63 754,812 326 265.22 12% 28% 45% 20%
139 Ruby #5 273.47 20,192 862 17 min 97% 98% 98% 97%
141 Ruby 278.95 17,964 292 5 min 83% 13% 13% 6%
230 JRuby 7 min 752,796 292 7 min 31% 15% 19% 38%
315 Python 3 #6 10 min 9,572 328 10 min 1% 1% 91% 10%
387 Perl #2 12 min 6,820 343 12 min 1% 17% 83% 0%
  Matz's Ruby 39 min 6,080 292 39 min 98% 0% 2% 1%
  Matz's Ruby #4 46 min 6,072 326 46 min 66% 34% 0% 0%
OCaml #3 Make Error
Python 3 #5 Timed Out
Matz's Ruby #5 Failed