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.937.9381112  1% 1% 0% 100%
32Fortran Intel 6.366.372521155  0% 0% 0% 100%
33Fortran Intel #4 3.183.182601327  0% 1% 0% 100%
36C gcc #5 3.293.292841261  0% 1% 1% 100%
36C gcc 7.047.042841185  0% 0% 1% 100%
36C++ g++ #4 6.566.562841266  1% 0% 1% 100%
36C gcc #4 5.045.052841221  1% 0% 1% 100%
66Fortran Intel #3 4.584.585241190  1% 0% 0% 100%
78C++ g++ 4.744.756201033  0% 1% 1% 100%
78C++ g++ #2 4.324.326201105  1% 1% 0% 100%
97Go 16.4516.467721036  0% 0% 1% 100%
108C gcc #6 3.783.788641914  1% 0% 1% 100%
109C++ g++ #3 4.224.228721286  1% 1% 0% 100%
139Lua 49.7149.721,1121049  0% 1% 0% 100%
151Ada 2005 GNAT #5 4.234.231,2082186  1% 0% 0% 100%
151Ada 2005 GNAT 9.099.101,2081346  1% 0% 1% 100%
207OCaml #3 12.1612.171,6561042  0% 0% 0% 100%
249Perl #2 5 min5 min1,988886  0% 1% 1% 100%
249Perl #4 258.42258.551,992934  0% 0% 0% 100%
313Haskell GHC #2 3.353.352,504979  1% 1% 0% 100%
323PHP #3 144.06147.412,5841030  0% 0% 0% 100%
324PHP #2 6 min6 min2,5881006  0% 0% 0% 100%
540Python 3 234.62237.784,316792  1% 1% 1% 100%
541Python 3 #2 233.389 min4,328788  1% 1% 1% 100%
585Rust 4.974.984,6761224  1% 0% 0% 100%
673Ruby #5 234.24234.705,380987  1% 1% 1% 100%
692Lisp SBCL #3 11.6311.635,5361579  1% 1% 1% 100%
723Lisp SBCL #6 8.018.025,7801751  1% 0% 0% 100%
954Erlang HiPE 85.7285.767,6281039  0% 0% 0% 100%
954Erlang HiPE #2 49.9850.007,6321164  0% 0% 0% 100%
1,410JavaScript V8 68.1468.1711,280791  1% 0% 0% 100%
2,207Racket #3 13.8913.8917,6561276  1% 0% 0% 100%
2,230Racket 50.6350.6517,8361054  0% 0% 0% 100%
2,355Dart 8.898.9018,8361386  1% 0% 1% 100%
2,427C# Mono #2 7.157.1619,4121180  1% 0% 1% 100%
2,455Java  #2 7.787.7919,6361240  1% 0% 1% 100%
2,550F# Mono 10.6810.6920,400978  0% 0% 1% 100%
2,738Java  #4 5.155.1621,9001507  1% 0% 2% 100%
2,745Smalltalk VisualWorks 44.6344.6621,9561315  0% 1% 1% 100%
2,902Lisp SBCL #2 16.2116.2223,2121617  2% 2% 0% 100%
2,904Lisp SBCL 14.7414.7523,2281419  1% 0% 0% 100%
2,971Scala #3 6.566.5723,7641053  0% 0% 1% 100%
2,983Scala 10.3810.3823,8601080  1% 0% 1% 100%
3,459Java  #5 4.934.9327,6682457  0% 1% 0% 100%
3,952JavaScript V8 #2 21.8721.8931,616923  0% 1% 1% 100%
5,431C# Mono #4 9.609.6143,4441505  0% 1% 1% 100%
6,848Clojure #6 10.9610.9754,7841653  1% 1% 1% 100%
7,112Clojure #5 12.6012.6156,8961839  1% 1% 0% 100%
12,459Perl 92.5592.5999,672838  0% 0% 0% 100%
22,919Ruby #2 5 min5 min183,348732  1% 1% 1% 100%
24,910Ruby #4 237.67238.89199,276904  0% 1% 1% 100%
79,230Ruby JRuby 231.53231.81633,836760  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
50C gcc #2 2.462.474001169
249Haskell GHC #3 10.6710.681,9881408
1,885Perl #5 2.072.0715,0761113

 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