/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 2.702.702441327  1% 0% 0% 100%
1.5Haskell GHC #2 4.684.032,632979  5% 86% 19% 5%
1.5Ada 2005 GNAT #5 4.054.061,5002186  1% 0% 100% 0%
1.5C++ g++ #3 4.164.161,0721286  0% 0% 100% 0%
1.6C++ g++ #2 4.334.348281105  0% 0% 100% 0%
1.7Fortran Intel #3 4.464.465081190  0% 0% 0% 100%
1.7C++ g++ 4.604.608281033  0% 0% 100% 0%
1.9Java 7  #4 5.215.1418,2841507  0% 1% 1% 100%
1.9ATS 5.205.203642104  0% 100% 0% 0%
2.2C gcc #4 5.965.973721221  0% 0% 0% 100%
2.2Fortran Intel 5.975.975081155  0% 0% 0% 100%
2.3C++ g++ #4 6.206.213721266  0% 0% 0% 100%
2.3Scala #3 6.406.2924,7201053  0% 1% 1% 100%
2.6Go 6.946.941,2721036  32% 67% 0% 0%
2.7C gcc 7.157.163761185  0% 0% 100% 0%
2.8Lisp SBCL #6 7.457.455,0521751  0% 0% 100% 0%
2.8C# Mono #2 7.477.4814,7481180  77% 0% 0% 23%
3.0Java 7  #2 8.057.9618,8561240  1% 1% 0% 100%
3.1F# Mono 8.418.4116,112978  0% 0% 0% 100%
3.2Ada 2005 GNAT 8.738.741,4961346  0% 0% 100% 0%
3.7Lisp SBCL #3 9.919.924,7881579  100% 0% 0% 0%
3.7Dart 9.969.97291,0081421  1% 0% 0% 100%
3.8Scala 10.4310.3127,8321080  0% 0% 100% 1%
3.9OCaml #6 10.5010.52198,0601161  0% 0% 0% 100%
3.9Clojure #5 11.9110.5963,3121839  6% 68% 33% 6%
4.1Pascal Free Pascal #4 11.1711.1881112  26% 0% 0% 74%
4.9OCaml #3 13.3113.322,8481042  0% 0% 0% 100%
6.4Lisp SBCL 17.1417.155,0401419  0% 0% 100% 0%
6.4Racket #3 17.3217.3224,1001276  0% 0% 0% 100%
6.5Lisp SBCL #2 17.4817.495,0441617  0% 0% 100% 0%
11Erlang HiPE #2 29.4329.4314,1641164  86% 0% 14% 0%
18Racket 49.5649.5718,7081054  95% 5% 0% 0%
22Erlang #2 60.5660.5812,2841164  96% 0% 4% 0%
24PHP #4 63.9864.003,2601110  0% 0% 100% 0%
25Erlang HiPE 66.8966.9013,5361039  62% 38% 0% 0%
35Erlang 94.2594.2712,2961039  100% 0% 0% 0%
39Perl 104.98105.03100,328838  0% 100% 0% 0%
40Ruby 2.0 #6 106.86106.92223,864772  92% 0% 8% 0%
53PHP #3 141.14144.053,2561030  91% 0% 1% 10%
55Ruby 2.0 #4 145.07149.58223,872904  30% 38% 14% 20%
62Ruby 2.0 #5 162.95166.656,160987  38% 19% 2% 42%
74Ruby 2.0 #2 198.71198.80250,028732  97% 0% 3% 1%
83Python 3 #2 219.23222.966,208788  31% 26% 3% 41%
83Python 3 220.29224.166,212792  77% 1% 2% 21%
84Ruby JRuby 225.70227.28606,236760  50% 48% 4% 2%
107Perl #4 285.70288.562,388934  1% 1% 0% 99%
142Perl #2 6 min6 min2,648886  37% 63% 0% 0%
146PHP #2 6 min6 min3,2641006  41% 1% 7% 53%
Haskell GHC Bad Output1421
Haskell GHC #4 Bad Output1413
"wrong" (different) algorithm / less comparable programs
0.8Perl #5 2.102.1025,1321113
0.9C gcc #2 2.372.375001169
5.5Haskell GHC #3 16.6914.832,1121408

 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