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

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

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.

    sortsortsort 
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Ruby #2 275.01275.12176,152732  0% 1% 1% 100%
1.0Ruby JRuby 245.09247.41615,692760  0% 1% 1% 100%
1.1Python 3 #2 233.389 min4,328788  1% 1% 1% 100%
1.1JavaScript V8 43.4743.4910,592791  0% 0% 1% 100%
1.1Python 3 234.62237.784,316792  1% 1% 1% 100%
1.1Perl 92.5592.5999,672838  0% 0% 0% 100%
1.2Perl #2 5 min5 min1,988886  0% 1% 1% 100%
1.2Ruby #4 218.09220.98184,976904  0% 1% 1% 100%
1.3JavaScript V8 #2 22.2722.2940,828923  0% 0% 1% 100%
1.3Perl #4 258.42258.551,992934  0% 0% 0% 100%
1.3F# Mono 11.1011.1121,768978  0% 1% 1% 100%
1.3Haskell GHC #2 3.353.352,504979  1% 1% 0% 100%
1.3Ruby #5 218.22220.085,380987  1% 1% 1% 100%
1.4PHP #2 6 min6 min2,5881006  0% 0% 0% 100%
1.4PHP #3 144.06147.412,5841030  0% 0% 0% 100%
1.4C++ g++ 4.744.756201033  0% 1% 1% 100%
1.4Go 16.4516.467721036  0% 0% 1% 100%
1.4Erlang HiPE 85.7285.767,6281039  0% 0% 0% 100%
1.4OCaml #3 12.1612.171,6561042  0% 0% 0% 100%
1.4Lua 49.7149.721,1121049  0% 1% 0% 100%
1.4Scala #3 6.566.5620,5001053  1% 1% 1% 100%
1.4Racket 50.6350.6517,8361054  0% 0% 0% 100%
1.5Scala 10.4310.4420,5241080  0% 1% 1% 100%
1.5C++ g++ #2 4.324.326201105  1% 1% 0% 100%
1.5Pascal Free Pascal #4 7.937.9381112  1% 1% 0% 100%
1.6Fortran Intel 6.366.372521155  0% 0% 0% 100%
1.6Erlang HiPE #2 49.9850.007,6321164  0% 0% 0% 100%
1.6C# Mono #2 7.487.4919,8481180  0% 1% 1% 100%
1.6C gcc 7.047.042841185  0% 0% 1% 100%
1.6Fortran Intel #3 4.584.585241190  1% 0% 0% 100%
1.7C gcc #4 5.045.052841221  1% 0% 1% 100%
1.7Java  #2 7.787.7916,1401240  1% 1% 0% 100%
1.7C gcc #5 3.293.292841261  0% 1% 1% 100%
1.7C++ g++ #4 6.566.562841266  1% 0% 1% 100%
1.7Racket #3 13.8913.8917,6561276  1% 0% 0% 100%
1.8C++ g++ #3 4.224.228721286  1% 1% 0% 100%
1.8Smalltalk VisualWorks 44.6344.6621,9561315  0% 1% 1% 100%
1.8Fortran Intel #4 3.183.182601327  0% 1% 0% 100%
1.8Ada 2005 GNAT 9.099.101,2081346  1% 0% 1% 100%
1.9Dart 9.459.4551,3201386  1% 0% 1% 100%
1.9Lisp SBCL 14.7414.7523,2281419  1% 0% 0% 100%
2.1C# Mono #4 9.939.9443,9721505  1% 1% 0% 100%
2.1Java  #4 5.085.0916,3881507  0% 1% 1% 100%
2.2Lisp SBCL #3 11.6311.635,5361579  1% 1% 1% 100%
2.2Lisp SBCL #2 16.2116.2223,2121617  2% 2% 0% 100%
2.3Clojure #6 10.9310.9449,7961653  0% 0% 1% 100%
2.4Lisp SBCL #6 8.018.025,7801751  1% 0% 0% 100%
2.5Clojure #5 12.2512.2652,2521839  0% 1% 0% 100%
3.0Ada 2005 GNAT #5 4.234.231,2082186  1% 0% 0% 100%
3.4Java  #5 4.914.9127,6682457  0% 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
1.5Perl #5 2.072.0715,0761113
1.6C gcc #2 2.462.474001169
1.9Haskell GHC #3 10.6710.681,9881408
missing benchmark programs
Rust No program

 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