/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.692.702441327  0% 0% 0% 100%
1.3Haskell GHC #2 3.563.562,624979  0% 1% 0% 100%
1.5Ada 2005 GNAT #5 4.044.051,5002186  0% 0% 0% 100%
1.5C++ g++ #3 4.154.161,0721286  0% 0% 0% 100%
1.6C++ g++ #2 4.334.338281105  0% 0% 0% 100%
1.7Fortran Intel #3 4.464.475081190  0% 0% 0% 100%
1.7C++ g++ 4.624.638281033  0% 0% 0% 100%
1.9Java 7  #4 5.185.1918,1321507  0% 0% 0% 100%
1.9ATS 5.205.203602104  0% 1% 1% 100%
2.2C gcc #4 5.965.973721221  0% 0% 0% 100%
2.2Fortran Intel 5.985.985081155  0% 1% 1% 100%
2.3C# Mono #2 6.136.1415,0121180  0% 0% 0% 100%
2.3C++ g++ #4 6.206.213761266  0% 0% 0% 100%
2.4Scala #3 6.346.3524,7961053  0% 0% 0% 100%
2.6Go 6.946.941,2721036  0% 0% 0% 100%
2.7C gcc 7.147.153721185  0% 0% 0% 100%
2.8Lisp SBCL #6 7.467.475,0521751  0% 0% 0% 100%
3.0Java 7  #2 8.138.1417,6961240  0% 0% 0% 100%
3.0F# Mono 8.218.2115,836978  0% 0% 0% 100%
3.2Ada 2005 GNAT 8.738.731,4961346  0% 0% 0% 100%
3.7Lisp SBCL #3 9.929.934,7881579  0% 0% 0% 100%
3.7Dart 9.979.97291,0041421  0% 0% 0% 100%
3.9Scala 10.4310.4324,6921080  0% 0% 0% 100%
3.9OCaml #6 10.5110.52198,3321161  0% 0% 0% 100%
4.1Pascal Free Pascal #4 11.1711.1781112  0% 0% 0% 100%
4.3Clojure #5 11.5311.5458,3401839  0% 0% 0% 100%
4.9OCaml #3 13.2913.302,8441042  0% 0% 0% 100%
6.4Lisp SBCL 17.1317.145,0401419  0% 0% 0% 100%
6.4Racket #3 17.3217.3324,0881276  0% 0% 0% 100%
6.5Lisp SBCL #2 17.4617.475,0441617  0% 0% 0% 100%
7.1JavaScript V8 19.0419.058,352791  0% 0% 0% 100%
8.2JavaScript V8 #2 22.0622.0951,956923  0% 0% 0% 100%
11Erlang HiPE #2 29.0729.0911,9161164  0% 0% 0% 100%
17Lua 44.5944.601,4801049  0% 0% 0% 100%
18Smalltalk VisualWorks 47.2447.2541,2841315  0% 0% 0% 100%
18Racket 49.6149.6518,7241054  0% 0% 0% 100%
22Erlang HiPE 58.1058.1311,9241039  0% 0% 0% 100%
24PHP #4 63.4163.433,2601110  0% 0% 0% 100%
36Perl 96.5096.53101,892838  0% 0% 0% 100%
40Ruby 2.0 #6 106.88106.93223,864772  0% 0% 0% 100%
54PHP #3 141.61145.383,2561030  0% 1% 1% 100%
55Ruby 2.0 #4 145.27149.43223,884904  0% 1% 1% 98%
62Ruby 2.0 #5 161.55165.976,156987  0% 1% 1% 100%
73Ruby 2.0 #2 196.04196.11250,296732  0% 0% 0% 100%
82Python 3 217.54221.686,216792  0% 0% 1% 100%
86Ruby JRuby 225.77230.92604,960760  0% 0% 0% 100%
90Python 3 #2 236.16241.506,212788  0% 0% 0% 100%
99Perl #4 267.89267.984,208934  0% 0% 0% 100%
148Perl #2 6 min6 min4,208886  0% 0% 0% 100%
148PHP #2 6 min6 min3,2601006  0% 0% 0% 100%
Haskell GHC Bad Output1421
Haskell GHC #4 Bad Output1413
"wrong" (different) algorithm / less comparable programs
0.7Perl #5 2.002.0027,7001113
0.9C gcc #2 2.362.375001169
5.1Haskell GHC #3 13.7413.741,9961408

 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