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.97 2,600 1126 7.86 100% 100% 100% 99%
1.0 C gcc #4 1.98 1,160 1139 7.86 99% 99% 99% 99%
1.0 C gcc #5 1.98 1,160 569 7.86 99% 99% 100% 99%
1.0 C++ g++ #6 1.98 1,168 1044 7.87 100% 99% 99% 99%
1.0 Rust #4 1.99 2,596 817 7.91 100% 99% 100% 100%
1.0 Rust #5 1.99 2,640 1055 7.92 99% 99% 99% 100%
1.0 C++ g++ #5 2.00 1,796 1044 7.95 100% 100% 100% 100%
1.0 Fortran Intel #3 2.01 2,952 638 7.97 100% 100% 100% 100%
1.0 Ada 2012 GNAT #4 2.01 4,152 2770 7.87 98% 98% 99% 98%
1.2 Rust #3 2.32 2,884 1053 8.79 95% 94% 95% 95%
1.3 C++ g++ #2 2.48 238,896 453 2.47 1% 100% 0% 0%
1.8 C++ g++ #8 3.48 1,156 1278 13.87 100% 100% 100% 100%
2.0 Go #4 3.95 2,664 548 15.70 99% 99% 100% 100%
2.0 Ada 2012 GNAT #3 3.97 4,148 1717 15.71 99% 99% 99% 99%
2.0 Swift #3 3.97 7,880 601 15.79 100% 100% 99% 100%
2.0 Chapel 3.97 5,536 310 15.75 99% 99% 99% 99%
2.0 Free Pascal #2 3.98 1,904 542 15.81 99% 99% 99% 99%
2.0 C gcc #3 3.99 1,164 463 15.90 100% 100% 100% 100%
2.0 Lisp SBCL #5 4.00 19,368 899 15.73 99% 99% 99% 99%
2.0 Lisp SBCL #2 4.00 19,360 915 15.74 99% 99% 99% 99%
2.0 Lisp SBCL #3 4.01 19,428 890 15.73 98% 98% 98% 98%
2.1 C# .NET Core #3 4.07 35,300 878 15.84 97% 98% 99% 97%
2.1 Go #2 4.08 1,888 668 15.74 97% 96% 96% 97%
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 Haskell GHC #4 4.17 3,812 987 15.74 99% 97% 99% 98%
2.1 Rust 4.22 2,924 1254 16.54 98% 98% 99% 98%
2.1 Rust #2 4.22 2,864 1110 16.53 98% 98% 98% 98%
2.2 Java  #2 4.27 32,960 950 16.41 95% 97% 98% 96%
2.2 OCaml #3 4.29 5,352 914 15.99 93% 92% 95% 94%
2.3 F# .NET Core #3 4.54 37,104 721 17.49 96% 96% 95% 99%
2.7 Racket #3 5.40 35,340 627 20.67 95% 96% 96% 98%
2.8 Java AOT #2 5.47 6,396 950 21.77 100% 100% 100% 100%
4.0 Fortran Intel #2 7.85 3,188 513 7.85 0% 1% 1% 100%
5.4 Lisp SBCL #4 10.73 54,600 891 40.50 95% 95% 95% 95%
8.0 Go 15.70 2,692 411 15.70 1% 0% 0% 100%
8.0 OCaml #2 15.70 3,664 377 15.69 0% 100% 0% 1%
8.0 Ada 2012 GNAT 15.70 3,528 716 15.69 1% 0% 100% 1%
8.0 Swift 15.72 17,432 438 15.71 1% 0% 0% 100%
8.0 Java AOT 15.72 7,184 514 15.72 0% 100% 1% 0%
8.0 Haskell GHC #2 15.78 5,804 403 15.77 0% 100% 1% 0%
8.0 Node js #3 15.81 32,544 381 15.81 1% 0% 0% 100%
8.0 Node js #5 15.81 33,068 393 15.81 0% 100% 0% 1%
8.0 Node js #2 15.81 32,956 336 15.81 1% 0% 100% 1%
8.0 TypeScript 15.82 33,912 383 15.82 56% 0% 0% 45%
8.0 Node js 15.82 33,868 319 15.82 0% 100% 0% 0%
8.0 TypeScript #3 15.83 32,824 394 15.82 2% 1% 3% 100%
8.0 C# .NET Core 15.85 35,520 459 15.85 0% 100% 1% 0%
8.1 Free Pascal 15.98 8 423 15.97 100% 0% 0% 1%
8.1 C gcc 15.99 1,116 383 15.98 1% 0% 100% 1%
8.1 C++ g++ 16.07 3,124 452 16.06 100% 0% 0% 1%
8.2 Dart #5 16.15 134,712 489 16.61 1% 98% 2% 3%
8.2 Dart 16.20 134,088 462 16.67 1% 3% 2% 98%
8.4 Java 16.54 33,004 514 16.67 100% 0% 1% 0%
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%
10 TypeScript #2 20.24 34,436 385 20.26 0% 80% 20% 1%
11 Lisp SBCL 22.55 20,472 631 22.54 100% 0% 0% 1%
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.85 30,272 532 37.85 0% 0% 1% 100%
20 Racket 40.39 30,040 446 40.39 1% 78% 23% 1%
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%
66 Hack #2 129.50 129,828 400 129.40 0% 54% 46% 1%
78 Perl #5 154.74 6,804 340 154.71 0% 100% 1% 0%
80 Ruby #5 157.09 86,412 862 9 min 96% 94% 95% 94%
87 Perl 171.53 6,736 333 171.49 0% 0% 0% 100%
98 Python 3 #5 193.86 50,556 443 12 min 98% 98% 99% 99%
113 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 Lua 225.46 2,616 329 225.41 1% 100% 1% 1%
122 Ruby #4 239.78 18,604 326 282.07 8% 97% 3% 10%
122 PHP #2 239.88 9,240 397 239.83 0% 85% 16% 0%
144 JRuby #4 283.57 773,252 326 296.11 44% 8% 36% 18%
145 Ruby 285.48 18,244 292 5 min 14% 94% 8% 4%
261 JRuby 8 min 778,444 292 8 min 45% 16% 32% 11%
357 Python 3 #6 11 min 9,380 328 11 min 99% 1% 1% 0%
372 Perl #2 12 min 6,244 343 12 min 0% 100% 1% 0%
485 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