The Computer Language
Benchmarks Game

spectral-norm

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 C++ g++ #6 1.98 1,340 1044 7.87 99% 100% 99% 99%
1.0 C gcc #5 1.99 1,292 569 7.89 99% 99% 99% 99%
1.0 Fortran Intel #3 1.99 3,020 638 7.92 100% 99% 100% 100%
1.0 C++ g++ #5 2.00 2,044 1044 7.96 100% 100% 99% 100%
1.0 Ada 2005 GNAT #4 2.02 4,256 2770 7.89 98% 98% 98% 98%
1.1 C gcc #4 2.13 1,308 1139 8.47 100% 100% 100% 100%
1.2 Rust #4 2.30 2,576 817 9.16 100% 100% 100% 100%
1.2 Rust #3 2.36 2,780 1053 9.25 98% 98% 98% 98%
1.2 C++ g++ #2 2.47 238,928 453 2.47 1% 0% 0% 100%
1.8 C++ g++ #8 3.51 1,360 1278 13.97 100% 100% 99% 100%
2.0 Go #4 3.94 2,344 548 15.71 100% 100% 100% 100%
2.0 C gcc #3 3.95 1,312 463 15.75 100% 100% 100% 100%
2.0 Swift #3 3.96 8,132 601 15.79 100% 100% 100% 100%
2.0 Ada 2005 GNAT #3 3.96 4,288 1717 15.72 99% 99% 99% 99%
2.0 Rust 3.98 2,820 1254 15.71 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,228 310 15.77 99% 99% 99% 99%
2.0 Rust #2 4.02 2,820 1110 15.72 98% 98% 98% 98%
2.0 Haskell GHC #4 4.05 3,960 987 15.71 100% 97% 97% 95%
2.1 C# .NET Core #3 4.08 34,988 878 15.83 97% 98% 98% 96%
2.1 F# .NET Core #4 4.12 36,860 732 15.89 96% 97% 98% 95%
2.1 F# .NET Core #2 4.13 37,088 853 15.89 95% 98% 97% 96%
2.1 Go #2 4.13 1,796 668 15.73 95% 95% 96% 95%
2.2 OCaml #3 4.29 5,356 914 16.02 91% 94% 95% 94%
2.2 Java  #2 4.41 35,028 950 16.79 96% 97% 98% 95%
2.3 F# .NET Core #3 4.53 37,236 721 17.49 96% 98% 97% 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%
2.8 Java AOT #2 5.47 6,396 950 21.77 100% 100% 100% 100%
4.0 Fortran Intel #2 7.85 3,132 513 7.85 0% 1% 1% 100%
5.6 Lisp SBCL #4 11.15 65,944 891 40.53 90% 92% 93% 91%
7.9 Ada 2005 GNAT 15.69 3,608 716 15.69 1% 100% 0% 0%
7.9 C gcc 15.69 1,248 383 15.69 4% 2% 100% 0%
7.9 Go 15.70 2,368 411 15.70 1% 0% 0% 100%
7.9 OCaml #2 15.70 3,688 377 15.69 1% 0% 100% 0%
7.9 Java AOT 15.72 7,184 514 15.72 0% 100% 1% 0%
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.81 31,656 381 15.80 0% 100% 0% 1%
8.0 Node js #5 15.81 32,180 393 15.81 100% 0% 1% 0%
8.0 Node js #2 15.81 31,608 336 15.81 0% 100% 1% 0%
8.0 TypeScript 15.82 33,100 383 15.82 100% 0% 1% 0%
8.0 Node js 15.82 32,896 319 15.82 100% 0% 0% 1%
8.0 TypeScript #3 15.82 32,120 394 15.82 100% 0% 1% 0%
8.0 C# .NET Core 15.84 35,124 459 15.85 76% 0% 1% 24%
8.0 Dart 15.89 32,288 462 15.94 1% 1% 100% 0%
8.0 Dart #5 15.94 32,108 489 15.98 0% 1% 1% 100%
8.1 Free Pascal 15.97 8 423 15.97 100% 0% 1% 0%
8.2 C++ g++ 16.26 3,120 452 16.26 0% 0% 1% 100%
8.5 Java 16.83 34,992 514 17.01 0% 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%
11 TypeScript #2 21.13 33,444 385 21.15 21% 0% 1% 79%
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%
17 VW Smalltalk #2 32.68 ? 1074 ? 83% 84% 83% 82%
18 Hack #3 35.44 115,460 1212 139.13 98% 98% 99% 98%
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 PHP #3 59.76 20,320 1210 238.50 100% 100% 100% 100%
46 VW Smalltalk 90.86 54,824 678 90.83 1% 0% 0% 100%
52 Erlang HiPE 103.90 27,684 507 103.92 0% 1% 0% 100%
65 Hack #2 129.00 113,572 398 128.91 1% 100% 0% 0%
67 Ruby #5 132.22 54,944 862 8 min 94% 95% 93% 92%
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%
95 Python 3 #5 187.94 50,612 605 12 min 98% 99% 99% 99%
98 Lua 193.27 2,848 329 193.24 0% 0% 0% 100%
112 Perl #3 222.08 16,800 850 14 min 100% 100% 100% 100%
114 JRuby #2 225.35 781,452 776 14 min 98% 98% 98% 98%
114 Ruby #4 225.69 13,936 326 265.59 14% 94% 7% 4%
121 PHP #2 239.88 9,240 397 239.83 0% 85% 16% 0%
131 Ruby 259.00 13,452 292 299.49 31% 73% 8% 5%
143 JRuby #4 283.57 773,252 326 296.11 44% 8% 36% 18%
261 JRuby 8 min 778,444 292 8 min 45% 16% 32% 11%
336 Python 3 #6 11 min 9,504 504 11 min 56% 1% 34% 11%
371 Perl #2 12 min 6,244 343 12 min 0% 100% 1% 0%
483 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 Timed Out
Swift Failed