The Computer Language
Benchmarks Game

spectral-norm

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 Rust #6 1.98 2,472 1126 7.86 100% 100% 99% 100%
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 Rust #5 1.99 2,420 1055 7.91 99% 100% 100% 100%
1.0 C++ g++ #5 2.01 2,080 1044 7.97 100% 100% 100% 99%
1.0 Ada 2012 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.31 2,476 817 9.19 100% 100% 100% 100%
1.2 Rust #3 2.33 2,700 1053 8.79 94% 95% 94% 94%
1.2 C++ g++ #2 2.47 239,044 453 2.46 2% 0% 0% 100%
1.8 C++ g++ #8 3.51 1,360 1278 13.97 100% 100% 99% 100%
2.0 Go #4 3.95 2,412 548 15.70 100% 99% 99% 99%
2.0 C gcc #3 3.95 1,312 463 15.75 100% 100% 100% 100%
2.0 Swift #3 3.96 7,892 601 15.75 100% 100% 99% 100%
2.0 Ada 2012 GNAT #3 3.96 4,288 1717 15.72 99% 99% 99% 99%
2.0 Chapel 3.97 5,488 310 15.75 99% 99% 99% 99%
2.0 Free Pascal #2 3.98 1,980 542 15.81 99% 99% 99% 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 35,300 878 15.84 97% 98% 99% 97%
2.1 Go #2 4.12 1,780 668 15.76 95% 97% 96% 96%
2.1 F# .NET Core #4 4.13 37,072 732 15.90 96% 95% 95% 99%
2.1 F# .NET Core #2 4.13 37,168 853 15.90 96% 99% 95% 95%
2.1 Rust 4.24 2,780 1254 16.55 98% 98% 98% 98%
2.2 Rust #2 4.26 2,768 1110 16.56 97% 98% 97% 98%
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.54 37,104 721 17.49 96% 96% 95% 99%
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 C gcc 15.69 1,248 383 15.69 4% 2% 100% 0%
7.9 Ada 2012 GNAT 15.69 3,608 716 15.69 1% 100% 0% 0%
7.9 Go 15.70 2,688 411 15.70 1% 0% 100% 0%
7.9 OCaml #2 15.70 3,688 377 15.69 1% 0% 100% 0%
7.9 Swift 15.71 17,156 438 15.71 0% 0% 1% 100%
7.9 Java AOT 15.72 7,184 514 15.72 0% 100% 1% 0%
8.0 Haskell GHC #2 15.78 5,956 403 15.78 0% 1% 100% 0%
8.0 Node js #3 15.80 31,296 381 15.80 1% 0% 0% 100%
8.0 Node js #5 15.80 31,996 393 15.80 1% 100% 3% 0%
8.0 Node js #2 15.81 31,516 336 15.80 100% 1% 0% 0%
8.0 TypeScript 15.81 33,080 383 15.81 100% 0% 0% 1%
8.0 Node js 15.81 32,744 319 15.81 1% 100% 0% 0%
8.0 TypeScript #3 15.82 31,956 394 15.82 100% 1% 0% 0%
8.0 C# .NET Core 15.85 35,520 459 15.85 0% 100% 1% 0%
8.1 Free Pascal 15.97 8 423 15.97 100% 0% 1% 0%
8.2 Dart #5 16.17 134,800 489 16.63 51% 37% 22% 4%
8.2 Dart 16.21 134,264 462 16.68 6% 5% 58% 43%
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.0 Erlang HiPE #2 17.78 31,840 747 63.77 93% 89% 89% 88%
9.2 Lisp SBCL 18.28 20,356 631 18.27 1% 0% 0% 100%
11 TypeScript #2 21.16 33,444 385 21.18 1% 100% 0% 0%
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%
17 Hack #3 33.49 131,980 1229 131.17 98% 99% 98% 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%
53 Erlang HiPE 105.15 26,596 507 105.20 73% 27% 1% 0%
65 Hack #2 129.50 129,828 400 129.40 0% 54% 46% 1%
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%
98 Lua 193.27 2,848 329 193.24 0% 0% 0% 100%
98 Python 3 #5 193.86 50,556 443 12 min 98% 98% 99% 99%
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%
356 Python 3 #6 11 min 9,380 328 11 min 99% 1% 1% 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 Timed Out