The Computer Language
Benchmarks Game

fasta

program source code, command-line and measurements

× source secs KB gz cpu cpu load
1.0 C gcc #7 1.36 2,800 1993 5.26 96% 97% 100% 97%
1.1 C++ g++ #5 1.50 4,092 2313 5.17 87% 87% 87% 87%
1.2 Rust #2 1.58 20,536 1887 4.68 72% 71% 72% 84%
1.3 C gcc #6 1.83 2,532 1914 5.38 98% 100% 1% 98%
1.5 Go #3 1.97 3,456 1344 5.76 76% 71% 74% 73%
1.6 Java  #5 2.20 37,072 2457 6.37 81% 68% 72% 72%
1.8 C# .NET Core #3 2.37 88,596 1904 8.44 89% 86% 86% 98%
1.8 Fortran Intel #4 2.44 512 1327 2.44 2% 0% 1% 100%
2.1 C# Mono LLVM #3 2.85 58,088 1904 9.00 82% 87% 73% 77%
2.2 C# .NET Core #4 2.98 191,308 1505 10.68 87% 87% 97% 89%
2.2 Go #2 3.03 11,156 1388 6.48 53% 70% 44% 50%
2.4 C gcc #5 3.27 864 1261 3.26 1% 1% 100% 2%
3.0 Ada 2005 GNAT #5 4.07 2,008 2186 4.06 1% 100% 0% 1%
3.1 C++ g++ #3 4.21 1,792 1286 4.20 0% 100% 2% 0%
3.1 C# Mono LLVM #4 4.21 86,560 1505 10.42 57% 70% 65% 58%
3.2 Fortran Intel #3 4.33 508 1190 4.33 0% 1% 100% 0%
3.4 C++ g++ #2 4.56 1,772 1105 4.55 1% 0% 100% 1%
3.7 Java #4 5.03 30,800 1507 5.10 1% 98% 2% 3%
4.2 Rust 5.68 6,036 1211 5.68 1% 100% 1% 4%
4.3 OCaml #6 5.86 203,780 1161 5.85 0% 1% 100% 0%
4.4 Fortran Intel 6.03 508 1155 6.03 0% 0% 100% 3%
4.5 C gcc #4 6.06 868 1221 6.05 1% 100% 0% 1%
4.5 C++ g++ #4 6.15 784 1266 6.15 100% 1% 1% 0%
4.6 C++ g++ 6.23 1,632 1033 6.22 0% 2% 100% 1%
4.7 C# Mono LLVM #2 6.38 38,196 1180 6.38 1% 0% 7% 93%
4.8 Clojure #6 6.49 71,088 1653 7.80 13% 88% 9% 13%
4.9 C# .NET Core #2 6.58 36,528 1180 6.58 2% 1% 0% 100%
4.9 Go 6.67 1,016 1036 6.67 80% 1% 0% 21%
5.4 Scala #3 7.35 36,560 1053 7.47 78% 23% 1% 2%
5.7 C gcc 7.69 812 1185 7.69 100% 1% 1% 1%
5.8 Java #2 7.89 29,752 1240 8.02 4% 41% 1% 57%
5.8 Ada 2005 GNAT 7.92 2,024 1346 7.91 1% 100% 1% 1%
6.3 OCaml #3 8.54 2,032 1042 8.53 0% 1% 1% 100%
6.4 Dart 8.73 30,552 1386 8.81 94% 2% 7% 1%
7.0 Clojure #5 9.52 75,108 1839 11.18 8% 12% 5% 94%
7.0 F# .NET Core 9.55 37,260 978 9.54 100% 0% 0% 1%
7.2 Lisp SBCL #3 9.73 16,552 1579 9.73 0% 1% 1% 100%
8.0 Scala 10.80 42,432 1080 10.95 86% 15% 1% 2%
8.1 Pascal Free Pascal #4 10.99 8 1112 10.98 100% 1% 0% 1%
8.2 Swift 11.17 6,104 1552 11.16 1% 0% 100% 1%
9.4 TypeScript 12.76 32,544 1205 12.75 0% 1% 100% 1%
9.8 Node.js #3 13.33 28,860 1101 13.32 100% 1% 1% 0%
14 Racket #3 18.40 21,780 1276 18.39 100% 0% 1% 1%
14 Lisp SBCL #2 18.63 19,624 1617 18.62 1% 0% 1% 100%
14 Lisp SBCL 19.28 19,656 1419 19.27 100% 1% 1% 0%
15 Chapel 20.59 28,868 1216 20.59 100% 0% 0% 1%
23 Node.js #2 30.74 178,668 965 30.71 1% 7% 93% 1%
24 Erlang HiPE #2 32.24 29,896 1164 33.77 3% 72% 30% 1%
24 Lisp SBCL #6 32.28 55,204 1751 32.24 40% 1% 60% 1%
28 Hack #4 38.30 310,168 1109 38.28 1% 100% 0% 1%
33 Racket 44.95 19,880 1054 44.95 77% 24% 1% 1%
35 Smalltalk VW 47.92 53,860 1315 47.89 100% 1% 1% 1%
37 Hack #2 49.72 308,252 1003 49.70 2% 1% 99% 3%
40 Erlang #2 54.48 23,568 1164 56.48 99% 2% 4% 1%
44 PHP #3 59.28 7,936 1030 59.26 1% 0% 1% 100%
51 Hack #3 69.65 309,916 1029 69.63 99% 1% 1% 0%
60 Ruby JRuby #3 81.66 818,584 973 88.98 81% 9% 16% 6%
72 Node.js 97.45 33,396 840 97.41 1% 0% 1% 100%
72 Perl 98.16 53,760 838 98.12 99% 1% 1% 1%
82 Python 3 #3 111.44 8,276 977 111.40 28% 0% 0% 73%
84 Ruby #3 113.64 59,200 973 113.60 1% 100% 0% 1%
86 Erlang 116.94 21,608 1039 161.07 18% 97% 4% 21%
87 Erlang HiPE 117.53 20,460 1039 153.64 90% 28% 16% 4%
89 Python 3 #5 120.33 3,516,300 1933 145.32 76% 48% 58% 49%
111 PHP #2 150.20 8,016 1006 150.03 5% 29% 15% 53%
111 Ruby #5 151.05 10,004 987 150.98 42% 35% 23% 3%
119 Ruby #4 160.90 242,268 904 160.74 35% 4% 39% 23%
151 Ruby #2 205.25 206,664 732 205.18 32% 1% 0% 69%
153 Python 3 207.44 7,944 792 206.09 22% 25% 41% 48%
158 Perl #4 214.90 4,748 934 214.82 6% 53% 21% 21%
175 Ruby JRuby 237.49 1,354,164 760 247.82 38% 24% 9% 37%
219 Perl #2 297.57 4,888 886 297.46 14% 31% 1% 57%
Haskell GHC Bad Output
Haskell GHC #4 Bad Output
Lua Failed
Swift #2 Bad Output