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 #5 0.94 2,180 1961 3.12 81% 81% 81% 89%
1.1 Chapel #5 0.94 5,300 1391 3.38 100% 87% 86% 86%
1.1 Rust #2 0.94 2,180 1906 3.10 88% 81% 80% 81%
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.5 C# .NET Core #5 1.19 111,092 1691 4.38 96% 92% 91% 89%
1.5 Go #2 1.20 10,852 1404 3.64 79% 71% 74% 79%
1.6 Java  #5 1.28 44,172 2473 4.17 83% 78% 88% 76%
1.7 Swift #3 1.41 26,372 2090 4.66 76% 96% 80% 78%
1.7 Go #3 1.42 3,096 1358 4.06 86% 85% 84% 32%
1.8 C# .NET Core 1.45 49,688 2098 5.41 92% 92% 95% 95%
1.9 F# .NET Core #4 1.55 56,056 1342 5.54 91% 86% 85% 94%
2.1 Julia #7 1.70 349,332 1182 4.91 61% 75% 78% 75%
2.3 Julia #6 1.90 395,732 1203 5.19 73% 59% 69% 73%
2.3 Node js #5 1.91 67,116 2047 6.13 77% 81% 78% 86%
2.3 C gcc #5 1.92 660 1281 1.93 0% 1% 0% 100%
2.5 Swift #2 2.05 8,596 1945 2.84 1% 65% 12% 60%
2.5 Intel Fortran #4 2.06 8 1351 2.06 0% 0% 0% 100%
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 692 1233 2.11 0% 100% 0% 0%
3.1 Ada 2012 GNAT #2 2.57 1,788 2153 2.59 0% 0% 100% 1%
3.2 Julia #5 2.59 208,940 950 2.85 4% 99% 3% 4%
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.4 Julia #4 2.78 193,444 1049 3.07 4% 4% 4% 99%
3.7 C gcc #4 3.06 592 1240 3.12 2% 0% 100% 0%
3.9 Java #4 3.19 37,684 1524 3.30 1% 99% 1% 2%
4.0 OCaml #6 3.26 188,324 1189 3.28 0% 0% 100% 0%
4.0 C++ g++ #4 3.31 596 1287 3.33 0% 0% 0% 100%
4.4 Go 3.58 1,232 1053 3.59 0% 0% 100% 0%
4.4 C gcc 3.64 596 1206 3.66 0% 100% 0% 0%
5.0 Rust #6 4.12 118,360 955 4.15 0% 0% 100% 0%
5.0 Rust #4 4.12 118,888 939 4.74 100% 3% 6% 7%
5.2 Chapel #3 4.27 5,184 1229 4.28 100% 0% 0% 0%
5.2 Lisp SBCL #6 4.28 15,168 1757 4.30 0% 100% 0% 0%
5.4 Java #2 4.40 38,128 1257 4.50 1% 99% 0% 2%
5.5 Rust 4.49 680 1237 4.56 0% 100% 1% 0%
5.6 OCaml #3 4.58 2,660 1071 4.60 0% 0% 100% 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.69 1% 1% 0% 100%
6.9 Free Pascal #5 5.64 8 1220 5.69 0% 1% 0% 100%
7.1 Haskell GHC #2 5.82 431,964 1319 19.77 82% 85% 81% 91%
7.2 Intel Fortran #3 5.89 8 1215 6.12 3% 100% 1% 0%
7.2 Lisp SBCL #3 5.90 18,248 1587 5.93 0% 0% 100% 1%
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.44 0% 100% 1% 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 23,188 1424 9.83 1% 100% 3% 0%
12 Racket #3 9.56 37,892 1280 10.25 5% 2% 0% 100%
12 Lisp SBCL #2 9.76 19,504 1622 9.80 0% 0% 0% 100%
18 Julia #3 14.41 185,648 896 14.73 1% 100% 1% 1%
31 Racket 25.74 36,480 1066 26.04 1% 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.08 41,504 809 34.52 1% 0% 100% 1%
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