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.0Fortran Intel #4 3.183.182601327  0% 1% 0% 100%
1.0C gcc #5 3.293.292841261  0% 1% 1% 100%
1.1Haskell GHC #2 3.353.352,504979  1% 1% 0% 100%
1.3C++ g++ #3 4.224.228721286  1% 1% 0% 100%
1.3Ada 2005 GNAT #5 4.234.231,2082186  1% 0% 0% 100%
1.4C++ g++ #2 4.324.326201105  1% 1% 0% 100%
1.4Fortran Intel #3 4.584.585241190  1% 0% 0% 100%
1.5C++ g++ 4.744.756201033  0% 1% 1% 100%
1.5Java  #5 4.914.9127,6682457  0% 1% 1% 100%
1.6C gcc #4 5.045.052841221  1% 0% 1% 100%
1.6Java  #4 5.085.0916,3881507  0% 1% 1% 100%
2.0Fortran Intel 6.366.372521155  0% 0% 0% 100%
2.1C++ g++ #4 6.566.562841266  1% 0% 1% 100%
2.1Scala #3 6.566.5620,5001053  1% 1% 1% 100%
2.2C gcc 7.047.042841185  0% 0% 1% 100%
2.2C# Mono #2 7.157.1619,4121180  1% 0% 1% 100%
2.4Java  #2 7.787.7916,1401240  1% 1% 0% 100%
2.5Pascal Free Pascal #4 7.937.9381112  1% 1% 0% 100%
2.5Lisp SBCL #6 8.018.025,7801751  1% 0% 0% 100%
2.9Ada 2005 GNAT 9.099.101,2081346  1% 0% 1% 100%
3.0Dart 9.429.4318,6241386  0% 0% 1% 100%
3.0C# Mono #4 9.609.6143,4441505  0% 1% 1% 100%
3.3Scala 10.4310.4420,5241080  0% 1% 1% 100%
3.4F# Mono 10.6810.6920,400978  0% 0% 1% 100%
3.4Clojure #6 10.9310.9449,7961653  0% 0% 1% 100%
3.7Lisp SBCL #3 11.6311.635,5361579  1% 1% 1% 100%
3.8OCaml #3 12.1612.171,6561042  0% 0% 0% 100%
3.9Clojure #5 12.2512.2652,2521839  0% 1% 0% 100%
4.4Racket #3 13.8913.8917,6561276  1% 0% 0% 100%
4.6Lisp SBCL 14.7414.7523,2281419  1% 0% 0% 100%
5.1Lisp SBCL #2 16.2116.2223,2121617  2% 2% 0% 100%
5.2Go 16.4516.467721036  0% 0% 1% 100%
7.0JavaScript V8 #2 22.3122.3332,244923  0% 1% 1% 100%
14JavaScript V8 44.4644.488,896791  1% 0% 1% 100%
14Smalltalk VisualWorks 44.6344.6621,9561315  0% 1% 1% 100%
16Lua 49.7149.721,1121049  0% 1% 0% 100%
16Erlang HiPE #2 49.9850.007,6321164  0% 0% 0% 100%
16Racket 50.6350.6517,8361054  0% 0% 0% 100%
27Erlang HiPE 85.7285.767,6281039  0% 0% 0% 100%
29Perl 92.5592.5999,672838  0% 0% 0% 100%
46PHP #3 144.06147.412,5841030  0% 0% 0% 100%
69Ruby #5 218.22220.085,380987  1% 1% 1% 100%
69Ruby #4 218.09220.98184,976904  0% 1% 1% 100%
75Python 3 234.62237.784,316792  1% 1% 1% 100%
78Ruby JRuby 245.09247.41615,692760  0% 1% 1% 100%
81Perl #4 258.42258.551,992934  0% 0% 0% 100%
86Ruby #2 275.01275.12176,152732  0% 1% 1% 100%
110Perl #2 5 min5 min1,988886  0% 1% 1% 100%
128PHP #2 6 min6 min2,5881006  0% 0% 0% 100%
181Python 3 #2 233.389 min4,328788  1% 1% 1% 100%
C CINT Bad Output1163
Haskell GHC #4 Bad Output1413
Haskell GHC Bad Output1421
OCaml #6 Failed1161
"wrong" (different) algorithm / less comparable programs
0.7Perl #5 2.072.0715,0761113
0.8C gcc #2 2.462.474001169
3.4Haskell GHC #3 10.6710.681,9881408
missing benchmark programs
Rust No program

 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