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 manually vectorized SIMD programs.

× source secs mem gz busy cpu load
1.0 Rust #7 0.77 1,820 2529 1.54 99% 99% 1% 1%
1.0 C++ g++ #8 0.78 2,468 2751 1.62 8% 99% 99% 3%
1.0 C gcc #9 0.78 1,220 1463 0.79 1% 0% 0% 100%
1.1 C gcc #2 0.82 2,896 2268 3.26 99% 100% 100% 99%
1.1 C gcc #7 0.84 2,888 2011 3.26 96% 100% 96% 96%
1.1 Haskell GHC #6 0.88 7,628 1882 3.32 94% 96% 93% 93%
1.2 Rust #5 0.92 2,336 1961 3.17 84% 91% 84% 84%
1.2 Chapel #5 0.93 5,252 1391 3.36 100% 87% 88% 87%
1.2 Rust #2 0.93 2,340 1906 3.11 83% 82% 82% 89%
1.2 C gcc #6 0.93 2,376 1930 2.77 97% 98% 2% 100%
1.2 Haskell GHC #4 0.95 42,632 2013 3.57 94% 96% 96% 93%
1.4 C++ g++ #5 1.04 4,464 2344 3.85 92% 92% 92% 92%
1.4 C++ g++ #6 1.05 4,520 2324 4.06 97% 97% 96% 97%
1.5 F# .NET #3 1.14 120,528 1350 4.18 94% 94% 89% 91%
1.5 C# .NET #5 1.16 96,136 1691 4.31 96% 95% 92% 89%
1.6 Java  #6 1.20 44,124 2543 3.61 79% 86% 69% 65%
1.7 Java #5 1.27 43,968 2473 3.92 73% 95% 70% 70%
1.7 Go #2 1.28 11,276 1404 3.78 65% 86% 81% 65%
1.9 Swift #3 1.43 26,128 2090 4.70 78% 78% 95% 78%
1.9 C# .NET 1.44 50,600 2098 5.30 95% 92% 91% 89%
2.0 Go #3 1.50 3,056 1358 3.98 60% 78% 47% 80%
2.0 F# .NET #4 1.55 61,664 1342 5.81 99% 92% 89% 94%
2.2 Julia #7 1.72 354,912 1182 4.90 79% 75% 63% 69%
2.5 Julia #6 1.90 378,872 1203 5.18 72% 72% 69% 59%
2.5 C gcc #5 1.91 804 1281 1.92 1% 0% 0% 100%
2.6 Node js #5 2.04 71,304 2047 6.32 75% 80% 80% 75%
2.7 Intel Fortran #4 2.06 12 1351 2.06 0% 0% 0% 100%
2.7 C++ g++ 2.08 1,804 1057 2.10 0% 100% 0% 0%
2.7 Rust #3 2.09 908 1233 2.09 0% 0% 0% 100%
2.7 C++ g++ #2 2.11 1,800 1127 2.12 0% 100% 0% 0%
2.9 Swift #2 2.21 8,560 1945 3.98 47% 19% 62% 52%
3.4 Ada 2012 GNAT #2 2.59 1,924 2153 2.77 5% 2% 100% 0%
3.4 Julia #5 2.60 207,856 950 2.88 4% 99% 5% 3%
3.4 Ada 2012 GNAT #5 2.61 1,920 2221 2.63 0% 0% 100% 1%
3.4 C++ g++ #3 2.63 1,744 1307 2.64 100% 0% 0% 0%
3.6 C gcc #8 2.75 744 1293 2.79 0% 100% 1% 0%
3.6 Julia #4 2.79 193,460 1049 3.24 4% 99% 4% 9%
4.0 C gcc #4 3.07 740 1240 3.08 0% 0% 100% 0%
4.1 Java #4 3.18 37,560 1524 3.27 99% 2% 1% 2%
4.2 OCaml #6 3.27 203,380 1189 3.31 1% 0% 0% 100%
4.4 C++ g++ #4 3.37 796 1287 3.39 0% 100% 1% 0%
4.7 Go 3.63 1,264 1053 3.63 0% 100% 0% 0%
4.8 C gcc 3.70 792 1206 3.71 0% 0% 1% 100%
4.9 Rust #6 3.76 123,848 955 3.78 0% 100% 1% 0%
5.0 Rust #4 3.88 123,864 939 4.40 100% 7% 0% 6%
5.7 Rust 4.41 840 1237 4.45 0% 0% 100% 0%
5.8 Java #2 4.44 38,128 1257 4.53 0% 100% 1% 1%
5.8 C gcc #3 4.48 744 819 4.49 0% 100% 0% 0%
5.9 Swift 4.51 7,268 1526 4.56 1% 0% 100% 0%
5.9 OCaml #3 4.58 2,696 1071 4.60 0% 100% 0% 0%
6.1 Lisp SBCL #6 4.71 18,072 1757 4.75 0% 0% 0% 100%
6.6 Chapel #3 5.11 5,248 1229 5.34 100% 3% 0% 1%
6.8 Dart 5.26 159,132 1402 5.44 3% 1% 3% 97%
7.2 Haskell GHC 5.57 4,916 969 6.01 3% 100% 3% 2%
7.3 Free Pascal #6 5.59 8 1190 5.63 1% 0% 0% 100%
7.3 Free Pascal #5 5.64 8 1220 5.65 0% 100% 0% 0%
7.6 Haskell GHC #2 5.85 420,284 1319 19.72 82% 79% 83% 93%
7.9 Lisp SBCL #3 6.08 17,908 1587 6.11 0% 100% 0% 0%
7.9 Intel Fortran #3 6.09 12 1215 6.28 100% 2% 0% 1%
7.9 Ada 2012 GNAT 6.12 1,916 1379 6.17 0% 0% 100% 1%
8.4 Intel Fortran 6.45 12 1190 6.63 0% 1% 2% 100%
8.7 Haskell GHC #3 6.72 524,468 1088 12.40 28% 100% 28% 28%
10 Racket #3 7.94 69,148 1280 7.97 0% 0% 0% 100%
12 Lisp SBCL #2 9.45 17,896 1622 9.48 0% 100% 0% 0%
13 Lisp SBCL 9.65 20,372 1424 9.68 0% 0% 100% 0%
19 Julia #3 14.45 185,812 896 14.74 1% 1% 100% 1%
25 Racket 18.97 66,512 1066 19.18 0% 0% 100% 1%
30 PHP #3 22.82 12,356 1062 24.32 3% 2% 2% 100%
33 Ruby #6 25.63 120,804 1069 28.41 0% 10% 100% 1%
33 Lua #2 25.72 2,840 1061 25.76 100% 0% 0% 0%
33 Lua #3 25.79 2,840 1061 26.11 0% 100% 1% 0%
38 VW Smalltalk 29.30 55,024 1539 29.55 0% 1% 100% 0%
40 PHP #2 30.73 11,416 1050 32.66 3% 1% 2% 100%
46 Node js 35.53 43,088 809 35.95 8% 1% 92% 0%
51 Python 3 #5 39.10 846,628 1947 70.52 43% 8% 61% 69%
74 Erlang HiPE 57.01 25,348 1039 73.11 9% 14% 100% 5%
75 Perl 58.08 55,188 871 59.16 1% 100% 1% 0%
80 Python 3 #2 61.30 8,368 1121 61.85 0% 100% 0% 0%
80 Python 3 #3 61.91 8,340 1003 62.33 0% 0% 100% 0%
94 Python 3 72.62 8,308 817 73.00 0% 0% 100% 0%
94 Ruby #3 72.72 120,812 1002 290.88 100% 100% 100% 100%
134 Ruby #4 103.41 229,020 860 111.67 3% 3% 3% 99%
162 Perl #4 124.40 6,232 966 129.27 1% 72% 16% 15%
183 Ruby #5 140.85 23,672 995 9 min 100% 100% 100% 100%
214 Ruby #2 164.73 145,576 743 10 min 100% 100% 100% 100%
237 Perl #2 182.49 6,312 922 197.86 28% 2% 7% 72%
345 Matz's Ruby #3 265.46 101,572 1020 268.48 0% 0% 23% 78%
352 Matz's Ruby #4 271.31 278,184 860 275.71 100% 1% 1% 0%
562 Matz's Ruby #5 7 min 4,188 995 28 min 100% 100% 100% 100%
679 Matz's Ruby #2 8 min 248,360 743 34 min 100% 100% 100% 100%
C++ g++ #7 Make Error
Erlang HiPE #2 Failed
Haskell GHC #5 Make Error
Matz's Ruby #6 Failed