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.98 2,944 638 7.88 100% 100% 100% 99%
1.0 Rust #4 1.98 2,580 817 7.90 100% 99% 100% 99%
1.0 Ada 2005 GNAT #4 2.00 4,468 2770 7.87 99% 98% 99% 99%
1.0 C gcc #5 2.00 1,300 569 7.89 99% 99% 100% 99%
1.0 C++ g++ #6 2.02 1,332 1044 7.91 99% 99% 99% 99%
1.0 C++ g++ #5 2.02 1,980 1044 7.97 99% 99% 99% 100%
1.1 C gcc #4 2.16 1,296 1139 8.50 98% 99% 100% 99%
1.2 Rust #3 2.36 2,816 1053 9.22 98% 97% 97% 98%
1.8 C++ g++ #8 3.54 1,308 1278 13.98 99% 99% 99% 99%
2.0 Go #4 3.94 2,320 548 15.69 99% 100% 100% 99%
2.0 Rust 3.95 2,844 1254 15.70 99% 99% 100% 99%
2.0 Swift #3 3.97 9,684 601 15.81 100% 100% 100% 100%
2.0 Ada 2005 GNAT #3 3.97 4,492 1717 15.72 99% 99% 99% 99%
2.0 C gcc #3 3.97 1,328 463 15.75 99% 99% 99% 99%
2.0 Pascal Free Pascal #2 3.98 1,980 542 15.81 99% 99% 99% 99%
2.0 Rust #2 3.99 2,856 1110 15.71 98% 98% 98% 99%
2.0 Chapel 3.99 5,148 310 15.81 100% 99% 100% 99%
2.0 Haskell GHC #4 4.04 4,132 987 15.71 97% 100% 95% 97%
2.1 C# .NET Core #3 4.07 32,608 878 15.82 99% 97% 97% 97%
2.1 Go #2 4.18 1,564 668 15.76 95% 95% 95% 93%
2.1 Java  #2 4.23 34,472 950 16.27 96% 97% 97% 96%
2.2 OCaml #3 4.31 5,280 914 15.97 92% 94% 93% 92%
2.2 F# .NET Core #2 4.32 37,008 853 16.69 96% 96% 96% 99%
2.3 F# .NET Core #3 4.51 37,048 721 17.45 99% 96% 96% 96%
2.3 Lisp SBCL #2 4.55 19,788 915 15.83 88% 86% 89% 87%
2.3 Lisp SBCL #3 4.55 19,792 890 15.83 87% 88% 86% 89%
2.3 Lisp SBCL #5 4.60 19,788 899 15.83 87% 90% 87% 82%
2.7 Racket #3 5.33 29,216 627 20.55 97% 98% 96% 96%
4.0 Fortran Intel #2 7.85 2,880 513 7.85 0% 1% 100% 0%
5.5 Lisp SBCL #4 10.97 62,736 891 39.52 89% 92% 92% 91%
7.9 C gcc 15.69 1,240 383 15.69 100% 0% 0% 0%
7.9 Go 15.69 2,596 411 15.69 0% 1% 0% 100%
7.9 OCaml #2 15.69 3,624 377 15.69 51% 1% 0% 49%
7.9 Ada 2005 GNAT 15.69 2,124 716 15.69 0% 100% 1% 0%
8.0 Erlang HiPE #2 15.75 30,428 747 61.95 99% 99% 99% 98%
8.0 Node.js #3 15.79 31,352 381 15.79 100% 0% 0% 0%
8.0 Node.js #2 15.79 31,200 336 15.79 0% 0% 0% 100%
8.0 Node.js #5 15.79 31,256 393 15.79 100% 1% 1% 0%
8.0 TypeScript 15.80 32,596 499 15.80 89% 1% 1% 12%
8.0 Node.js 15.80 32,664 319 15.80 0% 0% 100% 1%
8.0 TypeScript #3 15.81 31,692 508 15.80 0% 1% 0% 100%
8.0 C# .NET Core 15.82 32,804 459 15.81 100% 1% 1% 0%
8.1 Dart 15.92 47,892 462 16.05 99% 1% 1% 1%
8.1 Dart #5 15.92 47,608 489 16.06 61% 1% 1% 40%
8.1 Pascal Free Pascal 15.97 8 423 15.97 100% 0% 1% 0%
8.2 Swift 16.18 17,092 438 16.18 0% 1% 100% 0%
8.2 C++ g++ 16.26 1,904 452 16.25 0% 1% 0% 100%
8.5 Kotlin 16.74 35,048 515 16.88 99% 3% 2% 2%
8.5 Java 16.79 34,984 514 16.93 1% 1% 100% 0%
9.2 Lisp SBCL 18.26 21,056 631 18.26 0% 1% 0% 100%
10 Haskell GHC #2 20.09 6,880 403 40.77 37% 93% 37% 37%
16 Hack #3 31.83 88,408 1212 124.68 98% 98% 98% 99%
16 Smalltalk VW #2 32.22 244,048 1054 82.07 84% 83% 84% 86%
19 PHP 37.09 20,208 1152 147.78 100% 100% 100% 100%
19 Racket #2 37.74 27,916 532 37.74 100% 0% 0% 1%
20 Racket 40.33 26,436 446 40.32 100% 2% 1% 0%
21 Perl #4 41.83 10,980 555 165.14 99% 99% 99% 98%
30 TypeScript #2 59.24 39,196 499 59.33 42% 1% 1% 59%
30 PHP #3 59.76 20,320 1210 238.50 100% 100% 100% 100%
46 Smalltalk VW 91.12 56,232 669 91.10 1% 1% 0% 100%
53 Erlang HiPE 103.90 27,684 507 103.92 0% 1% 0% 100%
62 Hack #2 122.26 86,752 398 122.21 19% 28% 34% 21%
72 Ruby #5 141.49 50,156 835 9 min 96% 97% 96% 97%
78 Perl #5 154.74 6,804 340 154.71 0% 100% 1% 0%
87 Perl 171.53 6,736 333 171.49 0% 0% 0% 100%
92 Python 3 #5 180.97 15,876 443 12 min 100% 100% 100% 100%
98 Lua 193.27 2,848 329 193.24 0% 0% 0% 100%
109 Ruby JRuby #2 216.27 804,576 776 13 min 98% 98% 98% 98%
112 Perl #3 222.08 16,800 850 14 min 100% 100% 100% 100%
121 PHP #2 239.88 9,240 397 239.83 0% 85% 16% 0%
127 Ruby JRuby #4 250.17 750,632 326 262.40 43% 6% 7% 51%
155 Ruby #4 5 min 10,884 326 5 min 6% 0% 1% 94%
186 Ruby 6 min 10,036 292 6 min 0% 39% 1% 62%
230 Ruby JRuby 7 min 754,648 292 7 min 34% 8% 6% 57%
327 Python 3 #6 10 min 10,676 328 10 min 66% 11% 24% 0%
371 Perl #2 12 min 6,244 343 12 min 0% 100% 1% 0%
487 Ruby MRI #5 16 min 21,704 835 1h 03 min 98% 99% 99% 99%
  Matz's Interpreter 40 min 5,948 292 40 min 27% 25% 8% 42%
  Matz's Interpreter #4 45 min 6,004 326 45 min 95% 0% 1% 5%