/mobile Handheld Friendly website

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

Each chart bar shows how many times more Code, one ↓ regex-dna program used, compared to the program that used least Code.

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.

    sortsortsort 
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ≈ CPU Load
1.0Ruby 57.4557.48301,984308  1% 1% 1% 100%
1.0Ruby JRuby 101.11101.181,922,596308  1% 0% 0% 100%
1.1Ruby JRuby #5 49.1649.201,003,532343  0% 1% 1% 100%
1.1Ruby #5 35.9435.96103,552343  0% 1% 1% 100%
1.2JavaScript V8 #2 3.853.86406,048373  1% 1% 0% 100%
1.3F# Mono #2 79.4179.461,573,940413  0% 1% 2% 100%
1.4Ruby #2 42.5142.53349,000417  0% 1% 0% 100%
1.4Ruby JRuby #2 59.2659.312,100,456417  0% 1% 1% 100%
1.4Python 3 #5 23.9223.94247,788424  0% 1% 1% 100%
1.4Lua 43.9043.94494,992437  0% 0% 0% 100%
1.4Perl #4 73.3473.37188,720440  0% 0% 0% 100%
1.4Ruby JRuby #6 59.8259.86932,816442  0% 0% 0% 100%
1.4Ruby #6 28.1428.15162,792442  0% 1% 1% 100%
1.5PHP #2 34.5834.60221,252449  0% 0% 0% 100%
1.5PHP #3 26.5026.52219,260459  1% 0% 0% 100%
1.6Python 3 24.0424.16236,128478  0% 1% 1% 100%
1.6Ruby #3 43.0243.06271,304501  1% 1% 1% 100%
1.6Ruby JRuby #3 59.0659.112,030,980501  0% 1% 1% 100%
1.7Racket 39.8839.91642,384527  0% 0% 1% 100%
1.7Perl #2 30.8830.92140,068527  0% 0% 0% 100%
1.9Smalltalk VisualWorks 5 min5 min376,248584  0% 0% 0% 100%
1.9C# Mono #2 76.1876.21276,712594  0% 0% 1% 100%
1.9Lua #2 30.2330.25350,336596  0% 0% 0% 100%
2.0Scala 36.1836.22847,908611  0% 1% 0% 100%
2.0C# Mono 81.7681.821,029,440624  0% 0% 1% 100%
2.1C# Mono #6 76.6376.67260,496638  0% 0% 1% 100%
2.1F# Mono 72.8272.861,006,272639  0% 1% 1% 100%
2.1C++ g++ 5.935.94172,744648  0% 1% 0% 100%
2.1Go #7 72.5672.59523,592652  0% 0% 0% 100%
2.2Scala #2 34.8434.86864,848668  0% 1% 0% 100%
2.2Lua #3 19.6919.71224,592669  0% 0% 0% 100%
2.3C++ g++ #2 5.905.92174,664695  1% 1% 1% 100%
2.3Clojure #4 43.7243.75612,192707  1% 1% 0% 100%
2.3Clojure #3 65.3265.37555,908710  1% 1% 0% 100%
2.4Go 135.10135.15593,776733  0% 1% 1% 100%
2.5Go #8 72.5272.55743,484785  0% 1% 0% 100%
2.6PHP 12.1126.62220,732788  0% 0% 0% 100%
2.7PHP #4 26.6826.70150,660832  0% 0% 0% 100%
2.7C++ g++ #3 31.0331.05174,352844  0% 1% 1% 100%
2.8F# Mono #3 75.9776.012,346,952870  0% 0% 0% 100%
3.0Java  #4 25.0825.10734,540921  1% 1% 0% 100%
3.0Java  #5 25.8725.89729,500929  1% 1% 0% 100%
3.4Erlang HiPE #6 114.18114.22145,4761058  0% 0% 0% 100%
3.6C gcc #2 25.6025.61124,6921099  0% 1% 1% 100%
4.2Java  #7 22.2722.28558,3201284  1% 1% 0% 100%
4.9Haskell GHC #2 28.1828.19241,3721518  0% 0% 1% 100%
5.0C gcc #4 19.5519.5679,3801525  0% 1% 0% 100%
5.0Java  #2 34.5134.53705,8641534  1% 0% 0% 100%
5.7C++ g++ #4 14.0214.0391,4961759  2% 1% 1% 100%
6.3Lisp SBCL #3 43.0343.06933,4841948  0% 1% 1% 100%
8.4C gcc 5.765.77288,8322579  1% 1% 1% 100%
11Ada 2005 GNAT #5 19.2619.2998,2203492  0% 1% 1% 100%
12Ada 2005 GNAT #6 19.6319.66102,3123740  0% 0% 0% 100%
C CINT #2 Failed1099
C CINT Bad Output1101
Dart Failed632
Dart #2 Timed Out5 min648
Erlang HiPE Timed Out10 min622
Java  #6 Failed1410
JavaScript V8 Bad Output365
Lisp SBCL Timed Out10 min591
OCaml #4 Failed1050
OCaml #2 Failed615
OCaml Failed1502
OCaml #3 Failed1014
Racket #2 Bad Output536
Scala #3 Failed633
Scala #4 Failed723
"wrong" (different) algorithm / less comparable programs
1.5Perl #6 4.604.61189,608477
1.8Perl #7 4.394.41139,804567
3.9Erlang HiPE #7 7.387.39145,8401198
3.9Pascal Free Pascal 20.5420.55124,5441199
6.8Java  #3 8.238.24257,7762084
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