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 C++ g++ #8 0.77 2,504 2751 1.52 64% 0% 99% 37%
1.0 Rust #7 0.77 1,816 2529 1.53 99% 1% 0% 99%
1.0 C gcc #9 0.78 1,156 1463 0.78 0% 0% 0% 100%
1.1 C gcc #2 0.82 2,936 2268 3.27 100% 100% 100% 99%
1.1 C gcc #7 0.84 2,924 2011 3.28 97% 98% 98% 100%
1.2 Haskell GHC #6 0.88 7,628 1882 3.32 94% 96% 93% 93%
1.2 Rust #2 0.93 2,336 1906 3.22 85% 84% 85% 93%
1.2 C gcc #6 0.93 2,380 1930 2.75 100% 97% 98% 0%
1.2 Chapel #5 0.94 5,284 1391 3.41 99% 88% 89% 88%
1.2 Haskell GHC #4 0.95 42,632 2013 3.57 94% 96% 96% 93%
1.2 Rust #5 0.95 2,332 1961 3.10 80% 79% 80% 87%
1.4 C++ g++ #5 1.04 4,548 2344 3.89 93% 93% 93% 93%
1.4 C++ g++ #6 1.05 4,596 2324 4.05 96% 96% 97% 97%
1.5 Julia #8 1.12 193,924 1082 1.40 10% 8% 99% 8%
1.5 F# .NET #3 1.14 120,528 1350 4.18 94% 94% 89% 91%
1.6 Java  #6 1.21 44,620 2543 3.58 89% 75% 65% 68%
1.6 C# .NET #5 1.21 152,684 1691 4.58 96% 97% 92% 93%
1.7 Go #2 1.28 11,276 1404 3.78 65% 86% 81% 65%
1.7 Java #5 1.30 45,060 2473 3.94 69% 72% 70% 91%
1.8 Swift #3 1.41 26,396 2090 4.73 80% 80% 96% 79%
1.8 C# .NET 1.42 51,008 2098 5.20 91% 91% 96% 90%
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.3 Julia #7 1.76 364,528 1182 4.20 76% 38% 53% 71%
2.5 Node js #5 1.89 71,820 2047 6.13 79% 79% 81% 85%
2.5 C gcc #5 1.92 828 1281 2.06 0% 2% 100% 6%
2.6 Julia #6 1.95 397,588 1203 4.51 74% 65% 48% 44%
2.7 Rust #3 2.05 840 1233 2.06 0% 0% 0% 100%
2.7 Intel Fortran #4 2.06 12 1351 2.06 0% 0% 0% 100%
2.8 C++ g++ #2 2.11 1,784 1127 2.11 100% 0% 0% 0%
2.8 C++ g++ 2.12 1,784 1057 2.13 100% 0% 0% 0%
2.9 Swift #2 2.18 8,796 1945 4.06 67% 89% 14% 17%
3.4 Ada 2012 GNAT #5 2.60 1,988 2221 2.63 0% 2% 0% 100%
3.4 Ada 2012 GNAT #2 2.60 1,988 2153 2.63 0% 1% 100% 0%
3.4 Julia #5 2.63 217,136 950 2.92 3% 4% 100% 4%
3.4 C++ g++ #3 2.63 1,784 1307 2.63 0% 0% 0% 100%
3.6 C gcc #8 2.77 768 1293 2.81 0% 100% 1% 0%
3.8 Julia #4 2.91 202,500 1049 3.16 4% 3% 3% 99%
4.0 C gcc #4 3.08 768 1240 3.09 0% 0% 100% 0%
4.1 Java #4 3.16 38,296 1524 3.25 2% 32% 68% 1%
4.3 OCaml #6 3.28 203,300 1189 3.29 0% 0% 100% 0%
4.4 C++ g++ #4 3.38 764 1287 3.40 0% 1% 0% 100%
4.7 Go 3.63 1,264 1053 3.63 0% 100% 0% 0%
4.8 C gcc 3.70 764 1206 3.70 100% 0% 0% 0%
5.0 Rust #6 3.81 123,800 955 3.80 0% 0% 0% 100%
5.0 Rust #4 3.85 123,796 939 3.86 0% 0% 1% 100%
5.5 Chapel #3 4.22 5,148 1229 4.39 99% 1% 2% 2%
5.7 Rust 4.39 828 1237 4.40 0% 100% 0% 0%
5.8 Dart #5 4.42 329,104 1485 8.08 1% 74% 99% 8%
5.8 Java #2 4.47 38,448 1257 4.54 99% 1% 0% 1%
5.9 C gcc #3 4.50 768 819 4.52 0% 100% 0% 0%
6.0 OCaml #3 4.58 2,600 1071 4.61 100% 0% 0% 0%
6.1 Swift 4.66 8,016 1526 4.71 100% 0% 1% 0%
6.1 Dart 4.67 41,624 1402 5.10 4% 5% 0% 100%
6.2 Lisp SBCL #6 4.71 18,072 1757 4.75 0% 0% 0% 100%
7.3 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.4 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%
8.0 Intel Fortran #3 6.09 12 1215 6.28 100% 2% 0% 1%
8.1 Ada 2012 GNAT 6.20 1,988 1379 6.22 0% 100% 0% 0%
8.4 Intel Fortran 6.45 12 1190 6.63 0% 1% 2% 100%
8.8 Haskell GHC #3 6.72 524,468 1088 12.40 28% 100% 28% 28%
9.7 Dart #3 7.43 246,468 1108 7.53 0% 1% 99% 1%
9.8 Dart #4 7.47 256,996 1303 7.83 0% 99% 1% 4%
10 Racket #3 7.92 67,644 1280 7.93 0% 100% 0% 0%
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%
20 Dart #2 14.98 43,656 1068 15.04 0% 100% 0% 0%
25 Racket 18.97 67,832 1066 19.05 0% 100% 0% 0%
25 Julia #3 19.39 190,648 896 19.98 1% 1% 100% 1%
26 Erlang #2 20.18 37,368 1164 21.56 1% 100% 3% 3%
30 PHP #3 22.82 12,356 1062 24.32 3% 2% 2% 100%
34 Ruby #6 25.63 120,804 1069 28.41 0% 10% 100% 1%
34 Lua #2 25.72 2,840 1061 25.76 100% 0% 0% 0%
34 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%
49 Node js 37.19 44,064 809 37.81 43% 1% 49% 9%
49 Python 3 #5 37.32 846,264 1947 71.03 10% 67% 83% 30%
68 Erlang 51.90 37,276 1039 69.05 66% 10% 49% 9%
72 Ruby #3 55.39 120,888 1002 57.88 2% 2% 100% 1%
76 Perl 58.08 55,188 871 59.16 1% 100% 1% 0%
77 Python 3 #2 58.99 8,216 1121 59.35 0% 100% 0% 0%
78 Python 3 #3 59.29 8,168 1003 59.61 100% 0% 0% 0%
94 Python 3 71.91 8,212 817 72.23 100% 0% 0% 0%
134 Ruby #4 102.50 229,076 860 105.83 1% 1% 1% 100%
136 Ruby #5 104.39 23,712 995 107.82 1% 2% 1% 100%
160 Ruby #2 122.16 145,644 743 126.75 1% 1% 2% 100%
163 Perl #4 124.40 6,232 966 129.27 1% 72% 16% 15%
239 Perl #2 182.49 6,312 922 197.86 28% 2% 7% 72%
349 Matz's Ruby #3 266.99 101,684 1020 295.69 33% 3% 3% 71%
394 Matz's Ruby #4 5 min 277,768 860 5 min 2% 1% 1% 100%
446 Matz's Ruby #5 5 min 4,308 995 5 min 1% 1% 100% 1%
520 Matz's Ruby #2 6 min 248,288 743 7 min 85% 2% 18% 2%
C++ g++ #7 Make Error
Haskell GHC #5 Make Error
Matz's Ruby #6 Failed