fasta benchmark ≈240MB N=25,000,000

Each chart bar shows how many times slower, one ↓ fasta program was, compared to the fastest program.

These are not the only programs that could be written. These are not the only compilers and interpreters. These are not the only programming languages.

Column × shows how many times more each program used compared to the benchmark program that used least.

    sort sortsort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0C++ g++ #5 2.312.318721543  2% 0% 0% 100%
1.2Haskell GHC #7 2.812.823,0121550  2% 1% 0% 100%
1.3Fortran Intel #4 2.992.992601327  1% 1% 1% 100%
1.3Haskell GHC #5 3.043.054,8521378  10% 54% 27% 100%
1.4C gcc #5 3.293.292841261  0% 1% 1% 100%
1.4Haskell GHC #2 3.303.302,476979  0% 2% 1% 100%
1.6Rust #2 3.773.774,9481392  1% 0% 1% 100%
1.6C gcc #6 3.783.788641914  1% 0% 1% 100%
1.8C++ g++ #3 4.224.228721286  1% 1% 0% 100%
1.8Ada 2005 GNAT #5 4.234.231,2082186  1% 0% 0% 100%
1.9C++ g++ #2 4.324.326201105  1% 1% 0% 100%
1.9Fortran Intel #3 4.424.435241190  1% 0% 1% 100%
2.1C++ g++ 4.744.756201033  0% 1% 1% 100%
2.1Java  #5 4.934.9327,6682457  0% 1% 0% 100%
2.2C gcc #4 5.045.052841221  1% 0% 1% 100%
2.2Java  #4 5.155.1621,9001507  1% 0% 2% 100%
2.6Haskell GHC #6 5.945.954,3201567  1% 1% 1% 100%
2.7Fortran Intel 6.336.345241155  0% 0% 1% 100%
2.8Go #3 6.536.531,5521344  1% 1% 1% 100%
2.8C++ g++ #4 6.566.562841266  1% 0% 1% 100%
2.8Scala #3 6.566.5723,7641053  0% 0% 1% 100%
2.9Rust 6.746.744,8481211  1% 1% 0% 100%
3.0C gcc 7.047.042841185  0% 0% 1% 100%
3.1C# Mono #2 7.157.1619,4121180  1% 0% 1% 100%
3.4Java  #2 7.787.7919,6361240  1% 0% 1% 100%
3.4Lisp SBCL #6 7.847.857,8361751  1% 0% 1% 100%
3.4Pascal Free Pascal #4 7.937.9381112  1% 1% 0% 100%
3.8Dart 8.708.7023,4921386  0% 1% 1% 100%
3.8Go 8.768.777641036  0% 0% 1% 100%
3.9Ada 2005 GNAT 9.099.101,2081346  1% 0% 1% 100%
4.2C# Mono #4 9.609.6143,4441505  0% 1% 1% 100%
4.5Scala 10.3810.3823,8601080  1% 0% 1% 100%
4.6F# Mono 10.6810.6920,400978  0% 0% 1% 100%
4.7Clojure #6 10.9610.9754,7841653  1% 1% 1% 100%
5.1Lisp SBCL #3 11.7211.737,8441579  0% 0% 1% 100%
5.1Go #2 11.8011.8110,2961388  0% 1% 1% 100%
5.2OCaml #3 12.0512.066001042  0% 0% 1% 100%
5.5Clojure #5 12.6012.6156,8961839  1% 1% 0% 100%
5.8Racket #3 13.4113.4222,1761276  1% 14% 2% 100%
6.4Lisp SBCL 14.8514.8624,4921419  0% 1% 0% 100%
6.9Lisp SBCL #2 16.0516.0624,4841617  1% 0% 1% 100%
9.6JavaScript V8 #2 22.2822.3029,800923  0% 1% 1% 100%
20Smalltalk VisualWorks 46.1246.1426,3681315  0% 0% 0% 100%
21Erlang HiPE #2 49.2249.2511,1481164  1% 0% 0% 100%
22Racket 50.4850.5019,1321054  0% 0% 0% 100%
31JavaScript V8 71.7471.768,488791  0% 1% 1% 100%
38Erlang HiPE 88.9488.9710,4641039  1% 0% 1% 100%
43Perl 99.6899.7251,388838  1% 0% 0% 100%
47Python 3 #3 108.42108.464,328977  0% 0% 1% 100%
51PHP #3 118.32118.362,5881030  0% 0% 1% 100%
55Python 3 #5 126.89127.022,477,1481933  1% 1% 0% 100%
99Python 3 229.21229.294,288792  1% 1% 1% 100%
100Ruby JRuby 231.53231.81633,836760  0% 1% 1% 100%
105Ruby #5 241.85241.945,080987  0% 1% 1% 100%
110Perl #4 254.30254.402,264934  1% 1% 0% 100%
123Ruby #2 284.32284.41128,228732  0% 0% 1% 100%
143Perl #2 5 min5 min2,264886  1% 1% 0% 100%
160PHP #2 6 min6 min2,5841006  1% 0% 1% 100%
422Ruby #4 242.5216 min198,008904  1% 1% 0% 100%
C CINT Bad Output1163
Haskell GHC #4 Bad Output1413
Haskell GHC Bad Output1421
Lua Failed1049
OCaml #6 Failed1161
"wrong" (different) algorithm / less comparable programs
0.9Perl #5 1.981.9814,9961113
1.1C gcc #2 2.462.474001169
5.1Haskell GHC #3 11.8311.831,9441408

 fasta benchmark : Generate and write random DNA sequences

You can write your own program for this task and contribute to the benchmarks game by following these general instructions.

More specifically:

diff program output N = 1000 with this 10KB output file to check your program is correct before contributing.

We are trying to show the performance of various programming language implementations - so we ask that contributed programs not only give the correct result, but also use the same algorithm to calculate that result.

Each program should

We'll use the generated FASTA file as input for other benchmarks (reverse-complement, k-nucleotide).

Random DNA sequences can be based on a variety of Random Models (554KB pdf). You can use Markov chains or independently distributed nucleotides to generate random DNA sequences online.

Revised BSD license

  Home   Conclusions   License   Play