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 Haskell GHC #6 1.40 7,992 1882 4.15 75% 74% 75% 74%
1.0 Haskell GHC #5 1.44 8,324 2000 4.25 73% 74% 74% 74%
1.0 C++ g++ #7 1.46 2,180 2711 4.39 75% 75% 75% 75%
1.0 C gcc #2 1.46 2,976 2268 5.82 99% 100% 99% 99%
1.1 Haskell GHC #4 1.47 42,464 2013 4.18 71% 71% 71% 72%
1.1 C gcc #7 1.51 2,976 2011 5.87 100% 96% 97% 97%
1.1 Rust #2 1.51 2,044 1906 4.60 74% 73% 82% 75%
1.1 Rust #5 1.51 2,044 1961 4.76 76% 77% 77% 85%
1.2 Chapel #4 1.66 5,296 1396 5.97 99% 87% 87% 87%
1.2 F# .NET Core #3 1.70 107,124 1350 6.41 93% 99% 94% 92%
1.2 C# .NET Core #5 1.70 84,508 1691 6.36 95% 92% 90% 98%
1.2 C++ g++ #6 1.74 4,472 2324 5.72 82% 82% 82% 82%
1.3 C++ g++ #5 1.75 4,516 2344 5.48 79% 78% 78% 78%
1.5 C gcc #6 2.03 2,460 1930 5.65 92% 98% 89% 0%
1.5 Go #3 2.08 3,560 1358 5.61 80% 37% 76% 78%
1.5 F# .NET Core #4 2.14 68,096 1342 7.84 91% 98% 89% 88%
1.6 Java  #5 2.22 45,172 2473 5.99 61% 50% 98% 60%
1.7 C# .NET Core 2.37 46,416 2098 8.53 88% 95% 89% 89%
1.9 C# .NET Core #3 2.69 46,576 1916 9.13 82% 97% 80% 81%
2.0 Go #2 2.73 11,156 1404 6.56 60% 80% 48% 53%
2.1 C# .NET Core #4 2.98 178,300 1524 9.73 76% 80% 79% 91%
2.2 Swift #2 3.02 8,720 1945 4.64 20% 39% 47% 48%
2.3 Julia #6 3.16 373,700 1203 9.06 63% 63% 87% 73%
2.4 Fortran Intel #4 3.35 8 1351 3.39 1% 0% 100% 0%
2.4 Node js #5 3.40 65,372 2047 9.80 75% 64% 57% 93%
2.5 Rust #3 3.52 1,200 1233 3.59 1% 64% 37% 0%
2.9 C gcc #5 3.99 844 1281 4.25 0% 5% 100% 2%
2.9 C++ g++ #2 4.10 1,760 1127 4.21 1% 1% 100% 0%
3.0 C++ g++ #3 4.15 1,756 1307 4.20 1% 100% 0% 0%
3.0 Ada 2012 GNAT #2 4.18 2,036 2153 4.27 1% 0% 100% 1%
3.0 Ada 2012 GNAT #5 4.19 2,036 2221 4.26 0% 1% 0% 100%
3.5 Julia #5 4.92 201,400 950 5.37 99% 3% 3% 3%
3.6 Julia #4 5.01 189,584 1049 5.82 2% 12% 99% 3%
3.7 Java #4 5.10 37,316 1524 5.33 3% 20% 80% 2%
4.2 C++ g++ 5.85 1,760 1057 5.93 1% 100% 0% 1%
4.4 C gcc #4 6.10 776 1240 6.27 100% 1% 2% 0%
4.4 OCaml #6 6.12 202,428 1189 6.17 0% 100% 1% 0%
4.5 C++ g++ #4 6.34 828 1287 6.40 0% 0% 100% 0%
4.7 Swift #3 6.53 26,980 2090 19.54 80% 85% 64% 70%
4.8 C# .NET Core #2 6.76 33,932 1195 6.88 1% 1% 0% 100%
5.1 Go 7.08 1,600 1053 7.29 0% 40% 62% 1%
5.2 Rust 7.22 876 1237 7.52 2% 100% 0% 2%
5.2 Rust #6 7.29 124,068 955 7.42 1% 100% 1% 0%
5.2 Rust #4 7.29 124,064 939 7.41 1% 1% 0% 100%
5.3 Lisp SBCL #6 7.34 18,092 1757 7.41 0% 1% 100% 0%
5.3 C gcc 7.46 840 1206 7.57 0% 1% 0% 100%
5.6 Java #2 7.83 38,688 1257 8.15 100% 2% 1% 1%
6.2 F# .NET Core #2 8.64 291,180 1308 17.03 77% 45% 48% 27%
6.2 OCaml #3 8.71 2,816 1071 8.80 0% 62% 38% 1%
6.3 Chapel #3 8.75 5,572 1217 9.26 100% 2% 2% 2%
6.6 Node js #4 9.23 38,460 1785 9.54 0% 2% 78% 23%
6.7 Dart 9.41 120,888 1403 9.84 1% 70% 30% 3%
6.8 F# .NET Core 9.43 34,600 1002 9.61 0% 99% 2% 1%
6.9 Haskell GHC 9.58 5,344 969 10.50 4% 100% 4% 1%
6.9 Fortran Intel #3 9.62 8 1215 9.74 89% 0% 0% 12%
7.3 Free Pascal #5 10.23 8 1220 10.42 100% 1% 1% 0%
7.5 TypeScript 10.42 37,888 1229 10.81 98% 2% 2% 1%
7.6 Lisp SBCL #3 10.58 18,012 1587 10.69 0% 0% 0% 100%
7.6 Ada 2012 GNAT 10.62 1,972 1379 10.68 0% 100% 0% 0%
7.9 Node js #3 11.05 35,888 1128 11.46 1% 2% 1% 100%
8.1 Fortran Intel 11.32 8 1190 11.47 1% 25% 0% 75%
8.2 Swift 11.40 7,288 1526 11.57 1% 100% 0% 0%
9.9 Haskell GHC #2 13.78 450,080 1319 46.64 81% 90% 83% 85%
10 Haskell GHC #3 13.91 884,396 1088 28.78 56% 70% 44% 37%
13 Racket #3 17.54 38,132 1280 17.78 23% 1% 0% 77%
13 Lisp SBCL 17.61 24,100 1424 17.71 100% 0% 0% 0%
13 Lisp SBCL #2 18.11 18,012 1622 18.26 0% 0% 1% 100%
24 Julia #3 33.26 179,748 896 34.00 100% 1% 1% 0%
31 Racket 43.67 36,804 1066 44.20 1% 83% 17% 1%
32 Node js #2 44.92 69,964 931 47.85 43% 25% 19% 19%
35 VW Smalltalk 48.48 55,160 1539 49.05 0% 16% 84% 1%
35 Erlang HiPE #2 48.54 23,740 1164 53.00 61% 16% 1% 30%
37 Lua #3 51.34 3,056 1061 51.87 0% 0% 1% 100%
37 Ruby #6 51.74 123,240 1069 55.08 43% 44% 2% 17%
38 Lua #2 53.56 2,984 1061 54.09 100% 1% 0% 0%
39 PHP #3 53.82 8,056 1062 54.91 1% 0% 100% 1%
46 Python 3 #5 63.55 844,180 1947 129.71 40% 71% 33% 61%
47 Node js 65.24 41,948 809 69.30 17% 60% 14% 14%
57 Ruby #3 79.15 123,264 1002 82.82 2% 33% 69% 1%
63 PHP #2 88.42 8,072 1050 89.51 0% 0% 100% 1%
65 Perl 90.15 54,920 871 91.86 20% 1% 1% 80%
67 Python 3 #2 93.53 8,368 1121 94.44 76% 0% 0% 25%
68 Python 3 #3 94.45 8,348 1003 95.51 100% 1% 0% 0%
88 Python 3 122.70 8,148 817 125.74 49% 46% 5% 2%
93 Erlang HiPE 129.44 23,840 1039 183.89 100% 23% 19% 0%
103 Ruby #4 143.13 226,708 913 151.50 25% 16% 62% 3%
104 Ruby #5 145.84 26,024 995 153.09 3% 41% 60% 1%
128 Ruby #2 179.24 145,640 743 185.18 58% 2% 42% 2%
146 Perl #4 203.78 6,140 966 209.93 90% 1% 2% 11%
207 Perl #2 288.98 6,124 922 296.50 1% 2% 100% 1%
342 Matz's Ruby #3 7 min 101,796 1020 8 min 13% 85% 0% 3%
356 Matz's Ruby #6 8 min 101,864 1071 8 min 56% 32% 1% 14%
385 Matz's Ruby #4 8 min 275,620 913 9 min 1% 0% 100% 1%
419 Matz's Ruby #5 9 min 4,344 995 9 min 6% 65% 14% 17%
500 Matz's Ruby #2 11 min 248,184 743 11 min 0% 5% 96% 0%