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 Rust #7 0.77 1,848 2529 1.57 99% 1% 4% 100%
1.0 C++ g++ #8 0.78 2,468 2751 1.62 8% 99% 99% 3%
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,948 1882 2.87 81% 82% 81% 81%
1.2 Haskell GHC #4 0.89 42,364 2013 2.97 83% 84% 84% 83%
1.2 Chapel #5 0.93 5,252 1391 3.36 100% 87% 88% 87%
1.2 Rust #5 0.93 2,328 1961 3.17 83% 90% 85% 83%
1.2 C gcc #6 0.93 2,376 1930 2.77 97% 98% 2% 100%
1.2 Rust #2 0.94 2,384 1906 3.17 82% 89% 83% 82%
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 Go #2 1.20 11,364 1404 3.67 80% 75% 73% 77%
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.9 Go #3 1.43 3,072 1358 4.11 85% 32% 85% 86%
1.9 C# .NET 1.44 50,600 2098 5.30 95% 92% 91% 89%
2.0 Swift #3 1.51 26,104 2090 4.81 91% 76% 77% 74%
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.02 67,936 2047 6.27 78% 81% 75% 75%
2.7 Rust #3 2.04 836 1233 2.07 0% 0% 1% 100%
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 C++ g++ #2 2.11 1,800 1127 2.12 0% 100% 0% 0%
2.8 Swift #2 2.12 8,380 1945 2.86 22% 55% 22% 36%
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 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.3 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.58 1,232 1053 3.65 1% 100% 1% 1%
4.8 C gcc 3.70 792 1206 3.71 0% 0% 1% 100%
5.3 Rust #6 4.09 123,788 955 4.13 0% 100% 0% 0%
5.4 Rust #4 4.15 123,788 939 4.17 0% 100% 0% 0%
5.8 Java #2 4.44 38,128 1257 4.53 0% 100% 1% 1%
5.8 Rust 4.44 832 1237 4.50 0% 100% 0% 1%
5.8 Lisp SBCL #6 4.46 15,280 1757 4.49 0% 100% 1% 0%
5.8 Swift 4.49 6,964 1526 4.71 100% 0% 4% 1%
6.0 OCaml #3 4.58 2,696 1071 4.60 0% 100% 0% 0%
6.6 Chapel #3 5.11 5,248 1229 5.34 100% 3% 0% 1%
7.0 Dart 5.42 159,148 1403 5.54 2% 1% 97% 1%
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.5 Haskell GHC #2 5.79 444,312 1319 19.63 89% 82% 85% 82%
7.9 Lisp SBCL #3 6.08 18,068 1587 6.23 0% 100% 0% 2%
7.9 Intel Fortran #3 6.09 12 1215 6.28 100% 2% 0% 1%
8.0 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%
12 Lisp SBCL 9.53 20,932 1424 9.54 0% 100% 0% 0%
12 Racket #3 9.60 40,052 1280 9.90 1% 2% 100% 1%
13 Lisp SBCL #2 9.83 18,276 1622 9.85 0% 0% 100% 0%
19 Julia #3 14.45 185,812 896 14.74 1% 1% 100% 1%
30 PHP #3 22.82 12,356 1062 24.32 3% 2% 2% 100%
33 Racket 25.61 36,524 1066 25.96 1% 1% 100% 0%
37 Lua #3 28.31 2,840 1061 28.57 0% 1% 0% 100%
37 Lua #2 28.32 2,788 1061 28.40 0% 100% 0% 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%
41 Ruby #6 31.29 122,852 1069 34.96 2% 4% 5% 100%
43 Node js 33.40 38,108 809 33.92 0% 99% 1% 1%
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%
76 Perl 58.08 55,188 871 59.16 1% 100% 1% 0%
78 Ruby #3 59.70 122,808 1002 63.84 2% 3% 100% 3%
80 Python 3 #2 61.30 8,368 1121 61.85 0% 100% 0% 0%
81 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%
139 Ruby #4 107.04 228,956 913 110.69 100% 1% 2% 1%
142 Ruby #5 109.01 25,696 995 112.77 0% 100% 1% 2%
162 Perl #4 124.40 6,232 966 129.27 1% 72% 16% 15%
163 Ruby #2 125.51 218,444 743 130.58 2% 100% 0% 2%
237 Perl #2 182.49 6,312 922 197.86 28% 2% 7% 72%
330 Matz's Ruby #6 253.47 101,720 1071 256.95 1% 100% 0% 0%
343 Matz's Ruby #3 263.92 101,684 1020 266.79 0% 100% 0% 0%
388 Matz's Ruby #4 298.19 225,848 913 5 min 100% 0% 0% 0%
429 Matz's Ruby #5 5 min 4,216 995 5 min 100% 0% 0% 0%
511 Matz's Ruby #2 6 min 248,404 743 6 min 0% 0% 0% 100%
C++ g++ #7 Make Error
Erlang HiPE #2 Failed
Haskell GHC Make Error
Haskell GHC #3 Make Error
Haskell GHC #5 Make Error