/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%
37C gcc 7.047.052961185  0% 0% 0% 100%
37C gcc #4 5.045.052961221  1% 0% 1% 100%
37C++ g++ #4 6.566.562961266  1% 0% 0% 100%
66Fortran Intel #3 4.584.585241190  1% 0% 0% 100%
79C++ g++ 4.804.816321033  0% 0% 2% 100%
79C++ g++ #2 4.234.236321105  0% 0% 0% 100%
85Rust 4.734.736761283  0% 1% 1% 100%
90Go 16.6516.657201036  0% 1% 1% 100%
111C++ g++ #3 4.224.238841286  1% 0% 0% 100%
139Lua 49.7149.721,1121049  0% 1% 0% 100%
154Ada 2005 GNAT 9.049.041,2321346  0% 1% 0% 100%
155Ada 2005 GNAT #5 4.244.251,2362186  0% 0% 0% 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 #4 68.0168.042,5881110  0% 0% 0% 100%
324PHP #2 6 min6 min2,5881006  0% 0% 0% 100%
493Lisp SBCL #3 12.7512.763,9441579  0% 0% 0% 100%
517Lisp SBCL #6 8.008.004,1321751  0% 0% 1% 100%
540Python 3 234.62237.784,316792  1% 1% 1% 100%
541Python 3 #2 233.389 min4,328788  1% 1% 1% 100%
673Ruby #5 218.22220.085,380987  1% 1% 1% 100%
954Erlang HiPE 85.7285.767,6281039  0% 0% 0% 100%
954Erlang HiPE #2 49.9850.007,6321164  0% 0% 0% 100%
1,059JavaScript V8 17.6417.658,472791  1% 0% 0% 100%
1,920C# Mono #2 7.907.9015,3601180  0% 0% 1% 100%
2,018Java  #2 7.787.7916,1401240  1% 1% 0% 100%
2,023F# Mono 9.959.9616,184978  0% 1% 1% 100%
2,049Java  #4 5.085.0916,3881507  0% 1% 1% 100%
2,207Racket #3 13.8913.8917,6561276  1% 0% 0% 100%
2,230Racket 50.6350.6517,8361054  0% 0% 0% 100%
2,537Lisp SBCL 14.8814.8820,2961419  0% 0% 1% 100%
2,537Lisp SBCL #2 15.8615.8620,2961617  1% 1% 0% 100%
2,563Scala #3 6.566.5620,5001053  1% 1% 1% 100%
2,566Scala 10.4310.4420,5241080  0% 1% 1% 100%
2,745Smalltalk VisualWorks 44.6344.6621,9561315  0% 1% 1% 100%
4,259JavaScript V8 #2 21.6621.6834,068923  0% 1% 0% 100%
5,129C# Mono #4 10.2910.3041,0321505  0% 1% 1% 100%
6,152Dart 9.069.0749,2161386  0% 0% 0% 100%
6,225Clojure #6 10.9310.9449,7961653  0% 0% 1% 100%
6,532Clojure #5 12.2512.2652,2521839  0% 1% 0% 100%
12,459Perl 92.5592.5999,672838  0% 0% 0% 100%
22,019Ruby #2 275.01275.12176,152732  0% 1% 1% 100%
23,122Ruby #4 218.09220.98184,976904  0% 1% 1% 100%
76,962Ruby JRuby 245.09247.41615,692760  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
70C gcc #2 2.412.425561169
249Haskell GHC #3 10.6710.681,9881408
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