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++ #2 2.45 239,024 453 2.45 1% 0% 100% 0%
3.2 Fortran Intel #2 7.85 3,124 513 7.85 1% 100% 0% 0%
3.2 C gcc #5 1.98 1,164 569 7.86 100% 100% 99% 99%
3.2 C++ g++ #6 1.98 1,164 1044 7.87 99% 99% 99% 100%
3.2 Rust #6 1.98 2,460 1126 7.87 100% 99% 99% 99%
3.2 C gcc #4 1.98 1,168 1139 7.87 100% 99% 100% 99%
3.2 Ada 2012 GNAT #4 2.00 4,204 2770 7.87 99% 98% 99% 99%
3.2 Fortran Intel #3 1.98 1,684 638 7.89 99% 100% 99% 100%
3.2 Rust #4 2.00 2,652 817 7.92 99% 99% 100% 99%
3.2 Rust #5 2.00 2,512 1055 7.92 100% 100% 100% 99%
3.3 C++ g++ #5 2.00 1,792 1044 7.96 100% 100% 100% 100%
3.6 Rust #3 2.30 2,800 1053 8.79 96% 96% 96% 96%
5.7 C++ g++ #8 3.48 1,164 1278 13.88 100% 100% 100% 100%
6.4 OCaml #2 15.70 3,668 377 15.70 0% 1% 1% 100%
6.4 Ada 2012 GNAT 15.70 3,480 716 15.70 1% 100% 1% 0%
6.4 Go 15.70 2,260 411 15.70 100% 0% 1% 0%
6.4 Haskell GHC #4 4.06 3,620 987 15.71 97% 99% 97% 95%
6.4 Swift 15.72 17,432 438 15.71 1% 0% 0% 100%
6.4 Substrate VM 15.72 5,284 514 15.72 0% 100% 0% 0%
6.4 Ada 2012 GNAT #3 4.00 4,244 1717 15.72 98% 98% 99% 99%
6.4 Go #4 3.98 2,656 548 15.72 99% 99% 99% 99%
6.4 Lisp SBCL #3 4.00 16,516 890 15.73 99% 99% 98% 99%
6.4 Go #2 4.05 1,076 668 15.74 97% 98% 97% 98%
6.4 Lisp SBCL #5 4.00 16,460 899 15.74 99% 98% 99% 99%
6.4 Lisp SBCL #2 4.02 16,432 915 15.74 98% 98% 98% 98%
6.4 Chapel 3.98 5,368 310 15.76 100% 99% 99% 99%
6.5 Haskell GHC #2 15.78 5,800 403 15.78 0% 99% 2% 0%
6.5 Swift #3 3.97 7,880 601 15.79 100% 100% 99% 100%
6.5 Node js #3 15.81 31,788 381 15.80 0% 1% 100% 0%
6.5 Node js #2 15.81 31,848 336 15.81 1% 0% 0% 100%
6.5 Node js #5 15.81 32,244 393 15.81 100% 0% 1% 0%
6.5 TypeScript 15.82 33,496 383 15.82 1% 0% 0% 100%
6.5 Free Pascal #2 3.98 1,844 542 15.82 99% 99% 99% 99%
6.5 Node js 15.82 32,820 319 15.82 100% 0% 1% 0%
6.5 TypeScript #3 15.83 32,332 394 15.82 0% 100% 1% 0%
6.5 C# .NET Core #3 4.07 35,988 878 15.85 97% 100% 97% 97%
6.5 C# .NET Core 15.85 36,572 459 15.85 1% 100% 0% 0%
6.5 C gcc #3 3.99 1,164 463 15.90 100% 100% 100% 100%
6.5 F# .NET Core #4 4.13 37,268 732 15.91 98% 95% 97% 95%
6.5 F# .NET Core #2 4.13 37,304 853 15.91 95% 99% 96% 95%
6.5 Dart app-jit 15.79 73,048 462 15.92 1% 100% 1% 0%
6.5 Dart app-jit #5 15.78 73,184 489 15.93 1% 100% 1% 0%
6.5 Free Pascal 15.98 8 423 15.98 100% 0% 0% 1%
6.5 OCaml #3 4.29 5,384 914 15.99 93% 94% 94% 93%
6.5 C gcc 16.00 1,120 383 15.99 0% 100% 0% 1%
6.6 C++ g++ 16.07 3,220 452 16.07 0% 100% 0% 0%
6.7 Java  #2 4.26 33,572 950 16.39 96% 96% 98% 95%
6.8 Rust 4.27 2,760 1254 16.56 97% 98% 97% 98%
6.8 Rust #2 4.28 2,800 1110 16.57 97% 97% 98% 97%
6.8 Dart #5 16.17 119,992 489 16.65 2% 2% 99% 1%
6.8 Java 16.54 33,744 514 16.65 92% 0% 0% 9%
6.8 Dart 16.24 119,704 462 16.71 1% 99% 3% 4%
7.2 F# .NET Core #3 4.55 37,516 721 17.50 96% 99% 96% 95%
8.3 TypeScript #2 20.21 33,940 385 20.22 1% 0% 100% 0%
8.6 Racket #3 5.69 44,896 627 20.93 91% 91% 91% 98%
8.9 Substrate VM #2 5.46 4,180 950 21.77 100% 100% 100% 100%
9.2 Lisp SBCL 22.55 20,576 631 22.54 0% 100% 1% 0%
12 Truffle Ruby #7 27.31 449,204 292 28.96 92% 1% 4% 11%
16 Racket #2 38.07 40,968 532 38.07 100% 0% 0% 0%
16 Lisp SBCL #4 10.70 53,796 891 40.34 95% 95% 95% 95%
17 Racket 40.43 39,164 446 40.45 25% 27% 21% 55%
21 Truffle Ruby 25.51 473,216 292 50.45 36% 91% 37% 34%
21 Truffle Ruby #4 30.89 467,636 326 51.35 25% 92% 27% 23%
25 Erlang HiPE #2 15.65 31,372 747 61.61 98% 98% 99% 98%
37 VW Smalltalk 91.13 54,744 678 91.11 0% 1% 100% 0%
57 Erlang HiPE 139.36 25,168 507 139.39 40% 37% 6% 17%
63 PHP 38.56 20,848 1152 153.24 99% 100% 99% 99%
64 Perl #5 156.88 6,936 340 156.85 100% 0% 1% 0%
66 Perl #4 41.09 11,104 555 161.08 97% 98% 99% 98%
67 Perl 163.37 6,908 333 163.33 0% 100% 0% 0%
79 Lua 192.71 2,712 329 192.66 10% 0% 0% 91%
100 PHP #3 62.39 32,548 1210 245.51 100% 98% 97% 99%
102 PHP #2 248.65 9,624 397 248.59 23% 0% 1% 78%
115 Ruby #4 239.78 18,604 326 282.07 8% 97% 3% 10%
121 JRuby #4 282.89 785,592 326 296.60 17% 31% 39% 20%
134 Ruby 285.48 18,244 292 5 min 14% 94% 8% 4%
212 JRuby #2 133.21 785,540 776 8 min 98% 98% 98% 98%
215 JRuby 8 min 788,112 292 8 min 29% 14% 22% 39%
243 Ruby #5 157.09 86,412 862 9 min 96% 94% 95% 94%
248 Python 3 #6 10 min 8,912 328 10 min 34% 67% 1% 4%
289 Python 3 #5 182.12 52,752 443 11 min 96% 96% 96% 100%
332 Perl #2 13 min 6,252 343 13 min 0% 100% 1% 0%
336 Perl #3 205.73 17,292 850 13 min 100% 100% 100% 100%
  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%
  Matz's Ruby #5 15 min 22,028 835 1h 02 min 99% 99% 99% 99%
Truffle Ruby #5 Timed Out
VW Smalltalk #2 Partial