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 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.3 C++ g++ #2 2.48 238,984 453 2.47 100% 2% 1% 0%
1.3 Rust #3 2.51 2,752 1053 9.20 91% 93% 95% 90%
1.8 C++ g++ #8 3.54 1,308 1278 13.98 99% 99% 99% 99%
2.0 Go #4 3.94 2,344 548 15.71 100% 100% 100% 100%
2.0 Swift #3 3.96 9,476 601 15.77 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 Free Pascal #2 3.98 1,980 542 15.81 99% 99% 99% 99%
2.0 Chapel 3.99 5,148 310 15.81 100% 99% 100% 99%
2.0 Haskell GHC #4 4.05 3,960 987 15.71 100% 97% 97% 95%
2.1 C# .NET Core #3 4.07 32,608 878 15.82 99% 97% 97% 97%
2.1 Go #2 4.13 1,796 668 15.73 95% 95% 96% 95%
2.1 Rust #2 4.19 2,752 1110 15.75 95% 95% 94% 94%
2.1 F# .NET Core #4 4.22 36,760 732 16.21 99% 95% 96% 96%
2.1 Rust 4.22 2,776 1254 15.76 95% 93% 93% 93%
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.2 Java  #2 4.38 35,388 950 16.80 96% 96% 95% 97%
2.3 F# .NET Core #3 4.51 37,048 721 17.45 99% 96% 96% 96%
2.3 Lisp SBCL #3 4.55 19,324 890 15.83 89% 89% 85% 87%
2.3 Lisp SBCL #5 4.55 19,328 899 15.85 86% 88% 90% 87%
2.3 Lisp SBCL #2 4.58 19,440 915 15.83 89% 87% 86% 88%
2.7 Racket #3 5.32 27,228 627 20.55 98% 96% 96% 96%
4.0 Fortran Intel #2 7.85 2,880 513 7.85 0% 1% 100% 0%
5.6 Lisp SBCL #4 11.15 65,944 891 40.53 90% 92% 93% 91%
7.9 C gcc 15.69 1,240 383 15.69 100% 0% 0% 0%
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%
7.9 Go 15.70 2,368 411 15.70 1% 0% 0% 100%
8.0 Erlang HiPE #2 15.75 30,428 747 61.95 99% 99% 99% 98%
8.0 Haskell GHC #2 15.78 5,956 403 15.78 0% 1% 100% 0%
8.0 Node js #3 15.79 31,900 381 15.79 100% 1% 0% 0%
8.0 Node js #2 15.79 31,908 336 15.79 100% 0% 0% 0%
8.0 Node js #5 15.79 31,952 393 15.79 100% 0% 1% 0%
8.0 TypeScript 15.80 33,356 383 15.79 100% 1% 0% 0%
8.0 Node js 15.80 33,412 319 15.80 100% 1% 1% 0%
8.0 TypeScript #3 15.81 32,436 394 15.80 100% 0% 1% 0%
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 Free Pascal 15.97 8 423 15.97 100% 0% 1% 0%
8.2 Swift 16.18 16,636 438 16.18 100% 1% 0% 0%
8.2 C++ g++ 16.26 1,904 452 16.25 0% 1% 0% 100%
8.5 Java 16.82 34,788 514 17.00 2% 100% 1% 1%
8.6 Kotlin 16.97 35,096 515 17.16 99% 1% 2% 1%
9.2 Lisp SBCL 18.28 20,356 631 18.27 1% 0% 0% 100%
13 Truffle Ruby 25.34 473,876 292 49.87 34% 33% 65% 64%
16 Truffle Ruby #4 31.06 469,692 326 51.19 22% 26% 50% 66%
16 Hack #3 31.83 88,408 1212 124.68 98% 98% 98% 99%
16 VW Smalltalk #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.76 28,480 532 37.76 100% 1% 1% 0%
20 Racket 40.31 24,820 446 40.32 100% 1% 0% 0%
21 Perl #4 41.83 10,980 555 165.14 99% 99% 99% 98%
30 TypeScript #2 59.35 40,196 385 59.43 22% 1% 3% 76%
30 PHP #3 59.76 20,320 1210 238.50 100% 100% 100% 100%
46 VW Smalltalk 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%
60 Ruby #5 119.33 49,312 835 7 min 97% 97% 97% 97%
62 Hack #2 122.26 86,752 398 122.21 19% 28% 34% 21%
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%
104 JRuby #2 205.48 781,524 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 JRuby #4 251.88 783,284 326 264.85 26% 36% 17% 28%
149 Ruby #4 293.77 10,676 326 293.70 0% 1% 87% 13%
169 Ruby 5 min 10,100 292 5 min 0% 1% 0% 100%
224 JRuby 7 min 785,984 292 7 min 15% 23% 21% 46%
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%
484 Matz's Ruby #5 15 min 22,028 835 1h 02 min 99% 99% 99% 99%
  Matz's Ruby 41 min 5,956 292 41 min 19% 45% 37% 0%
  Matz's Ruby #4 45 min 6,068 326 45 min 32% 28% 40% 1%
Truffle Ruby #5 Failed
Rust #4 Make Error