The Computer Language
Benchmarks Game

spectral-norm

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 Fortran Intel #3 1.98 3,392 638 7.90 99% 100% 99% 100%
1.0 C gcc #4 1.98 1,776 1139 7.87 99% 99% 100% 99%
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++ #6 2.01 1,792 1044 8.00 100% 100% 100% 100%
1.0 C++ g++ #5 2.01 3,832 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 Ada 2005 GNAT #3 3.99 4,172 1702 15.73 99% 99% 99% 99%
2.0 Chapel 4.00 33,108 310 15.84 100% 99% 99% 99%
2.0 Rust 4.01 14,240 1251 15.48 99% 98% 98% 98%
2.0 C# .NET Core #3 4.05 44,796 878 15.81 97% 99% 98% 98%
2.0 Haskell GHC #4 4.06 9,848 987 15.70 97% 97% 99% 95%
2.1 Rust #2 4.11 14,236 1107 15.82 98% 98% 97% 99%
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 F# .NET Core #2 4.12 43,192 853 15.91 99% 96% 96% 96%
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.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.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 Swift #2 15.70 7,136 633 15.69 0% 100% 0% 1%
7.9 Swift 15.71 15,696 438 15.70 0% 100% 1% 1%
7.9 Go 15.71 2,180 411 15.71 1% 100% 0% 0%
8.0 Node.js #3 15.78 27,248 413 15.77 0% 1% 1% 100%
8.0 Node.js #5 15.78 27,356 425 15.77 1% 1% 100% 1%
8.0 Node.js 15.78 28,140 351 15.77 1% 0% 100% 1%
8.0 C# .NET Core 15.80 34,936 459 15.80 1% 100% 0% 1%
8.0 Dart #5 15.89 31,540 486 16.01 99% 1% 1% 1%
8.0 Dart 15.89 31,300 457 16.02 1% 100% 1% 1%
8.0 C++ g++ 15.92 1,728 452 15.92 1% 100% 1% 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%
9.8 TypeScript 19.42 28,060 383 19.41 1% 0% 100% 1%
9.8 Node.js #2 19.54 27,096 368 19.53 1% 100% 1% 1%
10 TypeScript #3 19.67 25,812 394 19.66 100% 1% 1% 1%
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.29 30,716 627 54.99 58% 49% 41% 55%
16 Hack #3 32.70 311,080 1195 123.86 96% 96% 96% 97%
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.51 310,504 398 119.47 1% 0% 100% 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%
87 TypeScript #2 173.56 33,528 385 173.46 100% 1% 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 #3 Make Error