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 #2 1.47 3,032 1906 4.97 83% 84% 83% 90%
1.1 Rust #5 1.47 2,984 1961 4.56 83% 77% 77% 76%
1.1 C++ g++ #6 1.48 4,472 2324 5.07 86% 86% 86% 86%
1.2 Chapel #4 1.63 5,640 1398 5.61 100% 82% 82% 82%
1.2 F# .NET Core #3 1.63 103,520 1350 6.07 96% 93% 91% 96%
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.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.1 Swift #2 2.77 8,584 1953 4.35 79% 24% 48% 4%
2.2 C# .NET Core #4 2.88 169,772 1524 9.31 75% 91% 82% 77%
2.5 Fortran Intel #4 3.34 8 1351 3.33 0% 2% 100% 0%
2.6 Rust #3 3.43 2,828 1233 3.43 100% 0% 1% 0%
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%
5.0 Rust 6.58 1,808 1237 6.57 1% 100% 0% 0%
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 124,432 939 6.98 100% 0% 0% 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 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 Node js #4 9.24 36,192 1785 9.28 0% 0% 1% 100%
7.1 Haskell GHC 9.47 4,984 969 9.95 83% 2% 3% 18%
7.4 TypeScript 9.79 35,264 1229 9.80 30% 17% 5% 49%
7.8 Node js #3 10.36 34,516 1128 10.37 0% 38% 62% 1%
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%
9.0 Swift 11.90 7,100 1527 11.90 0% 0% 1% 100%
10 Haskell GHC #2 13.70 447,024 1319 45.45 89% 82% 82% 81%
13 Racket #3 17.73 46,448 1280 17.72 0% 100% 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.34 40,572 1066 42.32 92% 0% 1% 8%
33 Node js #2 43.22 567,396 931 50.01 35% 25% 29% 28%
36 VW Smalltalk 48.01 54,700 1573 47.99 0% 1% 100% 0%
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.70 98,956 1069 106.36 69% 54% 15% 30%
50 Node js 65.97 712,984 809 74.84 26% 23% 31% 35%
61 Truffle Ruby #3 81.23 516,300 1002 122.97 33% 19% 19% 83%
68 Ruby #3 89.76 96,792 1002 132.15 32% 38% 61% 18%
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%
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 Python 3 141.69 8,016 817 141.45 46% 1% 1% 54%
109 Ruby #4 144.37 236,388 913 186.95 17% 100% 3% 12%
110 Ruby #5 145.23 16,744 995 187.08 8% 56% 43% 23%
149 Perl #4 197.20 5,404 966 196.99 0% 100% 1% 0%
149 Ruby #2 197.32 212,568 743 239.16 33% 10% 12% 68%
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
Swift #3 Bad Output