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 #5 1.98 1,868 569 7.88 100% 100% 99% 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 #4 1.99 1,784 1139 7.88 99% 99% 99% 100%
1.0 C++ g++ #6 2.01 1,828 1044 7.96 100% 100% 100% 100%
1.0 C++ g++ #5 2.01 1,804 1044 7.98 100% 100% 100% 100%
1.0 Ada 2005 GNAT #4 2.01 4,248 2762 7.88 98% 99% 98% 99%
1.1 C++ g++ #8 2.12 1,828 1278 8.40 100% 99% 100% 99%
2.0 Go #3 3.95 2,724 536 15.70 99% 99% 99% 100%
2.0 C gcc #3 3.95 1,784 463 15.74 100% 99% 100% 99%
2.0 Ada 2005 GNAT #3 3.99 4,172 1702 15.73 99% 99% 99% 99%
2.0 Rust 4.00 14,360 1251 15.49 98% 99% 98% 99%
2.0 Chapel 4.00 33,108 310 15.84 100% 99% 99% 99%
2.0 Haskell GHC #4 4.06 9,848 987 15.70 97% 97% 99% 95%
2.0 C# .NET Core #3 4.07 30,624 878 15.82 98% 97% 98% 97%
2.1 Go #2 4.07 1,948 668 15.72 97% 98% 97% 96%
2.1 Rust #2 4.09 14,300 1107 15.81 99% 98% 99% 98%
2.1 Lisp SBCL #2 4.12 29,180 906 15.78 97% 97% 97% 97%
2.1 Lisp SBCL #3 4.12 29,884 883 15.79 97% 97% 97% 97%
2.1 Java  #2 4.26 32,244 950 16.41 96% 98% 95% 97%
2.2 Scala #5 4.41 38,900 693 16.56 94% 93% 92% 97%
2.3 OCaml #3 4.47 4,680 907 15.53 92% 91% 89% 88%
2.6 Clojure #8 5.23 63,380 918 18.38 85% 87% 86% 95%
2.7 Swift #3 5.31 8,740 624 15.90 96% 8% 97% 100%
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.8 F# Mono LLVM #3 5.56 48,560 720 18.66 84% 89% 80% 84%
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%
3.3 F# Mono LLVM #2 6.53 45,836 852 22.72 86% 86% 92% 85%
4.0 Fortran Intel #2 7.85 776 513 7.85 0% 1% 100% 0%
7.1 Hack #3 14.09 132,300 1195 54.15 96% 96% 95% 98%
7.9 C gcc 15.69 1,104 383 15.68 1% 0% 100% 0%
7.9 OCaml #2 15.69 5,056 377 15.69 1% 100% 0% 1%
7.9 Go 15.70 2,944 411 15.70 1% 100% 0% 0%
7.9 Ada 2005 GNAT 15.70 2,028 710 15.69 0% 0% 1% 100%
7.9 Swift #2 15.70 6,460 625 15.69 100% 1% 1% 1%
8.0 TypeScript #3 15.77 25,848 394 15.76 1% 100% 0% 1%
8.0 TypeScript 15.77 26,304 383 15.76 1% 0% 100% 1%
8.0 Node.js #5 15.77 25,312 425 15.76 2% 0% 100% 0%
8.0 Node.js #2 15.77 25,312 368 15.76 1% 1% 100% 0%
8.0 Node.js #3 15.77 25,300 413 15.76 1% 0% 100% 1%
8.0 Node.js 15.77 26,264 351 15.77 1% 0% 100% 1%
8.0 C# .NET Core 15.82 28,576 459 15.82 1% 1% 100% 1%
8.0 Dart 15.85 29,072 457 15.93 1% 0% 0% 99%
8.0 Dart #5 15.86 29,160 486 15.97 1% 1% 99% 1%
8.0 C++ g++ 15.92 1,684 452 15.92 1% 0% 100% 1%
8.0 Scala 15.96 33,840 404 16.03 3% 20% 1% 100%
8.1 Pascal Free Pascal 15.98 8 423 15.97 0% 1% 100% 0%
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%
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%
11 Lisp SBCL 22.69 21,812 625 22.68 1% 0% 100% 1%
14 Racket #3 27.58 24,092 627 55.13 58% 60% 48% 43%
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.83 20,296 532 53.82 100% 0% 1% 1%
28 Hack #2 54.91 131,080 398 54.88 100% 0% 0% 0%
30 Racket 59.68 26,164 446 59.67 1% 3% 0% 98%
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%
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%
92 TypeScript #2 182.98 31,624 385 182.89 100% 2% 1% 0%
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
Swift Bad Output