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 #5 1.47 2,980 1961 4.47 78% 75% 75% 82%
1.1 Rust #2 1.48 2,996 1906 4.42 80% 74% 74% 73%
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.26 67,756 2098 8.39 92% 95% 96% 91%
1.7 Java  #5 2.29 43,724 2473 6.16 67% 76% 59% 70%
1.9 C# .NET Core #3 2.45 67,872 1916 8.26 83% 83% 79% 96%
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 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.89 184,116 1524 9.32 80% 76% 77% 93%
2.3 Swift #2 3.04 8,548 1953 4.62 3% 59% 0% 90%
2.9 Rust #3 3.77 2,948 1233 3.77 0% 0% 1% 100%
3.1 Ada 2005 GNAT #5 4.12 2,116 2221 4.12 1% 100% 1% 0%
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.00 199,732 1189 5.99 0% 2% 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 34,820 1195 6.85 2% 1% 1% 100%
5.3 Rust #4 6.99 124,324 939 6.98 0% 1% 100% 1%
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.51 2,088 1237 7.51 1% 100% 0% 0%
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 Dart 8.23 35,744 1403 8.31 1% 0% 99% 2%
6.3 F# .NET Core #2 8.32 314,460 1308 16.38 70% 41% 46% 41%
6.7 OCaml #3 8.88 2,836 1071 8.87 100% 0% 1% 0%
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.1 Node js #4 9.28 37,104 1785 9.33 0% 100% 1% 0%
7.3 Haskell GHC 9.56 5,164 969 10.09 100% 2% 2% 3%
7.6 Fortran Intel 10.04 8 1190 10.04 0% 1% 100% 0%
7.7 TypeScript 10.10 34,304 1229 10.11 2% 98% 1% 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%
8.0 Node js #3 10.58 34,732 1128 10.59 17% 47% 27% 10%
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%
8.9 Swift 11.76 7,108 1527 11.76 1% 100% 0% 0%
10 Ada 2005 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%
21 Erlang HiPE #2 27.90 21,756 1164 29.15 2% 1% 47% 54%
32 Racket 42.62 24,936 1066 42.62 1% 0% 0% 100%
32 Hack #4 42.73 114,632 1147 42.66 100% 1% 1% 0%
36 Node js #2 47.47 585,480 931 54.91 36% 26% 21% 33%
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.56 115,208 1047 51.49 100% 1% 1% 0%
45 PHP #3 59.12 9,412 1062 59.11 40% 0% 1% 60%
45 Python 3 #5 59.47 15,996 1947 138.97 55% 55% 63% 66%
52 Node js 68.31 716,508 809 75.86 17% 33% 41% 21%
55 Hack #3 72.29 115,544 1061 72.21 69% 32% 0% 1%
57 Ruby #6 74.75 107,448 1069 74.60 1% 6% 100% 2%
59 Truffle Ruby #3 77.10 515,776 1002 113.01 40% 46% 31% 31%
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%
76 Ruby #3 99.67 106,544 1002 99.65 0% 0% 100% 0%
80 Erlang HiPE 105.45 20,868 1039 151.65 33% 39% 49% 24%
83 Truffle Ruby #4 108.96 722,808 913 160.82 56% 54% 21% 18%
83 Python 3 #3 109.39 10,460 1003 109.36 0% 0% 0% 100%
83 Python 3 #2 109.55 10,456 1121 109.53 100% 1% 0% 0%
100 JRuby #3 131.71 823,720 1002 141.58 9% 19% 27% 53%
109 Python 3 143.82 10,236 817 143.64 100% 1% 0% 1%
114 Ruby #4 149.34 191,216 913 149.19 0% 7% 0% 94%
117 Ruby #5 154.38 8,892 995 154.24 0% 0% 100% 1%
154 Ruby #2 202.55 204,492 743 202.48 26% 75% 0% 0%
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%
299 JRuby 6 min 1,034,820 770 6 min 7% 12% 32% 54%
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