/mobile Handheld Friendly website

 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.192601327  0% 0% 2% 100%
1.2Haskell GHC #2 4.283.802,276979  41% 62% 5% 4%
1.3C++ g++ #2 4.104.116201105  55% 0% 0% 46%
1.3C++ g++ #3 4.234.238721286  0% 0% 0% 100%
1.3Ada 2005 GNAT #5 4.244.241,2322186  0% 0% 100% 0%
1.4Fortran Intel #3 4.544.555241190  0% 0% 1% 100%
1.5C++ g++ 4.644.646201033  100% 0% 0% 1%
1.5C gcc #4 4.924.932921221  0% 0% 100% 0%
1.6Java 7  #4 5.074.9914,9761507  2% 0% 100% 1%
1.6ATS 5.205.202882104  0% 0% 100% 1%
2.0Fortran Intel 6.346.352521155  0% 0% 1% 100%
2.0Scala #3 6.636.4522,1361053  2% 0% 100% 1%
2.1C++ g++ #4 6.586.582921266  1% 0% 100% 0%
2.2C gcc 6.906.912921185  100% 0% 0% 0%
2.4Java 7  #2 7.817.7215,2401240  0% 1% 1% 100%
2.5Pascal Free Pascal #4 7.947.9581112  0% 0% 0% 100%
2.6Lisp SBCL #6 8.178.188,2721751  0% 0% 0% 100%
2.7C# Mono #2 8.468.4615,7881180  0% 0% 0% 100%
2.8Ada 2005 GNAT 9.049.041,2321346  0% 0% 100% 1%
3.1Dart 9.849.85288,7881421  0% 95% 5% 0%
3.2Scala 10.4210.2222,2441080  0% 1% 1% 100%
3.6F# Mono 11.3411.3516,572978  100% 0% 1% 1%
3.7OCaml #3 11.7511.761,6361042  0% 0% 0% 100%
4.1Lisp SBCL #3 13.0013.0130,2201579  0% 0% 0% 100%
4.3Racket #3 13.8013.8017,2441276  0% 0% 1% 100%
4.4Clojure #5 22.4214.1781,1361839  23% 88% 22% 27%
4.8Lisp SBCL 15.1215.1330,3721419  0% 1% 0% 100%
5.1Lisp SBCL #2 16.2416.2430,3681617  0% 0% 0% 100%
5.2Go 16.6816.681,0121036  77% 0% 0% 23%
16Erlang HiPE #2 49.7449.758,7881164  0% 100% 0% 1%
16Racket 50.9650.9616,0841054  0% 0% 100% 0%
23PHP #4 72.9272.942,5281110  0% 0% 100% 0%
30Erlang HiPE 95.1095.128,6561039  99% 0% 2% 0%
37Perl 116.40116.4599,960838  0% 94% 0% 7%
50PHP #3 157.07160.252,5201030  76% 0% 4% 20%
56Ruby 2.0 #6 176.22178.52185,964772  53% 30% 15% 4%
67Ruby 2.0 #4 211.97214.62435,028904  39% 30% 29% 4%
73Ruby 2.0 #5 229.84232.364,888987  48% 27% 25% 2%
77Ruby JRuby 245.83245.59584,152760  56% 8% 8% 30%
78Python 3 #2 246.95249.754,600788  24% 2% 25% 51%
79Python 3 249.98252.914,612792  33% 2% 39% 28%
98Perl #4 5 min5 min2,280934  1% 0% 100% 1%
101Ruby 2.0 #2 5 min5 min248,980732  11% 85% 5% 1%
135PHP #2 7 min7 min2,5201006  63% 4% 2% 32%
136Perl #2 7 min7 min2,280886  62% 0% 38% 0%
Haskell GHC #4 Bad Output1413
Haskell GHC Bad Output1421
OCaml #6 Failed1161
"wrong" (different) algorithm / less comparable programs
0.7Perl #5 2.302.3015,3081113
0.7C gcc #2 2.372.384201169
3.6Haskell GHC #3 12.8411.411,7481408

 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