/mobile Handheld Friendly website

 regex-dna benchmark ≈50MB N=5,000,000

Each chart bar shows how many times more Memory, one ↓ regex-dna 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.0C gcc #4 18.626.1886,7681525  64% 65% 73% 100%
1.1C++ g++ #4 12.794.3894,8641759  84% 51% 58% 100%
1.1Ada 2005 GNAT #5 17.795.7098,7763492  74% 77% 93% 69%
1.3Ada 2005 GNAT #6 18.716.18114,2323740  67% 72% 100% 65%
1.4C gcc #2 23.6723.68124,7681099  0% 0% 100% 0%
1.6Perl #2 30.7511.21141,108527  49% 70% 76% 80%
1.7Hack #4 27.939.53150,480832  99% 66% 67% 62%
1.7PHP #4 26.249.60151,380832  52% 70% 57% 95%
1.8Ruby #5 29.3429.35154,896343  0% 100% 0% 0%
1.9Ruby #6 25.3225.33165,064442  0% 100% 0% 0%
2.1C++ g++ #3 27.3017.33178,296844  64% 1% 0% 100%
2.2Perl #4 62.2662.29189,296440  0% 0% 0% 100%
2.2C++ g++ #2 5.643.90193,828695  11% 76% 35% 25%
2.4PHP #3 26.3226.34208,852459  80% 0% 0% 21%
2.4PHP 12.0610.71210,752788  64% 57% 46% 79%
2.5C++ g++ 5.615.62215,272648  1% 1% 1% 100%
2.5PHP #2 34.1934.22216,440449  92% 0% 8% 0%
2.9Haskell GHC #2 35.699.52250,0081518  93% 91% 96% 96%
3.0C# Mono #2 75.0275.04263,052594  0% 16% 69% 16%
3.1OCaml #4 1.468.96264,7441050  84% 95% 85% 85%
3.1Hack 13.1711.20267,120787  49% 76% 71% 51%
3.1Python 3 22.9810.42269,120478  40% 48% 83% 55%
3.2Hack #2 27.5427.56281,292446  1% 100% 0% 1%
3.3C# Mono #6 76.7029.96282,620638  60% 75% 55% 67%
3.3Hack #3 27.3827.41288,600456  1% 100% 0% 1%
3.4Ruby #3 34.1615.00291,124501  42% 41% 91% 54%
3.5Erlang #6 179.8857.58301,5441058  99% 76% 65% 72%
3.6C gcc 5.862.52316,4522579  44% 69% 51% 71%
3.8Python 3 #5 23.5623.58326,816424  1% 0% 100% 0%
3.9Erlang HiPE #6 182.8147.68337,0961058  92% 96% 99% 97%
4.0Ruby 48.3748.39346,140308  0% 100% 0% 0%
4.5Ruby #2 33.8433.86389,432417  37% 15% 29% 21%
5.1Go #7 65.6664.98442,132652  30% 1% 70% 1%
5.9OCaml #2 19.0419.06511,656615  43% 0% 0% 57%
5.9OCaml #3 19.2510.81511,7161014  27% 26% 39% 87%
5.9OCaml 19.2710.78511,7241502  88% 26% 26% 39%
6.5Java  #7 21.4921.19562,9481284  93% 1% 8% 1%
6.6Java  #2 47.7714.93569,9761534  80% 76% 80% 84%
6.7Go #8 65.3119.80579,908785  88% 88% 77% 77%
6.9C# Mono 76.4676.51601,564624  100% 0% 1% 1%
7.3Clojure #4 39.2012.85636,492707  73% 85% 73% 76%
7.9Go 130.9442.58684,440733  72% 71% 70% 95%
8.2Java  #5 24.528.59707,744929  80% 64% 79% 64%
8.3Racket 40.0740.07720,060527  0% 1% 100% 0%
8.4Java  #4 25.0423.61727,292921  11% 3% 4% 90%
8.6Scala 39.6335.87742,396611  13% 21% 15% 63%
9.7F# Mono #2 77.8177.86837,676413  100% 1% 1% 1%
10Scala #2 34.3015.58862,756668  53% 59% 70% 39%
11F# Mono 73.2621.64917,272639  82% 89% 86% 82%
11Lisp SBCL #3 41.0219.36929,6361948  91% 38% 43% 41%
12Ruby JRuby #6 46.4640.881,002,964442  22% 25% 43% 25%
12Ruby JRuby #5 45.2639.491,004,576343  11% 59% 5% 41%
24Ruby JRuby #3 58.6921.732,059,328501  72% 66% 60% 73%
25Ruby JRuby #2 58.2821.452,151,328417  65% 63% 63% 82%
26Ruby JRuby 90.4280.392,222,052308  38% 5% 60% 11%
26F# Mono #3 74.6324.382,232,348870  76% 77% 71% 83%
Clojure #3 Failed710
Dart #2 Timed Out5 min648
Dart Failed632
Erlang Timed Out10 min622
Erlang HiPE Timed Out10 min622
Java  #6 Failed1410
Lisp SBCL Bad Output591
Racket #2 Bad Output536
Scala #4 Failed723
Scala #3 Failed633
"wrong" (different) algorithm / less comparable programs
1.3Pascal Free Pascal 19.5519.56110,5641199
1.6Perl #7 4.332.92140,044567
2.2Perl #6 4.454.46190,244477
2.8Java  #3 8.283.01246,6042084
4.5Erlang HiPE #7 7.803.05387,6161198
4.5Erlang #7 8.613.59387,6321198
missing benchmark programs
Fortran Intel No program
Pascal Free Pascal No program
Rust No program

 regex-dna benchmark : Match DNA 8-mers and substitute nucleotides for IUB codes

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

Revised BSD license

  Home   Conclusions   License   Play