The Computer Language
Benchmarks Game

fasta

Always look at the source code.

Look at the slower simple sequential programs, and  look at the parallel programs written for multicore, and  look at the low-level programs written for SIMD.

× source secs mem gz busy cpu load
1.0 C gcc #2 0.82 2,888 2268 3.27 100% 99% 100% 100%
1.0 C gcc #7 0.84 2,876 2011 3.28 96% 98% 98% 100%
1.0 C++ g++ #7 0.85 2,020 2711 3.13 92% 92% 92% 93%
1.1 Haskell GHC #6 0.86 8,008 1882 2.80 83% 80% 81% 81%
1.1 Haskell GHC #4 0.88 42,516 2013 3.01 86% 85% 86% 86%
1.1 Haskell GHC #5 0.90 8,212 2000 2.86 80% 79% 80% 78%
1.1 Rust #2 0.93 2,180 1906 3.08 80% 89% 81% 81%
1.1 Rust #5 0.94 2,180 1961 3.08 80% 81% 88% 81%
1.1 Chapel #5 0.94 5,300 1391 3.38 100% 87% 86% 86%
1.2 C gcc #6 0.95 2,360 1930 2.80 96% 97% 2% 100%
1.3 C++ g++ #5 1.04 4,548 2344 3.90 93% 94% 94% 93%
1.3 C++ g++ #6 1.05 4,528 2324 4.05 96% 96% 97% 97%
1.4 F# .NET Core #3 1.13 77,452 1350 4.24 96% 96% 90% 94%
1.4 C# .NET Core #5 1.14 91,504 1691 4.21 93% 91% 90% 95%
1.5 Go #2 1.20 11,452 1404 3.62 73% 70% 84% 74%
1.6 Java  #5 1.27 45,584 2473 3.91 82% 83% 73% 70%
1.7 Swift #3 1.41 26,372 2090 4.66 76% 96% 80% 78%
1.7 Go #3 1.42 3,740 1358 4.08 85% 85% 77% 42%
1.8 C# .NET Core 1.43 50,416 2098 5.33 92% 96% 91% 92%
1.9 F# .NET Core #4 1.55 56,056 1342 5.54 91% 86% 85% 94%
2.1 Julia #7 1.71 354,008 1182 4.94 69% 68% 75% 78%
2.3 Julia #6 1.91 385,016 1203 5.24 70% 72% 71% 63%
2.3 C gcc #5 1.92 660 1281 1.93 0% 1% 0% 100%
2.5 Node js #5 2.04 67,420 2047 6.33 76% 85% 75% 74%
2.5 Swift #2 2.05 8,596 1945 2.84 1% 65% 12% 60%
2.5 Intel Fortran #4 2.05 8 1351 2.12 2% 100% 1% 0%
2.5 C++ g++ 2.06 1,608 1057 2.13 100% 2% 1% 0%
2.5 C++ g++ #2 2.07 1,608 1127 2.10 100% 1% 0% 0%
2.6 Rust #3 2.10 688 1233 2.18 0% 3% 100% 0%
3.1 Ada 2012 GNAT #2 2.57 1,788 2153 2.59 0% 0% 100% 1%
3.2 Ada 2012 GNAT #5 2.60 1,724 2221 2.62 100% 0% 0% 0%
3.2 C++ g++ #3 2.62 1,612 1307 2.62 0% 0% 0% 100%
3.3 Julia #5 2.73 209,972 950 2.99 3% 4% 99% 3%
3.4 Julia #4 2.81 198,632 1049 3.10 4% 5% 3% 99%
3.7 C gcc #4 3.06 592 1240 3.12 2% 0% 100% 0%
4.0 Java #4 3.25 38,392 1524 3.35 1% 2% 99% 1%
4.0 OCaml #6 3.28 195,488 1189 3.30 1% 0% 100% 0%
4.0 C++ g++ #4 3.31 596 1287 3.33 0% 0% 0% 100%
4.4 Go 3.57 1,856 1053 3.58 0% 100% 0% 0%
4.4 C gcc 3.64 596 1206 3.66 0% 100% 0% 0%
4.6 Rust #6 3.78 114,764 955 3.80 0% 1% 0% 100%
4.7 Rust #4 3.88 121,084 939 3.89 0% 100% 0% 0%
5.2 Chapel #3 4.27 5,184 1229 4.28 100% 0% 0% 0%
5.2 Lisp SBCL #6 4.30 15,268 1757 4.90 0% 14% 0% 100%
5.2 Java #2 4.30 39,540 1257 4.42 24% 77% 1% 1%
5.5 Rust 4.49 688 1237 4.63 100% 1% 1% 1%
5.6 OCaml #3 4.61 2,680 1071 4.80 100% 4% 0% 0%
6.7 Dart 5.46 157,044 1403 5.65 97% 2% 3% 2%
6.7 Haskell GHC 5.50 5,120 969 6.10 4% 4% 3% 100%
6.8 Free Pascal #6 5.59 8 1190 5.76 0% 1% 1% 100%
6.9 Free Pascal #5 5.64 8 1220 5.76 1% 100% 0% 2%
7.1 Haskell GHC #2 5.82 431,964 1319 19.77 82% 85% 81% 91%
7.2 Lisp SBCL #3 5.90 18,300 1587 5.91 0% 100% 0% 0%
7.3 Intel Fortran #3 5.94 8 1215 6.04 2% 0% 0% 100%
7.4 Ada 2012 GNAT 6.06 1,784 1379 6.09 0% 0% 100% 0%
7.8 Intel Fortran 6.39 8 1190 6.65 4% 100% 0% 0%
8.3 Swift 6.81 7,120 1526 6.98 1% 1% 100% 0%
8.6 Haskell GHC #3 7.07 620,216 1088 13.76 34% 100% 31% 30%
12 Lisp SBCL 9.45 20,992 1424 9.47 0% 0% 100% 0%
12 Racket #3 9.60 36,740 1280 9.66 0% 0% 0% 100%
12 Lisp SBCL #2 9.78 18,332 1622 9.81 0% 0% 100% 0%
18 Julia #3 14.91 188,292 896 15.21 1% 1% 100% 1%
32 Racket 25.94 36,348 1066 26.07 0% 0% 100% 0%
35 Lua #3 28.30 2,784 1061 28.49 1% 0% 100% 0%
35 Lua #2 28.35 2,748 1061 28.51 100% 0% 0% 0%
36 VW Smalltalk 29.34 54,464 1539 29.41 0% 0% 100% 0%
38 Ruby #6 30.87 71,464 1069 32.72 2% 2% 100% 3%
40 PHP #3 32.86 8,004 1062 33.02 0% 100% 0% 0%
42 Node js 34.37 41,792 809 34.84 99% 1% 0% 0%
46 Python 3 #5 38.07 845,888 1947 75.85 23% 63% 66% 47%
66 Ruby #3 54.21 71,540 1002 56.25 1% 2% 2% 99%
66 PHP #2 54.42 7,960 1050 54.89 1% 0% 100% 0%
69 Erlang HiPE 56.64 24,760 1039 71.26 6% 100% 8% 12%
75 Perl 61.34 55,252 871 61.71 0% 0% 100% 0%
80 Python 3 #2 65.16 8,312 1121 65.85 6% 0% 46% 48%
80 Python 3 #3 65.51 8,236 1003 65.82 0% 100% 0% 0%
97 Python 3 79.55 8,212 817 79.90 100% 0% 0% 0%
114 Ruby #4 93.55 199,676 913 95.29 61% 1% 1% 39%
116 Ruby #5 95.31 22,684 995 97.15 100% 1% 0% 1%
141 Ruby #2 115.39 144,928 743 117.99 1% 41% 60% 0%
152 Perl #4 124.71 6,144 966 127.18 0% 1% 0% 100%
225 Perl #2 183.93 6,144 922 186.19 0% 0% 0% 100%
309 Matz's Ruby #6 253.47 101,720 1071 256.95 1% 100% 0% 0%
322 Matz's Ruby #3 263.92 101,684 1020 266.79 0% 100% 0% 0%
364 Matz's Ruby #4 298.19 225,848 913 5 min 100% 0% 0% 0%
403 Matz's Ruby #5 5 min 4,216 995 5 min 100% 0% 0% 0%
479 Matz's Ruby #2 6 min 248,404 743 6 min 0% 0% 0% 100%
Erlang HiPE #2 Failed