How big is the measured performance difference?

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

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

This table shows 5 measurements - CPU Time, Elapsed Time, Memory, Code and ~ CPU Load.

Compare how much Memory the regex-dna programs used - sort Memory KB. Compare how much Code the programs used - sort Code B

Column × shows how many times more each program used compared to the program that used least.

    sort sort sort sort
  ×   Program Source Code CPU secs Elapsed secs Memory KB Code B ~ CPU Load
1.0JavaScript V8 #2 5.325.33215,404373  0% 0% 0% 100%
2.0JavaScript TraceMonkey 10.7910.79636,800365  0% 0% 0% 100%
2.2JavaScript TraceMonkey #2 11.7811.78571,392373  0% 0% 0% 100%
2.4C++ GNU g++ #4 12.6412.64100,4361759  0% 0% 0% 100%
3.0C++ GNU g++ 15.8315.84100,0201588  0% 0% 0% 100%
3.7OCaml #3 19.7319.74389,536892  0% 0% 0% 100%
3.7OCaml 19.8019.80389,5321261  0% 0% 0% 100%
3.8OCaml #2 20.4720.46389,564615  0% 0% 0% 100%
4.6GNU gcc #4 24.4724.4783,2641525  0% 0% 0% 100%
4.6C++ GNU g++ #3 24.5124.50126,4641599  0% 0% 0% 100%
4.8Java 6 -server #5 25.3525.40683,724929  0% 0% 0% 100%
4.9Java 6 -server #4 25.9825.98817,304921  0% 0% 0% 100%
5.0Python CPython 26.8426.84210,956342  0% 0% 0% 100%
5.9GNU gcc #2 31.3331.33124,7801099  0% 0% 0% 100%
6.0ATS 31.7231.72172,5802551  0% 0% 0% 100%
6.1Scala #3 32.2732.32972,872659  0% 0% 0% 100%
6.2Scheme PLT 32.9332.93631,892835  0% 0% 0% 100%
6.2Scheme PLT #2 33.0533.05632,532669  0% 0% 0% 100%
6.5Java 6 -server #2 34.6834.69811,4401534  0% 0% 0% 100%
7.3Perl #2 38.7838.78165,064527  0% 0% 0% 100%
7.9Lisp SBCL #3 42.2442.24817,6601948  0% 0% 0% 100%
8.2Ada 2005 GNAT 43.9443.94176,3763334  0% 0% 0% 100%
9.0Perl #4 48.2148.21891,368440  0% 0% 0% 100%
9.1PHP #2 48.5548.55194,852449  0% 0% 0% 100%
9.3Scala #2 49.4849.501,034,5961520  0% 0% 0% 100%
9.8Lisp SBCL 52.4552.452,567,852591  0% 0% 0% 100%
10Ruby MRI 52.9752.97350,232323  0% 0% 0% 100%
14Ruby JRuby 74.3374.38532,756323  0% 0% 0% 100%
16C# Mono #6 83.4983.50627,388638  0% 0% 0% 100%
16C# Mono 84.5484.542,663,964624  0% 0% 0% 100%
16C# Mono #3 84.8584.852,929,352607  0% 0% 0% 100%
19C# Mono #5 99.4999.49552,2721647  0% 0% 0% 100%
19Erlang HiPE #6 101.43101.43177,2641058  0% 0% 0% 100%
23Erlang HiPE #5 123.01122.951,891,924855  0% 0% 0% 100%
29C# Mono #2 156.47156.462,599,492645  0% 0% 0% 100%
34Erlang HiPE 180.56180.291,450,9401022  0% 100% 0% 0%
64Java 6 -Xint #5 5 min5 min676,912929  0% 0% 1% 100%
66Smalltalk VisualWorks 5 min5 min299,348584  0% 0% 0% 100%
66Java 6 -Xint #4 5 min5 min634,380921  0% 0% 0% 100%
68Erlang HiPE #3 6 min6 min1,910,732687  0% 100% 0% 2%
78Go 6g 8g 6 min6 min635,912634  0% 1% 0% 100%
108Java 6 -Xint #2 9 min9 min843,5201534  0% 0% 0% 100%
Ada 2005 GNAT #3 Failed1233
Ada 2005 GNAT #4 Failed1352
Erlang HiPE #2 Failed808
Haskell GHC #4 Failed1672
JavaScript V8 Bad Output365
Scala Failed663
interesting alternative programs
 Fortran Intel Failed  2425
0.9Perl #6 4.734.73189,596477
0.9Perl #3 5.005.00287,800440
2.1Perl #5 11.1211.12190,136484
2.2Python CPython #2 11.9311.93213,144314
2.8Pascal Free Pascal #3 14.7014.70213,8162932
3.6Perl 19.4419.43189,780426
4.5Pascal Free Pascal 23.8423.84118,7521199
5.6F# Mono 29.9329.93634,236796
7.0Lua #3 37.3137.31357,792427
7.6Haskell GHC 40.5440.54459,276519
7.8Ruby MRI #2 41.6341.63424,724396
9.3PHP 49.3549.36201,9161044
12Ruby JRuby #2 61.3761.42543,296396
13C# Mono #4 70.2470.26437,032657
missing programs
Clean No program
F# Mono No program
Fortran Intel No program
Java 6 steady state No program
Lua 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 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