/mobile Handheld Friendly website

 k-nucleotide benchmark ≈240MB N=25,000,000

Each chart bar shows how many times slower, one ↓ k-nucleotide 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.0C++ g++ #3 19.5119.54155,9201252  0% 0% 0% 100%
1.3Scala #2 24.6624.68213,1282080  0% 0% 0% 100%
1.8Ada 2005 GNAT #2 35.0035.04256,1444865  0% 0% 0% 100%
1.9Lisp SBCL #5 36.9737.01138,3082301  0% 0% 0% 100%
1.9Lisp SBCL #4 37.1237.16138,3002272  0% 0% 0% 100%
2.1C gcc #7 40.7940.82180,1402280  0% 0% 0% 100%
2.4ATS #2 46.1946.22125,9083238  0% 0% 0% 100%
2.6Java 7  #2 50.5050.55451,2081602  0% 0% 0% 100%
2.6Java 7  #3 50.8250.88448,2001630  0% 0% 0% 100%
2.9C gcc #6 56.9456.97180,1482439  0% 0% 0% 100%
3.0OCaml #3 57.8257.89258,4801789  0% 0% 0% 100%
3.0Haskell GHC 58.2258.29357,5241693  0% 0% 0% 100%
3.1Fortran Intel #2 59.7559.79195,7562079  0% 0% 0% 100%
3.4Haskell GHC #2 66.2566.32336,1321965  0% 0% 0% 100%
3.6OCaml 70.6870.74411,192870  0% 0% 0% 100%
3.8C# Mono #4 73.2973.34559,5441696  0% 0% 0% 100%
3.9ATS #3 75.2575.29136,6923810  0% 0% 0% 100%
4.0C# Mono 77.1777.22520,5041420  0% 0% 0% 100%
4.0Go #5 77.6377.69262,1801268  0% 0% 0% 100%
4.0Pascal Free Pascal #2 78.9278.96130,5682383  0% 0% 0% 100%
4.1OCaml #2 80.1180.20437,9321205  0% 0% 0% 100%
4.2Fortran Intel 81.6681.71186,8642238  0% 0% 0% 100%
4.6Clojure #7 89.2789.33993,4323030  0% 0% 0% 100%
4.6C# Mono #3 90.7390.81505,4401404  0% 0% 0% 100%
4.7Haskell GHC #3 91.3691.44431,7802749  0% 0% 0% 100%
4.7Racket #4 91.4391.49379,580881  0% 0% 0% 100%
4.9Scala #6 93.8795.82492,3441380  0% 0% 0% 100%
6.2Clojure #6 120.22121.17988,9441737  0% 1% 0% 100%
7.3Lisp SBCL #2 143.30143.38489,8721277  0% 0% 0% 100%
7.4Lisp SBCL #3 143.54144.72489,8721284  0% 0% 0% 100%
8.0C# Mono #5 156.19156.34538,8562445  0% 0% 0% 100%
9.3C# Mono #2 181.50181.69533,7001012  0% 0% 0% 100%
9.8Clojure #4 191.86192.02992,0201944  0% 0% 0% 100%
10Lua #2 192.80194.92707,636613  0% 0% 0% 100%
10Racket 195.55195.721,304,812542  0% 0% 0% 100%
11Go 211.62215.45386,616980  0% 0% 0% 100%
11Perl #2 212.24215.90778,052359  0% 0% 0% 100%
14F# Mono 267.03267.31626,644701  0% 0% 0% 100%
15Erlang HiPE #3 292.66296.501,160,884932  0% 0% 0% 100%
16JavaScript V8 #2 5 min5 min446,180451  0% 0% 0% 100%
18PHP #4 5 min5 min247,6361060  0% 0% 0% 100%
18Smalltalk VisualWorks #5 5 min5 min380,8521153  0% 0% 0% 100%
18Erlang HiPE 5 min5 min3,632,748930  8% 2% 1% 100%
20Python 3 #8 6 min6 min487,132647  0% 0% 0% 100%
24Ruby JRuby #3 7 min7 min925,096540  0% 0% 0% 100%
24Ruby JRuby 7 min7 min925,796637  0% 0% 0% 100%
24Python 3 7 min7 min402,572487  0% 0% 0% 100%
28Ruby 2.0 #3 9 min9 min227,564540  0% 0% 0% 100%
29Ruby 2.0 #2 9 min9 min184,640420  0% 0% 0% 100%
33Ruby 2.0 10 min10 min128,856637  0% 0% 0% 100%
C++ g++ Make Error2106
Erlang HiPE #2 Failed997
JavaScript V8 #3 Timed Out1h 00 min390
JavaScript V8 Timed Out1h 00 min423
Lisp SBCL Bad Output847
Perl Failed648
Racket #2 Bad Output842
Ruby JRuby #2 Failed421
Scala Failed1625
Scala #4 Failed1287
"wrong" (different) algorithm / less comparable programs
0.4C++ g++ #5 7.147.1550,2603416
0.4Java 7  8.038.05201,1165211
0.5C gcc #4 8.838.85174,8042409
0.5C++ g++ #6 9.589.59142,1163415
0.7Ada 2005 GNAT 14.1514.17400,4086503
1.6C# Mono #6 31.3532.15116,0681433
2.8C gcc #5 54.9555.00281,5282519
4.9Python 3 #2 95.9496.02496,564624
missing benchmark programs
Dart No program

 k-nucleotide benchmark : Hashtable update and k-nucleotide strings

diff program output for this 250KB input file (generated with the fasta program N = 25000) with this 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.

We use FASTA files generated by the fasta benchmark as input for this benchmark. Note: the file may include both lowercase and uppercase codes.

Each program should

In practice, less brute-force would be used to calculate k-nucleotide frequencies, for example Virus Classification using k-nucleotide Frequencies and A Fast Algorithm for the Exhaustive Analysis of 12-Nucleotide-Long DNA Sequences. Applications to Human Genomics (105KB pdf).

Revised BSD license

  Home   Conclusions   License   Play