The Computer Language
Benchmarks Game

spectral-norm

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 C gcc #4 1.98 1,776 1139 7.87 99% 99% 100% 99%
1.0 Fortran Intel #3 1.98 3,392 638 7.90 99% 100% 99% 100%
1.0 Fortran Intel 1.99 3,716 568 7.91 99% 100% 100% 99%
1.0 C gcc #5 1.99 1,800 569 7.86 99% 100% 99% 99%
1.0 Ada 2005 GNAT #4 2.01 4,248 2762 7.88 98% 99% 98% 99%
1.0 C++ g++ #5 2.01 3,832 1044 8.00 100% 100% 100% 100%
1.0 C++ g++ #6 2.01 1,792 1044 8.00 100% 100% 100% 100%
1.1 C++ g++ #8 2.13 1,844 1278 8.44 100% 99% 100% 99%
2.0 C gcc #3 3.95 1,848 463 15.73 100% 100% 100% 100%
2.0 Go #4 3.96 2,412 548 15.73 99% 99% 100% 99%
2.0 Swift #3 3.97 14,592 601 15.80 99% 100% 100% 99%
2.0 Ada 2005 GNAT #3 3.99 4,172 1702 15.73 99% 99% 99% 99%
2.0 Rust #2 4.00 14,092 1107 15.49 99% 99% 98% 99%
2.0 Chapel 4.00 33,332 310 15.85 100% 99% 99% 99%
2.0 C# .NET Core #3 4.05 40,680 878 15.80 97% 98% 97% 99%
2.0 Haskell GHC #4 4.06 9,848 987 15.70 97% 97% 99% 95%
2.1 Lisp SBCL #3 4.08 29,932 883 15.70 98% 97% 98% 98%
2.1 Lisp SBCL #2 4.09 29,924 906 15.70 97% 97% 98% 98%
2.1 F# .NET Core #2 4.12 43,192 853 15.91 99% 96% 96% 96%
2.1 Rust 4.14 14,072 1251 16.10 99% 99% 99% 99%
2.1 Java  #2 4.26 32,244 950 16.41 96% 98% 95% 97%
2.2 Go #2 4.42 1,372 668 17.32 98% 98% 98% 99%
2.3 OCaml #3 4.47 4,680 907 15.53 92% 91% 89% 88%
2.3 F# .NET Core #3 4.52 45,228 721 17.46 96% 96% 96% 99%
2.3 Scala #5 4.66 55,488 693 16.79 87% 89% 88% 98%
2.6 Clojure #8 5.23 63,380 918 18.38 85% 87% 86% 95%
2.8 Clojure #6 5.51 65,624 808 18.65 95% 82% 84% 79%
2.8 Clojure #7 5.52 68,748 762 18.67 93% 83% 84% 80%
2.9 C# Mono LLVM #2 5.77 39,364 1063 22.07 96% 96% 95% 97%
3.1 C# Mono LLVM #3 6.14 43,656 878 22.14 90% 91% 90% 91%
4.0 Fortran Intel #2 7.85 776 513 7.85 0% 1% 100% 0%
7.9 C gcc 15.69 1,092 383 15.68 0% 100% 1% 0%
7.9 OCaml #2 15.69 5,056 377 15.69 1% 100% 0% 1%
7.9 Ada 2005 GNAT 15.70 2,028 710 15.69 0% 0% 1% 100%
7.9 Go 15.71 2,180 411 15.71 1% 100% 0% 0%
8.0 Node.js #5 15.78 27,160 425 15.77 1% 1% 0% 100%
8.0 Node.js #3 15.78 27,160 413 15.77 1% 1% 0% 100%
8.0 Node.js 15.78 27,972 351 15.78 0% 100% 1% 1%
8.0 C# .NET Core 15.81 36,796 459 15.80 100% 1% 1% 0%
8.0 Dart 15.89 48,720 457 15.97 1% 1% 1% 99%
8.0 Dart #5 15.89 50,180 486 16.01 99% 1% 2% 1%
8.0 C++ g++ 15.92 1,728 452 15.92 1% 100% 1% 1%
8.1 Pascal Free Pascal 15.98 8 423 15.97 0% 1% 100% 0%
8.1 Scala 16.16 42,256 404 16.49 1% 100% 1% 2%
8.2 Swift 16.19 15,856 438 16.18 1% 1% 100% 1%
8.5 Java 16.84 38,076 514 16.91 0% 1% 1% 100%
9.1 Erlang HiPE #2 18.00 35,760 747 70.43 98% 98% 98% 98%
9.8 Node.js #2 19.50 26,896 368 19.50 100% 1% 0% 0%
9.8 TypeScript 19.51 28,012 383 19.50 0% 100% 1% 2%
9.8 Lisp SBCL 19.53 22,252 625 19.52 0% 0% 100% 1%
10 TypeScript #3 20.66 25,772 394 20.65 1% 1% 100% 0%
11 Haskell GHC #2 21.17 10,236 403 42.38 38% 37% 27% 100%
11 C# Mono LLVM 21.95 37,400 459 21.94 0% 100% 1% 1%
14 Racket #3 27.29 30,716 627 54.99 58% 49% 41% 55%
16 Hack #3 31.74 114,396 1195 123.79 97% 98% 98% 98%
19 Erlang #2 38.56 28,696 747 149.48 96% 97% 98% 97%
21 Perl #4 41.10 10,800 551 156.09 98% 94% 94% 94%
21 PHP 41.23 17,104 1135 163.58 99% 99% 100% 99%
27 Racket #2 53.99 21,640 532 53.97 3% 10% 91% 1%
30 Racket 60.11 19,948 446 60.09 100% 1% 1% 0%
30 PHP #3 60.15 17,048 1193 238.25 99% 99% 99% 99%
46 Smalltalk VW #2 91.00 53,788 438 90.97 1% 1% 0% 100%
56 Erlang HiPE 111.41 40,912 507 111.42 1% 100% 1% 1%
60 Hack #2 119.25 113,668 398 119.20 0% 1% 100% 0%
68 Ruby #5 134.21 54,680 835 8 min 97% 97% 96% 96%
80 Perl #5 158.63 6,516 340 158.57 97% 4% 1% 1%
90 TypeScript #2 178.63 33,452 385 178.52 69% 0% 1% 31%
95 Lua 188.81 2,444 329 188.76 1% 0% 0% 100%
97 Erlang 191.91 30,416 507 191.89 0% 1% 1% 100%
100 Perl 197.49 6,548 333 197.42 0% 1% 100% 1%
102 Perl #3 202.93 17,972 846 13 min 99% 99% 99% 99%
120 PHP #2 237.75 7,900 397 237.68 1% 99% 1% 1%
126 Ruby JRuby #4 249.84 687,468 326 257.70 35% 32% 16% 23%
126 Python 3 #5 250.12 58,892 437 15 min 94% 95% 92% 93%
141 Ruby JRuby #2 279.06 704,264 776 18 min 98% 98% 98% 98%
148 Ruby JRuby 293.05 687,448 292 5 min 19% 34% 36% 16%
186 Ruby 6 min 9,832 292 6 min 0% 3% 97% 0%
194 Ruby #4 6 min 11,252 326 6 min 0% 7% 0% 93%
403 Perl #2 13 min 5,888 343 13 min 90% 10% 1% 1%
419 Python 3 #6 13 min 9,224 328 13 min 12% 61% 5% 23%
C# .NET Core #2 Failed
Scala #4 Failed
Scala #3 Failed
Scala #2 Failed