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 #4 1.98 1,784 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,796 569 7.89 99% 99% 99% 100%
1.0 Ada 2005 GNAT #4 2.00 4,236 2762 7.87 99% 99% 99% 99%
1.0 C++ g++ #6 2.01 1,772 1044 8.00 100% 100% 100% 100%
1.0 C++ g++ #5 2.01 1,820 1044 8.00 100% 100% 100% 100%
1.1 C++ g++ #8 2.10 3,784 1278 8.35 100% 100% 100% 99%
1.8 Rust 3.50 8,396 1251 13.58 97% 97% 97% 98%
2.0 C gcc #3 3.95 1,792 463 15.74 100% 100% 99% 99%
2.0 Go #3 3.95 2,892 536 15.70 100% 99% 99% 99%
2.0 Rust #2 3.97 6,488 1107 15.71 99% 100% 99% 99%
2.0 Ada 2005 GNAT #3 3.97 4,192 1702 15.70 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.10 2,112 668 15.72 96% 95% 96% 97%
2.1 Lisp SBCL #3 4.16 29,640 883 15.91 95% 96% 96% 96%
2.1 Lisp SBCL #2 4.17 30,368 906 15.92 96% 96% 95% 96%
2.2 Java  #2 4.28 32,696 950 16.53 96% 96% 96% 99%
2.2 OCaml #3 4.31 3,496 938 16.02 93% 94% 93% 92%
2.2 Scala #5 4.41 38,900 693 16.56 94% 93% 92% 97%
2.7 Clojure #8 5.37 72,172 918 18.56 93% 86% 86% 82%
2.8 Clojure #7 5.51 69,264 762 18.66 82% 88% 83% 88%
2.8 Clojure #6 5.53 70,372 808 18.65 86% 84% 82% 87%
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.0 Racket #3 6.05 34,492 627 23.08 97% 95% 96% 95%
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.8 Hack #3 15.57 117,644 1195 54.82 86% 93% 87% 88%
7.9 OCaml #2 15.69 3,276 377 15.69 1% 1% 100% 0%
7.9 C gcc 15.69 1,076 383 15.69 100% 1% 0% 1%
7.9 Go 15.70 2,904 411 15.70 100% 0% 1% 1%
7.9 Ada 2005 GNAT 15.70 1,936 710 15.69 2% 1% 100% 3%
7.9 Swift #2 15.70 6,476 625 15.70 1% 100% 1% 1%
7.9 JavaScript V8 #2 15.71 13,168 361 15.70 100% 1% 0% 1%
7.9 JavaScript V8 #5 15.71 13,224 418 15.71 1% 0% 0% 100%
7.9 JavaScript V8 #3 15.71 13,240 405 15.70 1% 1% 0% 100%
7.9 JavaScript V8 15.72 13,308 344 15.71 1% 100% 1% 1%
8.0 TypeScript Node.js #3 15.83 24,276 394 15.82 0% 1% 1% 100%
8.0 Dart #5 15.89 27,440 486 16.03 0% 1% 1% 99%
8.0 C++ g++ 15.92 1,728 452 15.92 0% 1% 100% 0%
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.1 TypeScript Node.js 16.10 24,312 383 16.10 100% 0% 0% 1%
8.2 Dart 16.26 27,432 457 16.40 1% 1% 100% 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.13 21,016 625 22.12 0% 100% 0% 1%
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%
19 Racket #2 37.90 34,224 532 37.90 100% 0% 1% 1%
20 Racket 39.85 22,740 446 39.85 1% 100% 1% 0%
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%
26 Hack #2 51.08 117,380 398 51.07 1% 1% 0% 100%
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%
86 TypeScript Node.js #2 170.02 29,624 385 169.94 1% 36% 61% 3%
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%
107 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%
501 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