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 #2 7.85 2,892 513 7.85 0% 1% 100% 0%
1.0 C gcc #5 1.99 1,800 569 7.86 99% 100% 99% 99%
1.0 C gcc #4 1.98 1,776 1139 7.87 99% 99% 100% 99%
1.0 Ada 2005 GNAT #4 2.01 4,240 2762 7.88 99% 99% 99% 98%
1.0 Fortran Intel #3 1.99 4,876 638 7.91 100% 99% 100% 100%
1.0 C++ g++ #5 2.01 3,832 1044 8.00 100% 100% 100% 100%
1.0 C++ g++ #6 2.01 1,792 1044 8.00 100% 100% 100% 100%
1.1 C++ g++ #8 2.13 1,844 1278 8.44 100% 99% 100% 99%
1.2 Rust #3 2.36 14,036 1050 9.04 99% 99% 99% 99%
2.0 Rust #2 3.96 5,852 1107 15.45 99% 99% 99% 99%
2.0 OCaml #3 4.46 4,792 907 15.50 90% 93% 88% 90%
2.0 C gcc 15.69 1,092 383 15.68 0% 100% 1% 0%
2.0 OCaml #2 15.70 4,784 377 15.69 1% 0% 100% 0%
2.0 Ada 2005 GNAT 15.70 2,016 710 15.69 100% 0% 1% 1%
2.0 Go 15.70 2,176 411 15.70 1% 1% 1% 100%
2.0 Go #4 3.95 2,156 548 15.70 100% 99% 99% 100%
2.0 Go #2 3.99 1,376 668 15.70 98% 98% 99% 99%
2.0 Haskell GHC #4 4.06 9,848 987 15.70 97% 97% 99% 95%
2.0 Ada 2005 GNAT #3 3.98 4,200 1702 15.71 99% 99% 99% 99%
2.0 Lisp SBCL #2 4.09 34,916 906 15.71 97% 98% 97% 98%
2.0 Lisp SBCL #3 4.08 34,916 883 15.72 98% 98% 98% 97%
2.0 C gcc #3 3.95 1,848 463 15.73 100% 100% 100% 100%
2.0 Node.js #3 15.78 28,856 413 15.77 1% 1% 0% 100%
2.0 Node.js #2 15.78 28,848 368 15.77 1% 1% 100% 0%
2.0 Node.js #5 15.77 28,804 425 15.77 1% 0% 1% 100%
2.0 Node.js 15.78 34,208 351 15.77 1% 1% 1% 100%
2.0 Swift #3 3.97 10,696 601 15.79 100% 100% 100% 100%
2.0 C# .NET Core #3 4.05 40,348 878 15.80 97% 97% 98% 99%
2.0 C# .NET Core 15.81 36,640 459 15.80 1% 100% 0% 1%
2.0 Pascal Free Pascal #2 3.99 1,852 542 15.84 99% 99% 99% 99%
2.0 Chapel 4.00 33,332 310 15.85 100% 99% 99% 99%
2.0 C++ g++ 15.92 1,728 452 15.92 1% 100% 1% 1%
2.0 Pascal Free Pascal 15.98 8 423 15.97 1% 0% 0% 100%
2.0 Dart 15.92 49,920 457 16.04 1% 3% 2% 100%
2.0 Rust 4.13 14,072 1251 16.08 99% 99% 100% 100%
2.1 Swift 16.19 15,912 438 16.18 0% 1% 100% 0%
2.1 Scala 16.15 42,696 404 16.48 1% 6% 1% 96%
2.1 Java  #2 4.29 31,428 950 16.56 97% 96% 98% 97%
2.1 Dart #5 16.44 49,912 486 16.58 1% 100% 1% 1%
2.1 Scala #5 4.62 56,680 693 16.70 90% 87% 97% 89%
2.1 F# .NET Core #2 4.34 43,484 853 16.72 96% 96% 98% 97%
2.2 Java 17.00 31,884 514 17.06 1% 100% 1% 0%
2.3 F# .NET Core #3 4.64 43,436 721 17.88 96% 95% 99% 96%
2.3 Lisp SBCL 18.27 27,052 625 18.26 0% 0% 0% 100%
2.3 Clojure #8 5.23 63,380 918 18.38 85% 87% 86% 95%
2.4 Clojure #6 5.51 65,624 808 18.65 95% 82% 84% 79%
2.4 Clojure #7 5.52 68,748 762 18.67 93% 83% 84% 80%
2.5 TypeScript 19.80 29,012 383 19.79 50% 50% 0% 1%
2.6 TypeScript #3 20.70 28,196 394 20.69 1% 0% 0% 100%
5.4 Haskell GHC #2 21.17 10,236 403 42.38 38% 37% 27% 100%
6.9 Racket #2 53.99 21,640 532 53.97 3% 10% 91% 1%
7.0 Racket #3 27.29 30,716 627 54.99 58% 49% 41% 55%
7.7 Racket 60.11 19,948 446 60.09 100% 1% 1% 0%
9.0 Erlang HiPE #2 18.00 35,760 747 70.43 98% 98% 98% 98%
12 Smalltalk VW #2 91.00 53,788 438 90.97 1% 1% 0% 100%
14 Erlang HiPE 111.41 40,912 507 111.42 1% 100% 1% 1%
16 Hack #3 31.46 115,488 1195 122.93 99% 98% 97% 98%
18 Hack #2 139.83 114,696 398 139.78 100% 1% 1% 1%
19 Erlang #2 38.56 28,696 747 149.48 96% 97% 98% 97%
20 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%
23 Lua 180.25 2,628 329 180.20 100% 1% 1% 0%
24 Erlang 191.91 30,416 507 191.89 0% 1% 1% 100%
30 PHP #3 60.15 17,048 1193 238.25 99% 99% 99% 99%
33 Ruby JRuby #4 251.17 685,284 326 258.56 20% 29% 33% 23%
38 Ruby JRuby 286.53 688,588 292 294.50 42% 15% 14% 34%
69 Ruby #5 141.49 50,156 835 9 min 96% 97% 96% 97%
91 Python 3 #5 180.01 55,892 437 11 min 99% 100% 99% 100%
103 Perl #3 202.93 17,972 846 13 min 99% 99% 99% 99%
151 Ruby JRuby #2 5 min 705,992 776 19 min 98% 98% 98% 98%
Perl #5 Partial
Perl #2 Partial
Perl Partial
PHP #2 Partial
Python 3 #6 Partial
Ruby #4 Partial
Ruby Partial
TypeScript #2 Partial