/mobile Handheld Friendly website

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

Each chart bar shows how many times more Memory, one ↓ fasta program used, compared to the program that used least Memory.

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.

    sortsort sort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Pascal Free Pascal #4 7.927.9381112  1% 1% 0% 100%
32Fortran Intel 6.366.372521155  0% 0% 0% 100%
33Fortran Intel #4 3.183.182601327  0% 1% 0% 100%
36ATS 5.205.202882104  0% 1% 0% 100%
37C gcc 6.906.912921185  0% 0% 1% 100%
37C gcc #4 4.924.932921221  0% 1% 1% 100%
37C++ g++ #4 6.576.582921266  0% 0% 0% 100%
66Fortran Intel #3 4.584.585241190  1% 0% 0% 100%
78C++ g++ 4.634.636201033  2% 2% 1% 100%
78C++ g++ #2 4.104.116201105  0% 0% 0% 100%
109C++ g++ #3 4.224.238721286  0% 0% 0% 100%
127Go 16.6816.691,0121036  0% 0% 0% 100%
139Lua 49.7149.721,1121049  0% 1% 0% 100%
154Ada 2005 GNAT #5 4.234.241,2322186  0% 0% 1% 100%
154Ada 2005 GNAT 9.609.611,2321346  0% 0% 0% 100%
205OCaml #3 11.7511.751,6361042  0% 0% 1% 100%
249Perl #2 5 min5 min1,988886  0% 1% 1% 100%
249Perl #4 258.42258.551,992934  0% 0% 0% 100%
296Haskell GHC #2 3.363.362,364979  0% 0% 0% 100%
315PHP #3 160.25163.422,5201030  0% 0% 1% 100%
315PHP #2 7 min7 min2,5201006  0% 0% 0% 100%
316PHP #4 71.9671.992,5241110  0% 0% 0% 100%
584Python 3 263.96266.444,668792  0% 0% 0% 100%
584Python 3 #2 259.48262.344,672788  0% 1% 1% 100%
609Ruby 2.0 #5 231.53234.854,872987  0% 1% 1% 99%
954Erlang HiPE 85.7285.767,6281039  0% 0% 0% 100%
954Erlang HiPE #2 49.9850.007,6321164  0% 0% 0% 100%
959JavaScript V8 19.1619.187,672791  0% 0% 0% 100%
1,034Lisp SBCL #6 8.178.178,2681751  0% 0% 0% 100%
1,787C# Mono #2 7.427.4314,2921180  1% 0% 0% 100%
1,795Java 7  #2 7.827.8314,3561240  0% 1% 1% 100%
1,867Java 7  #4 4.924.9214,9321507  0% 1% 0% 100%
1,892F# Mono 10.6110.6115,132978  1% 0% 0% 100%
2,157Racket #3 13.7513.7617,2521276  0% 0% 0% 100%
2,200Racket 50.8650.8917,5961054  0% 0% 0% 100%
2,449Scala #3 6.546.5519,5881053  0% 1% 0% 100%
2,458Scala 10.3110.3219,6641080  0% 0% 0% 100%
2,745Smalltalk VisualWorks 44.6344.6621,9561315  0% 1% 1% 100%
3,777Lisp SBCL #3 13.0113.0230,2161579  0% 0% 0% 100%
3,795Lisp SBCL #2 16.2216.2430,3601617  0% 0% 0% 100%
3,796Lisp SBCL 15.1315.1430,3641419  0% 0% 0% 100%
4,458JavaScript V8 #2 21.6421.6635,660923  1% 1% 0% 100%
9,833Clojure #5 21.2621.2778,6601839  0% 0% 0% 100%
12,459Perl 92.5592.5999,672838  0% 0% 0% 100%
23,511Ruby 2.0 #6 179.05181.61188,088772  0% 0% 0% 100%
31,123Ruby 2.0 #2 5 min5 min248,984732  0% 1% 1% 100%
36,096Dart 9.859.85288,7681421  0% 0% 0% 100%
53,521Ruby 2.0 #4 210.91213.87428,168904  0% 1% 0% 100%
72,977Ruby JRuby 250.90254.52583,812760  0% 0% 0% 100%
C CINT Bad Output1163
Haskell GHC #4 Bad Output1413
Haskell GHC Bad Output1421
OCaml #6 Failed1161
"wrong" (different) algorithm / less comparable programs
52C gcc #2 2.382.384161169
231Haskell GHC #3 10.6910.701,8441408
1,885Perl #5 2.072.0715,0761113

 fasta benchmark : Generate and write random DNA sequences

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