The Computer Language
Benchmarks Game

fasta

program source code, command-line and measurements

× source secs mem gz cpu cpu load
1.0 C gcc #2 1.32 2,892 2268 5.22 100% 100% 99% 99%
1.0 C++ g++ #7 1.33 1,956 2711 4.16 79% 79% 79% 79%
1.0 C gcc #7 1.36 2,876 2011 5.25 96% 96% 98% 100%
1.1 Rust #2 1.47 2,988 1906 4.97 88% 83% 90% 84%
1.1 Rust #5 1.48 3,004 1961 4.57 76% 83% 76% 77%
1.1 C++ g++ #5 1.48 4,340 2344 5.28 90% 89% 90% 90%
1.1 C++ g++ #6 1.49 4,300 2324 5.29 89% 89% 89% 89%
1.2 F# .NET Core #3 1.63 105,528 1350 6.08 93% 91% 91% 99%
1.3 Chapel #4 1.66 6,140 1398 5.70 99% 81% 82% 82%
1.4 C gcc #6 1.86 2,612 1930 5.46 89% 9% 97% 100%
1.6 Go #3 2.07 3,168 1358 5.87 39% 83% 84% 79%
1.6 C# .NET Core 2.15 68,048 2098 7.97 90% 95% 95% 91%
1.8 Java  #5 2.32 42,556 2473 6.24 73% 85% 49% 63%
1.9 C# .NET Core #3 2.45 68,316 1916 8.48 83% 87% 96% 83%
2.1 Go #2 2.72 11,052 1404 6.34 65% 57% 65% 47%
2.1 C gcc #5 2.77 796 1281 2.77 2% 0% 100% 1%
2.1 Swift #2 2.79 8,504 1953 4.38 4% 96% 43% 18%
2.1 Java AOT #5 2.81 11,052 2473 7.26 99% 78% 78% 6%
2.2 C# .NET Core #4 2.89 176,852 1524 9.37 77% 81% 78% 90%
2.5 Fortran Intel #4 3.35 8 1351 3.35 1% 100% 1% 0%
2.7 Rust #3 3.49 2,976 1233 3.49 1% 7% 93% 1%
3.1 Ada 2012 GNAT #5 4.12 2,116 2221 4.12 1% 100% 1% 0%
3.1 Ada 2012 GNAT #2 4.14 2,112 2153 4.14 2% 0% 1% 100%
3.2 C++ g++ #3 4.22 1,892 1307 4.22 1% 1% 100% 0%
3.9 C++ g++ #2 5.15 1,864 1127 5.14 2% 2% 1% 100%
3.9 Java #4 5.16 35,892 1524 5.35 98% 3% 3% 2%
4.6 OCaml #6 6.08 197,048 1189 6.08 1% 0% 100% 0%
4.6 C gcc #4 6.11 828 1240 6.11 1% 0% 1% 100%
4.6 C++ g++ #4 6.11 768 1287 6.11 2% 1% 1% 100%
5.2 C# .NET Core #2 6.84 35,184 1195 6.84 1% 34% 67% 1%
5.3 Go 6.91 1,476 1053 6.91 1% 100% 0% 0%
5.3 Rust #4 6.99 124,304 939 6.98 0% 0% 1% 100%
5.5 C++ g++ 7.23 1,804 1057 7.23 0% 0% 1% 100%
5.6 Java AOT #4 7.38 6,840 1524 7.37 1% 1% 100% 0%
5.6 Rust 7.43 1,728 1237 7.42 1% 100% 1% 0%
5.9 C gcc 7.71 832 1206 7.71 1% 0% 1% 100%
6.0 Java #2 7.88 36,244 1257 8.09 99% 3% 1% 1%
6.4 F# .NET Core #2 8.36 313,236 1308 16.27 78% 36% 44% 39%
6.7 Dart 8.86 134,248 1403 9.34 2% 99% 3% 2%
6.8 OCaml #3 8.88 2,820 1071 8.88 0% 0% 0% 100%
6.8 F# .NET Core 9.01 35,772 1002 9.01 1% 100% 1% 0%
7.0 Chapel #3 9.27 5,488 1210 9.25 100% 1% 2% 0%
7.2 Node js #4 9.43 36,744 1785 9.48 93% 8% 0% 0%
7.3 Haskell GHC 9.56 5,164 969 10.09 100% 2% 2% 3%
7.5 TypeScript 9.92 34,404 1229 9.92 21% 11% 0% 69%
7.7 Lisp SBCL #3 10.19 17,700 1587 10.18 0% 34% 67% 0%
7.9 Node js #3 10.41 34,920 1128 10.42 85% 17% 0% 0%
8.0 Fortran Intel #3 10.58 8 1215 10.58 1% 0% 100% 1%
8.3 Free Pascal #4 10.85 8 1140 10.85 100% 0% 1% 0%
8.3 Java AOT #2 10.91 14,472 1257 10.90 0% 1% 100% 0%
9.0 Swift 11.78 7,176 1527 11.78 1% 100% 0% 0%
9.1 Fortran Intel 12.03 8 1190 12.02 1% 0% 0% 100%
10 Ada 2012 GNAT 13.20 2,024 1379 13.19 1% 100% 0% 1%
10 Haskell GHC #2 13.71 447,320 1319 45.34 88% 82% 86% 78%
12 Lisp SBCL #6 15.22 50,020 1757 15.20 100% 1% 0% 0%
13 Racket #3 17.47 26,148 1280 17.46 0% 1% 100% 0%
14 Lisp SBCL #2 18.71 22,624 1622 18.71 0% 1% 0% 100%
14 Lisp SBCL 18.78 22,560 1424 18.77 0% 1% 0% 100%
22 Erlang HiPE #2 29.08 24,468 1164 30.93 75% 27% 4% 2%
32 Node js #2 41.63 571,824 931 48.40 19% 34% 30% 35%
32 Hack #4 42.43 131,076 1148 42.35 0% 0% 1% 100%
32 Racket 42.62 24,936 1066 42.62 1% 0% 0% 100%
37 VW Smalltalk 48.30 54,820 1573 48.29 17% 0% 0% 83%
37 Truffle Ruby #6 48.47 518,736 1069 84.20 47% 47% 40% 40%
38 Lua #2 50.08 2,920 1061 50.06 0% 7% 94% 0%
39 Lua #3 50.71 2,968 1061 50.70 0% 100% 1% 0%
39 Hack #2 51.34 131,324 1050 51.26 1% 0% 100% 1%
42 Ruby #6 55.67 104,364 1069 96.83 53% 24% 78% 22%
45 PHP #3 59.12 9,412 1062 59.11 40% 0% 1% 60%
48 Python 3 #5 62.88 680,736 1947 141.15 60% 56% 48% 62%
48 Node js 62.98 700,948 809 71.65 29% 31% 32% 24%
54 Hack #3 70.99 131,356 1060 70.90 1% 0% 100% 1%
59 Truffle Ruby #3 77.10 515,776 1002 113.01 40% 46% 31% 31%
63 Ruby #3 82.67 103,480 1002 123.22 58% 27% 57% 12%
74 Truffle Ruby #5 97.25 529,692 995 142.96 55% 38% 28% 27%
75 PHP #2 98.92 9,332 1050 98.90 23% 0% 1% 77%
76 Perl 99.64 54,044 871 99.61 0% 1% 0% 100%
83 Truffle Ruby #4 108.96 722,808 913 160.82 56% 54% 21% 18%
84 Erlang HiPE 110.16 24,424 1039 163.47 51% 20% 49% 33%
85 Python 3 #2 111.66 8,344 1121 111.64 0% 100% 1% 0%
87 Python 3 #3 114.42 8,340 1003 114.33 51% 0% 47% 4%
104 Ruby #4 136.80 215,924 913 177.47 57% 13% 58% 5%
108 JRuby #3 142.34 815,312 1002 151.52 7% 63% 23% 18%
109 Ruby #5 143.30 12,892 995 184.51 18% 13% 97% 4%
122 Python 3 160.07 8,148 817 160.02 49% 0% 52% 0%
154 Ruby #2 202.18 208,032 743 242.03 5% 16% 97% 3%
161 Perl #4 212.37 4,864 966 212.25 0% 48% 7% 46%
214 Perl #2 281.33 5,040 922 281.21 0% 1% 17% 83%
302 JRuby 6 min 999,656 770 6 min 2% 3% 57% 43%
395 Matz's Ruby #4 8 min 274,280 913 8 min 0% 1% 88% 12%
433 Matz's Ruby #5 9 min 4,264 995 9 min 95% 6% 0% 0%
519 Matz's Ruby #2 11 min 248,148 743 11 min 0% 1% 100% 0%
  Truffle Ruby #2 17 min 1,125,292 743 26 min 29% 31% 45% 44%
Matz's Ruby #3 Failed
Matz's Ruby #6 Failed
Swift #3 Bad Output