The Computer Language
Benchmarks Game

spectral-norm

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Fortran Intel #3 1.99 4,928 638 7.90 100% 99% 100% 100%
1.0 C++ g++ #6 1.99 1,880 1044 7.89 100% 99% 99% 99%
1.0 C gcc #4 1.99 1,824 1139 7.88 99% 99% 99% 100%
1.0 C++ g++ #8 2.00 1,880 1278 7.92 99% 100% 100% 100%
1.0 C gcc #5 2.00 1,872 569 7.88 99% 99% 98% 100%
1.0 Ada 2005 GNAT #4 2.02 4,244 2762 7.88 98% 99% 98% 98%
1.0 C++ g++ #5 2.02 2,544 1044 7.97 99% 99% 99% 99%
1.2 Rust #4 2.44 20,048 817 9.60 98% 99% 98% 99%
1.3 Rust #3 2.52 13,960 1050 9.24 92% 90% 94% 92%
2.0 Go #4 3.96 2,148 548 15.71 100% 99% 99% 99%
2.0 C gcc #3 3.96 1,820 463 15.74 99% 100% 100% 99%
2.0 Swift #3 3.97 11,760 601 15.82 100% 100% 100% 100%
2.0 Pascal Free Pascal #2 3.99 1,896 542 15.82 99% 100% 99% 100%
2.0 Chapel 4.00 51,084 310 15.82 100% 99% 99% 99%
2.0 Go #2 4.01 1,372 668 15.72 98% 98% 99% 98%
2.0 Ada 2005 GNAT #3 4.03 4,240 1702 15.82 98% 98% 99% 99%
2.0 Haskell GHC #4 4.05 7,800 987 15.70 100% 94% 97% 97%
2.1 C# .NET Core #3 4.08 42,220 878 15.82 98% 97% 98% 98%
2.1 Rust #2 4.10 13,976 1107 15.73 96% 96% 95% 97%
2.1 Rust 4.15 13,944 1251 15.74 95% 96% 94% 95%
2.2 Java  #2 4.29 29,884 950 16.56 96% 97% 99% 95%
2.2 F# .NET Core #2 4.34 46,352 853 16.65 96% 96% 99% 95%
2.2 OCaml #3 4.36 5,072 907 15.48 92% 91% 93% 91%
2.2 Lisp SBCL #3 4.40 34,396 883 15.92 91% 90% 92% 91%
2.3 Lisp SBCL #2 4.47 34,392 906 15.96 89% 90% 90% 90%
2.3 F# .NET Core #3 4.56 46,648 721 17.48 95% 96% 98% 95%
2.7 Racket #3 5.34 28,644 627 20.56 97% 96% 97% 97%
4.0 Fortran Intel #2 7.85 2,896 513 7.84 0% 0% 100% 1%
7.9 C gcc 15.69 1,048 383 15.69 100% 0% 1% 3%
7.9 Go 15.70 2,168 411 15.69 1% 1% 100% 0%
7.9 OCaml #2 15.70 5,300 377 15.69 1% 1% 100% 0%
7.9 Ada 2005 GNAT 15.70 1,932 710 15.69 1% 1% 63% 38%
7.9 Node.js #2 15.78 33,996 368 15.77 1% 0% 100% 1%
7.9 Node.js 15.78 31,356 351 15.77 0% 0% 100% 1%
8.0 C# .NET Core 15.82 38,412 459 15.81 1% 1% 100% 1%
8.0 Node.js #3 15.82 31,412 413 15.81 1% 0% 100% 1%
8.0 Node.js #5 15.82 31,332 425 15.82 1% 0% 100% 1%
8.0 Dart 15.92 51,380 457 16.04 1% 100% 1% 1%
8.0 Pascal Free Pascal 15.98 8 423 15.97 1% 100% 0% 1%
8.2 Swift 16.18 16,888 438 16.17 100% 1% 0% 0%
8.2 C++ g++ 16.31 3,192 452 16.30 1% 1% 0% 100%
8.5 Dart #5 16.97 52,396 486 17.01 6% 93% 1% 1%
8.6 Java 16.99 30,304 514 17.07 1% 1% 100% 1%
9.1 Erlang HiPE #2 18.00 35,760 747 70.43 98% 98% 98% 98%
9.2 Lisp SBCL 18.27 26,388 625 18.26 1% 0% 100% 0%
9.8 TypeScript 19.49 30,540 383 19.48 100% 1% 0% 0%
10 TypeScript #3 20.67 29,836 394 20.66 1% 1% 100% 0%
16 Hack #3 31.46 115,488 1195 122.93 99% 98% 97% 98%
16 Smalltalk VW #2 32.22 244,048 1054 82.07 84% 83% 84% 86%
17 Haskell GHC #2 34.60 10,632 403 97.20 64% 64% 55% 100%
19 Racket #2 37.74 27,940 532 37.74 1% 100% 1% 0%
19 PHP 37.94 19,420 1135 150.67 99% 99% 100% 99%
19 Erlang #2 38.56 28,696 747 149.48 96% 97% 98% 97%
20 Racket 40.33 26,980 446 40.33 1% 1% 0% 100%
21 Perl #4 41.10 10,800 551 156.09 98% 94% 94% 94%
30 PHP #3 59.54 19,484 1193 236.80 99% 99% 100% 100%
34 TypeScript #2 68.06 36,640 385 68.00 100% 1% 0% 0%
46 Smalltalk VW 91.12 56,232 669 91.10 1% 1% 0% 100%
56 Erlang HiPE 111.41 40,912 507 111.42 1% 100% 1% 1%
70 Hack #2 139.83 114,696 398 139.78 100% 1% 1% 1%
71 Ruby #5 141.49 50,156 835 9 min 96% 97% 96% 97%
80 Perl #5 158.63 6,516 340 158.57 97% 4% 1% 1%
91 Lua 180.25 2,628 329 180.20 100% 1% 1% 0%
95 Python 3 #5 188.83 54,524 437 12 min 99% 100% 100% 99%
97 Erlang 191.91 30,416 507 191.89 0% 1% 1% 100%
99 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%
127 Ruby JRuby #4 251.17 685,284 326 258.56 20% 29% 33% 23%
129 PHP #2 255.95 8,796 397 255.88 100% 1% 1% 1%
144 Ruby JRuby 286.53 688,588 292 294.50 42% 15% 14% 34%
153 Ruby JRuby #2 5 min 705,992 776 19 min 98% 98% 98% 98%
154 Ruby #4 5 min 10,884 326 5 min 6% 0% 1% 94%
185 Ruby 6 min 10,036 292 6 min 0% 39% 1% 62%
336 Python 3 #6 11 min 9,016 328 11 min 0% 1% 100% 0%
403 Perl #2 13 min 5,888 343 13 min 90% 10% 1% 1%