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.322.331,0761543  0% 1% 1% 100%
1.0Fortran Intel #4 2.442.445121327  1% 0% 1% 100%
1.5C gcc #5 3.403.403641261  1% 0% 1% 100%
1.5Haskell GHC #7 3.453.453,7761550  0% 1% 1% 100%
1.6Haskell GHC #2 3.623.632,712979  0% 0% 0% 100%
1.6Haskell GHC #5 3.643.647,0961378  1% 1% 0% 100%
1.8Ada 2005 GNAT #5 4.104.111,4962186  1% 0% 0% 100%
1.8C++ g++ #3 4.234.231,0721286  1% 0% 1% 100%
1.9Fortran Intel #3 4.314.315081190  1% 1% 1% 100%
1.9C gcc #6 4.324.329481914  1% 1% 0% 100%
1.9C++ g++ #2 4.434.448241105  0% 1% 1% 100%
2.0C++ g++ 4.674.688281033  0% 1% 1% 100%
2.2Rust 5.045.044,9601244  0% 1% 0% 100%
2.3Java  #5 5.355.3632,9162457  0% 1% 1% 100%
2.3Java  #4 5.365.3726,1601507  1% 0% 1% 100%
2.6Fortran Intel 6.036.035081155  1% 0% 0% 100%
2.6OCaml #6 6.046.05204,5201161  0% 1% 1% 100%
2.6C gcc #4 6.066.073641221  1% 1% 1% 100%
2.6Go #3 6.166.161,5521344  1% 0% 1% 100%
2.7Go #2 6.226.2210,1081388  0% 0% 1% 100%
2.7C++ g++ #4 6.246.253601266  1% 0% 1% 100%
2.7C# Mono #2 6.326.3220,2121180  0% 0% 1% 100%
2.8Haskell GHC #6 6.436.436,5641567  1% 0% 0% 100%
2.8Scala #3 6.456.4531,0041053  1% 1% 0% 100%
3.1C gcc 7.267.263641185  1% 0% 1% 100%
3.1Go 7.317.311,0241036  0% 1% 1% 100%
3.3Clojure #6 7.727.7367,4601653  1% 1% 1% 100%
3.4Lisp SBCL #6 7.797.808,8641751  1% 1% 0% 100%
3.6F# Mono 8.278.2723,544978  0% 1% 0% 100%
3.6Java  #2 8.348.3523,9961240  2% 0% 0% 100%
3.8OCaml #3 8.798.799601042  1% 0% 0% 100%
3.8Dart 8.938.9326,4601386  1% 1% 1% 100%
4.0C# Mono #4 9.319.3248,4561505  1% 1% 0% 100%
4.2Lisp SBCL #3 9.819.8210,6721579  1% 1% 0% 100%
4.6Scala 10.6810.6931,2201080  1% 1% 1% 100%
4.8Pascal Free Pascal #4 11.1311.1381112  1% 0% 0% 100%
5.1Ada 2005 GNAT 11.7711.781,4921346  1% 0% 1% 100%
5.1Clojure #5 11.8511.8671,4841839  1% 1% 0% 100%
7.4Racket #3 17.2217.2324,5841276  0% 1% 0% 100%
7.7Lisp SBCL 17.8017.8110,6761419  1% 1% 0% 100%
7.8Lisp SBCL #2 18.1018.1110,6641617  1% 0% 0% 100%
11JavaScript V8 #2 25.6225.6542,532923  0% 1% 1% 100%
12Hack #4 27.3627.37330,5481109  0% 1% 1% 100%
13Erlang HiPE #2 30.5230.5313,3161164  1% 2% 0% 100%
19Hack #3 43.2043.22342,8641029  0% 1% 1% 100%
21Smalltalk VisualWorks 48.0148.0352,5361315  0% 0% 1% 100%
21Racket 49.9349.9621,4241054  0% 1% 1% 100%
26Erlang HiPE 60.7160.7415,0561039  1% 0% 0% 100%
26Hack #2 60.8160.8374,5681003  1% 0% 1% 100%
29JavaScript V8 67.4667.4810,392791  1% 0% 0% 100%
39Python 3 #3 90.3290.355,604977  0% 0% 1% 100%
42Perl 96.5196.5452,084838  1% 0% 0% 100%
48Python 3 #4 111.66111.705,604965  0% 1% 1% 100%
50PHP #3 116.35116.383,3641030  0% 0% 1% 100%
68Ruby #5 155.80157.237,212987  1% 1% 1% 99%
68Ruby #4 158.45158.60235,044904  0% 1% 1% 100%
69Python 3 156.10160.135,572792  1% 0% 0% 100%
70Python 3 #5 116.73162.643,322,7721933  5% 11% 10% 100%
73Python 3 #2 165.35170.105,580788  1% 0% 0% 100%
80Ruby #2 184.92184.99204,120732  1% 1% 1% 100%
86Ruby JRuby 198.39200.11661,884760  1% 1% 1% 100%
113Perl #4 261.37263.073,160934  1% 1% 1% 100%
155Perl #2 6 min6 min3,152886  1% 1% 0% 100%
159PHP #2 6 min6 min3,3721006  1% 1% 1% 100%
Haskell GHC Bad Output1421
Haskell GHC #4 Bad Output1413
Lua Failed1049
"wrong" (different) algorithm / less comparable programs
0.8Perl #5 1.881.8824,8721113
2.0C gcc #2 4.664.664921169
5.9Haskell GHC #3 13.6313.632,1041408

 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