/mobile Handheld Friendly website

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

Each chart bar shows how many times slower, one ↓ regex-dna 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.0JavaScript V8 #2 3.783.80310,368373  2% 1% 1% 100%
1.4C gcc 5.465.48286,7482579  0% 0% 1% 100%
1.6C++ g++ 5.986.00185,560648  0% 1% 1% 100%
1.6C++ g++ #2 6.016.02173,736695  0% 0% 1% 100%
5.0Ada 2005 GNAT #5 18.9518.9799,4843492  0% 0% 0% 100%
5.2C gcc #4 19.5419.5581,7481525  0% 0% 0% 100%
5.2Ada 2005 GNAT #6 19.6219.65113,9323740  0% 1% 0% 100%
5.6Python 3 #5 21.1321.14194,612424  0% 0% 0% 100%
5.7C++ g++ #4 21.4621.4890,9441759  0% 0% 0% 100%
6.0Java 7  #7 22.6322.66557,0801284  0% 0% 0% 100%
6.4Java 7  #6 24.2324.27543,0321410  1% 0% 0% 100%
6.8C gcc #2 25.6525.66124,6881099  0% 0% 0% 100%
6.8Java 7  #4 25.7525.79735,744921  1% 0% 0% 100%
6.9Python 3 26.0126.14244,284478  0% 0% 0% 100%
6.9Java 7  #5 26.2726.32719,324929  1% 0% 0% 100%
7.1PHP #3 26.7626.78207,000459  0% 0% 0% 100%
7.3ATS 27.6127.62165,2562482  0% 0% 0% 100%
7.3ATS #2 27.6227.64226,8803474  0% 0% 1% 100%
7.5Haskell GHC #2 28.4628.48266,4841518  0% 0% 0% 100%
8.1Perl #2 30.8830.92140,068527  0% 0% 0% 100%
8.2C++ g++ #3 31.1731.18174,432844  0% 1% 1% 100%
9.1PHP #2 34.6034.62223,892449  0% 0% 0% 100%
9.3Scala #2 35.2535.28776,552668  0% 0% 0% 100%
9.5Java 7  #2 36.0636.11717,5081534  1% 0% 0% 100%
9.7Scala 36.5836.65810,892611  0% 0% 0% 100%
11Racket 40.7640.79598,772527  0% 0% 0% 100%
11Ruby 2.0 #2 41.4641.48312,596417  0% 0% 0% 100%
11Ruby 2.0 #3 41.7841.82262,992501  1% 0% 0% 100%
12Lua 43.9043.94494,992437  0% 0% 0% 100%
12Ruby JRuby #3 44.0544.091,966,524501  0% 0% 0% 100%
12Ruby JRuby #2 44.4144.451,966,748417  0% 0% 0% 100%
12Lisp SBCL #3 45.3045.33944,7361948  0% 0% 0% 100%
16Ruby 2.0 59.4859.50263,460308  0% 0% 0% 100%
17Clojure #3 63.3863.41548,084710  0% 0% 0% 100%
18F# Mono 66.2666.422,752,712639  0% 0% 0% 100%
18C# Mono #2 69.6669.72837,780594  0% 0% 0% 100%
19C# Mono #6 70.4270.50890,952638  0% 0% 0% 100%
19Go #8 72.6272.651,072,644785  1% 0% 0% 100%
19Go #7 72.8572.89724,312652  0% 0% 0% 100%
19Perl #4 73.3473.37188,720440  0% 0% 0% 100%
21Ruby JRuby 78.1778.211,912,668308  0% 0% 0% 100%
30Erlang HiPE #6 114.18114.22145,4761058  0% 0% 0% 100%
44Go 167.77167.84620,988733  0% 0% 0% 100%
85Smalltalk VisualWorks 5 min5 min376,248584  0% 0% 0% 100%
C CINT #2 Failed1099
C CINT Bad Output1101
C# Mono Failed624
Dart Timed Out1h 00 min632
Erlang HiPE Timed Out10 min622
F# Mono #3 Failed870
F# Mono #2 Failed413
JavaScript V8 Bad Output365
Lisp SBCL Failed591
OCaml #4 Failed1050
OCaml #2 Failed615
OCaml Failed1502
OCaml #3 Failed1014
Racket #2 Bad Output536
Ruby 2.0 #4 Bad Output523
Ruby JRuby #4 Bad Output523
Scala #3 Failed633
Scala #4 Failed723
"wrong" (different) algorithm / less comparable programs
1.2Perl #7 4.394.41139,804567
1.2Perl #6 4.604.61189,608477
1.9Erlang HiPE #7 7.387.39145,8401198
2.2Java 7  #3 8.148.16255,5162084
5.4Pascal Free Pascal 20.5420.55124,5441199
missing benchmark programs
Fortran Intel No program
Pascal Free Pascal 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