The Computer Language
Benchmarks Game

spectral-norm

program source code, command-line and measurements

× source code 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%
1.8 Rust 3.51 36,716 1251 13.48 96% 97% 97% 96%
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 Haskell GHC #4 4.05 11,916 987 15.70 95% 97% 99% 98%
2.1 Go #2 4.07 1,948 668 15.72 97% 98% 97% 96%
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 Rust #2 4.17 36,824 1107 16.07 97% 97% 95% 97%
2.2 Java  #2 4.28 32,696 950 16.53 96% 96% 96% 99%
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.37 8,580 624 16.08 2% 99% 100% 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 #3 5.61 51,728 720 18.63 81% 84% 80% 88%
2.9 C# Mono #2 5.73 42,276 1063 22.04 96% 96% 98% 96%
3.2 F# Mono #2 6.40 52,544 852 22.67 86% 88% 92% 89%
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 Ada 2005 GNAT 15.70 2,028 710 15.69 0% 0% 1% 100%
7.9 Go 15.70 2,944 411 15.70 1% 100% 0% 0%
7.9 Swift #2 15.70 6,408 625 15.70 0% 1% 100% 0%
7.9 JavaScript V8 #2 15.71 13,168 361 15.70 100% 1% 0% 1%
7.9 JavaScript V8 #3 15.71 13,240 405 15.70 1% 1% 0% 100%
7.9 JavaScript V8 #5 15.71 13,224 418 15.71 1% 0% 0% 100%
7.9 JavaScript V8 15.72 13,308 344 15.71 1% 100% 1% 1%
8.0 TypeScript #3 15.77 26,184 394 15.76 1% 100% 0% 1%
8.0 Node.js #3 15.77 25,252 413 15.76 1% 100% 0% 1%
8.0 Node.js #2 15.77 25,204 368 15.76 0% 0% 1% 100%
8.0 TypeScript 15.77 26,520 383 15.77 100% 3% 1% 1%
8.0 Node.js #5 15.77 25,208 425 15.77 0% 1% 100% 0%
8.0 Node.js 15.78 26,568 351 15.77 0% 0% 1% 100%
8.0 Dart #5 15.87 27,136 486 15.98 99% 1% 1% 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.3 Dart 16.39 27,376 457 16.50 1% 100% 1% 1%
8.5 Java  16.86 41,036 514 16.93 1% 96% 4% 1%
9.3 Erlang HiPE #2 18.39 28,684 747 71.12 96% 97% 97% 97%
11 C# Mono 21.93 39,796 459 21.92 100% 1% 1% 0%
11 Lisp SBCL 22.69 21,812 625 22.68 1% 0% 100% 1%
13 Racket #3 25.72 45,836 627 51.75 78% 81% 67% 77%
18 Erlang #2 36.60 22,676 747 144.21 99% 98% 99% 98%
19 Haskell GHC #2 37.60 12,388 403 110.81 66% 63% 100% 66%
22 PHP 44.45 21,584 1135 177.28 100% 100% 100% 100%
25 Perl #4 49.43 9,540 551 190.77 96% 96% 99% 96%
27 Racket #2 54.19 30,936 532 54.16 0% 0% 1% 100%
28 Hack #2 54.91 131,080 398 54.88 100% 0% 0% 0%
30 Racket 60.22 23,336 446 60.19 83% 17% 1% 0%
33 PHP #3 65.63 21,680 1193 260.32 99% 99% 99% 99%
46 Smalltalk VW #2 91.07 55,628 438 91.03 1% 0% 1% 100%
56 Erlang HiPE 111.22 36,560 507 111.20 0% 1% 99% 1%
68 Ruby #5 134.21 54,680 835 8 min 97% 97% 96% 96%
90 TypeScript #2 177.88 31,800 385 177.78 100% 1% 1% 0%
95 Lua 188.81 2,444 329 188.76 1% 0% 0% 100%
101 Erlang 199.77 27,152 507 199.68 29% 5% 25% 43%
108 Perl 213.22 5,536 333 213.16 0% 1% 1% 100%
117 Perl #5 232.06 7,340 340 232.00 1% 0% 0% 100%
123 Ruby JRuby #4 243.93 673,640 326 250.63 21% 24% 31% 28%
126 Python 3 #5 250.12 58,892 437 15 min 94% 95% 92% 93%
128 Ruby JRuby #2 253.95 675,568 776 16 min 98% 98% 98% 98%
129 Perl #3 255.15 10,492 846 16 min 100% 100% 100% 100%
133 Ruby JRuby 263.40 673,976 292 270.52 27% 27% 20% 31%
133 PHP #2 263.43 7,812 397 263.36 1% 100% 0% 0%
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%
419 Python 3 #6 13 min 9,224 328 13 min 12% 61% 5% 23%
502 Perl #2 16 min 4,096 343 16 min 32% 37% 0% 32%
Scala #4 Failed
Scala #3 Failed
Scala #2 Failed
Swift Bad Output