The Computer Language
Benchmarks Game

fasta

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 C++ g++ #7 1.33 1,740 2711 4.29 81% 81% 81% 82%
1.0 C gcc #2 1.36 2,864 2268 5.41 99% 100% 100% 99%
1.1 C gcc #7 1.40 2,832 2011 5.45 97% 99% 97% 99%
1.1 Rust #5 1.46 2,012 1961 4.65 79% 78% 84% 79%
1.1 Rust #2 1.46 2,008 1906 4.56 77% 78% 78% 83%
1.1 C++ g++ #6 1.48 4,472 2324 5.07 86% 86% 86% 86%
1.2 F# .NET Core #3 1.63 103,520 1350 6.07 96% 93% 91% 96%
1.2 Chapel #4 1.63 5,640 1398 5.61 100% 82% 82% 82%
1.5 C gcc #6 2.01 2,552 1930 5.56 8% 92% 94% 89%
1.6 Go #3 2.07 2,620 1358 5.86 84% 84% 61% 57%
1.7 C# .NET Core 2.27 68,140 2098 8.40 94% 90% 92% 98%
1.8 Java  #5 2.32 42,212 2473 6.30 65% 85% 47% 76%
1.8 Swift #3 2.37 33,736 2090 7.12 89% 89% 64% 61%
1.9 C# .NET Core #3 2.47 68,040 1916 8.33 81% 96% 84% 80%
2.0 Go #2 2.71 10,468 1404 6.34 80% 53% 63% 38%
2.1 Substrate VM #5 2.76 8,540 2473 7.78 73% 85% 39% 87%
2.2 C# .NET Core #4 2.88 169,772 1524 9.31 75% 91% 82% 77%
2.2 Swift #2 2.88 8,288 1945 4.47 7% 58% 19% 75%
2.5 Fortran Intel #4 3.34 8 1351 3.33 0% 2% 100% 0%
2.6 Rust #3 3.40 1,232 1233 3.40 0% 100% 5% 1%
3.0 C gcc #5 3.97 888 1281 3.97 2% 0% 1% 100%
3.1 Ada 2012 GNAT #2 4.12 1,884 2153 4.12 10% 1% 0% 90%
3.1 C++ g++ #3 4.13 1,768 1307 4.13 0% 2% 1% 100%
3.1 Ada 2012 GNAT #5 4.13 1,884 2221 4.13 100% 1% 0% 0%
3.1 C++ g++ #2 4.14 1,768 1127 4.14 1% 100% 1% 1%
3.9 Java #4 5.15 35,652 1524 5.35 99% 3% 2% 1%
4.4 C++ g++ 5.83 1,768 1057 5.83 1% 0% 3% 100%
4.5 OCaml #6 6.03 198,704 1189 6.02 1% 0% 1% 100%
4.6 C gcc #4 6.09 760 1240 6.09 100% 0% 0% 1%
4.7 C++ g++ #4 6.19 828 1287 6.18 100% 0% 0% 1%
4.9 Rust 6.49 920 1237 6.48 1% 0% 1% 100%
5.1 C# .NET Core #2 6.81 35,756 1195 6.82 1% 1% 1% 99%
5.2 Go 6.91 1,472 1053 6.90 48% 0% 0% 53%
5.3 Rust #4 6.98 123,844 939 6.98 1% 100% 2% 0%
5.3 C gcc 7.03 764 1206 7.02 0% 100% 1% 0%
5.6 Substrate VM #4 7.47 4,696 1524 7.47 100% 0% 0% 0%
5.9 Lisp SBCL #6 7.82 17,472 1757 7.81 0% 100% 1% 0%
6.0 Java #2 7.94 36,128 1257 8.19 2% 100% 1% 2%
6.3 F# .NET Core #2 8.41 316,112 1308 16.49 76% 42% 49% 32%
6.6 Dart 8.73 122,704 1403 9.22 97% 2% 3% 4%
6.6 OCaml #3 8.76 2,876 1071 8.76 0% 100% 1% 0%
6.7 F# .NET Core 8.90 36,632 1002 8.91 2% 0% 0% 99%
6.9 Chapel #3 9.08 5,172 1210 9.07 100% 18% 4% 6%
6.9 Node js #4 9.15 37,052 1785 9.20 27% 0% 1% 74%
6.9 Dart app-jit 9.17 79,572 1403 9.35 1% 2% 1% 99%
6.9 Fortran Intel #3 9.17 8 1215 9.17 1% 2% 0% 100%
7.0 Julia #2 9.33 199,104 1192 9.64 2% 2% 100% 1%
7.1 Haskell GHC 9.47 4,984 969 9.95 83% 2% 3% 18%
7.4 TypeScript 9.78 35,200 1229 9.78 0% 100% 0% 1%
7.8 Node js #3 10.35 34,784 1128 10.35 85% 0% 1% 15%
8.3 Ada 2012 GNAT 10.97 1,876 1379 10.97 0% 1% 100% 0%
8.3 Lisp SBCL #3 11.00 17,368 1587 10.99 0% 1% 1% 100%
8.3 Free Pascal #4 11.02 8 1140 11.01 1% 0% 100% 0%
8.3 Fortran Intel 11.03 8 1190 11.03 1% 0% 0% 100%
8.3 Substrate VM #2 11.05 12,476 1257 11.04 1% 0% 1% 100%
8.6 Swift 11.37 7,096 1526 11.36 0% 100% 1% 0%
9.0 Julia #3 11.89 175,144 896 12.20 2% 1% 3% 98%
10 Haskell GHC #3 13.43 647,476 1088 26.57 90% 34% 43% 35%
10 Haskell GHC #2 13.70 447,024 1319 45.45 89% 82% 82% 81%
13 Racket #3 17.64 47,908 1280 17.63 100% 1% 0% 0%
14 Lisp SBCL 17.99 22,820 1424 17.99 0% 1% 1% 100%
14 Lisp SBCL #2 18.08 22,864 1622 18.07 100% 0% 0% 0%
25 Erlang HiPE #2 32.67 24,032 1164 36.11 99% 3% 4% 4%
32 Racket 42.20 44,248 1066 42.19 18% 0% 1% 82%
36 VW Smalltalk 48.01 54,700 1573 47.99 0% 1% 100% 0%
37 Node js #2 48.41 566,392 931 55.22 19% 44% 36% 16%
38 Truffle Ruby #6 50.87 529,252 1069 92.34 39% 38% 58% 48%
39 Lua #3 51.55 2,964 1061 51.54 0% 98% 2% 0%
39 Lua #2 51.94 2,924 1061 51.85 0% 1% 1% 100%
42 PHP #3 56.22 9,632 1062 56.20 2% 100% 0% 1%
48 Python 3 #5 63.19 680,688 1947 135.52 62% 70% 63% 22%
48 Ruby #6 63.32 98,996 1069 106.23 39% 28% 61% 42%
55 Node js 73.32 707,512 809 84.51 30% 28% 23% 35%
61 Truffle Ruby #3 81.23 516,300 1002 122.97 33% 19% 19% 83%
68 Perl 90.30 54,352 871 90.04 42% 1% 58% 0%
71 PHP #2 94.50 9,500 1050 94.48 0% 100% 1% 0%
72 Ruby #3 94.88 92,476 1002 137.42 18% 25% 43% 61%
73 Truffle Ruby #5 96.12 525,052 995 142.71 30% 69% 34% 17%
84 Python 3 #2 111.86 8,140 1121 111.84 0% 95% 6% 0%
86 Python 3 #3 113.97 8,108 1003 113.94 1% 80% 20% 0%
86 Truffle Ruby #4 114.06 867,876 913 182.74 51% 25% 52% 33%
94 JRuby #3 125.13 828,820 1002 135.94 23% 16% 26% 46%
103 Erlang HiPE 136.27 23,504 1039 274.02 44% 48% 53% 57%
107 Ruby #4 141.23 221,476 913 183.34 11% 21% 84% 15%
107 Python 3 141.69 8,016 817 141.45 46% 1% 1% 54%
107 Ruby #5 142.42 16,760 995 184.40 61% 29% 25% 17%
149 Perl #4 197.20 5,404 966 196.99 0% 100% 1% 0%
159 Ruby #2 211.23 212,388 743 253.31 16% 4% 35% 66%
213 Perl #2 281.68 5,368 922 281.49 11% 0% 0% 89%
255 JRuby 5 min 1,002,824 770 5 min 51% 11% 18% 26%
392 Matz's Ruby #4 8 min 274,280 913 8 min 0% 1% 88% 12%
430 Matz's Ruby #5 9 min 4,264 995 9 min 95% 6% 0% 0%
515 Matz's Ruby #2 11 min 248,148 743 11 min 0% 1% 100% 0%
  Truffle Ruby #2 17 min 1,135,300 743 26 min 54% 23% 25% 50%
C++ g++ #5 Timed Out
Julia Bad Output
Matz's Ruby #3 Failed
Matz's Ruby #6 Failed