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 3,024 1906 4.54 76% 77% 76% 83%
1.1 Rust #5 1.47 2,984 1961 4.93 83% 88% 83% 84%
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 100,352 1350 6.07 93% 92% 91% 98%
1.3 Chapel #2 1.70 5,764 1392 5.81 99% 82% 82% 85%
1.4 C gcc #6 1.86 2,612 1930 5.46 89% 9% 97% 100%
1.6 Go #3 2.08 3,640 1358 5.69 84% 66% 70% 56%
1.7 C# .NET Core 2.21 67,936 2098 8.22 93% 93% 91% 97%
1.7 Java  #5 2.29 43,724 2473 6.16 67% 76% 59% 70%
1.9 C# .NET Core #3 2.53 67,956 1916 8.64 83% 83% 82% 95%
1.9 Fortran Intel #4 2.56 8 1351 2.55 1% 100% 0% 0%
2.1 Go #2 2.72 10,808 1404 6.31 57% 47% 79% 49%
2.1 Swift #2 2.77 8,592 1953 4.35 77% 71% 7% 6%
2.1 C gcc #5 2.77 796 1281 2.77 2% 0% 100% 1%
2.1 Java AOT #5 2.81 11,052 2473 7.26 99% 78% 78% 6%
2.2 C# .NET Core #4 2.88 181,204 1524 9.32 81% 77% 76% 92%
2.6 Rust #3 3.46 2,956 1233 3.46 1% 100% 0% 0%
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.8 Java #4 5.06 36,588 1524 5.31 3% 100% 2% 2%
3.9 C++ g++ #2 5.15 1,864 1127 5.14 2% 2% 1% 100%
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 Rust #4 6.81 124,312 939 6.81 1% 1% 0% 100%
5.2 C# .NET Core #2 6.83 35,140 1195 6.83 99% 0% 1% 2%
5.4 Go 7.16 1,472 1053 7.15 0% 1% 100% 0%
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.7 Rust 7.44 1,808 1237 7.43 58% 11% 4% 46%
5.9 C gcc 7.71 832 1206 7.71 1% 0% 1% 100%
6.1 Java #2 7.96 37,216 1257 8.26 2% 99% 1% 3%
6.3 F# .NET Core #2 8.32 314,460 1308 16.38 70% 41% 46% 41%
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 8.93 35,476 1002 8.94 0% 99% 1% 0%
7.0 Chapel 9.15 5,040 1218 9.14 100% 1% 0% 1%
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.6 Fortran Intel 10.04 8 1190 10.04 0% 1% 100% 0%
7.7 Lisp SBCL #3 10.19 17,700 1587 10.18 0% 34% 67% 0%
7.8 Fortran Intel #3 10.24 8 1215 10.24 31% 0% 1% 69%
7.9 Node js #3 10.41 34,920 1128 10.42 85% 17% 0% 0%
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.1 Swift 11.93 7,280 1527 11.92 0% 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.41 131,316 1148 42.32 41% 44% 0% 17%
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.52 131,464 1050 51.42 9% 92% 2% 3%
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 71.20 131,140 1060 71.11 65% 36% 0% 0%
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 Failed