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.0C++ GNU g++ #4 12.644.1597,5321759  79% 71% 89% 65%
1.2C++ GNU g++ 18.375.0497,4641588  87% 96% 90% 91%
1.3JavaScript V8 #2 5.325.31215,404373  100% 0% 0% 0%
2.0GNU gcc #4 24.678.21111,0201525  71% 65% 99% 65%
2.6JavaScript TraceMonkey 10.7910.80636,800365  0% 100% 0% 0%
2.6Java 6 -server #5 26.6710.91681,824929  57% 68% 63% 55%
2.7OCaml 19.8311.29389,5321261  25% 86% 25% 40%
2.7OCaml #3 19.8411.36389,536892  38% 85% 26% 26%
2.8JavaScript TraceMonkey #2 11.7911.79558,544373  100% 0% 0% 0%
3.1Perl #2 38.6112.84167,208527  78% 66% 76% 81%
3.1Haskell GHC #4 36.4412.93188,3361672  58% 88% 66% 63%
3.2Scala #3 30.6213.47747,292659  71% 63% 47% 44%
3.3Java 6 -server #2 39.9713.63850,1801534  66% 73% 83% 70%
4.0Ada 2005 GNAT 45.9916.50183,7323334  79% 68% 61% 66%
4.9Lisp SBCL #3 44.5820.28787,4041948  51% 42% 75% 50%
4.9OCaml #2 20.2920.29389,564615  100% 0% 0% 0%
5.9C++ GNU g++ #3 24.4924.49126,4121599  0% 0% 0% 100%
6.2Java 6 -server #4 26.1725.70874,580921  41% 2% 57% 1%
6.3Scala #2 54.5226.261,031,0121520  39% 77% 44% 47%
6.5Python CPython 26.8526.85203,644342  100% 0% 0% 0%
7.5GNU gcc #2 31.0631.06124,7801099  100% 0% 0% 0%
7.6ATS 31.7031.70172,4122551  0% 0% 100% 0%
7.9Scheme PLT 32.9332.93597,148835  0% 0% 0% 100%
8.0Scheme PLT #2 33.2133.21625,652669  0% 0% 0% 100%
8.5C# Mono #6 89.6035.19586,488638  53% 77% 69% 55%
12PHP #2 48.4448.44206,796449  0% 100% 0% 0%
12Perl #4 49.0749.07891,364440  0% 0% 0% 99%
12Ruby MRI 50.2150.21350,236323  0% 100% 0% 0%
12C# Mono #5 158.5751.88551,6481647  86% 77% 73% 67%
16Erlang HiPE #6 206.2165.25190,0681058  64% 61% 88% 97%
19Ruby JRuby 81.0177.02551,716323  4% 8% 92% 3%
19Erlang HiPE #5 216.3579.011,550,336855  51% 63% 65% 92%
20C# Mono 84.2884.262,657,964624  0% 100% 0% 0%
20C# Mono #3 84.3084.292,617,220607  100% 0% 0% 0%
31Erlang HiPE 5 min127.551,644,3481022  56% 48% 94% 46%
35Java 6 -Xint #5 5 min143.55678,096929  84% 73% 64% 66%
38C# Mono #2 156.01155.992,686,112645  0% 0% 0% 100%
48Java 6 -Xint #2 9 min197.25686,2881534  70% 66% 86% 72%
83Java 6 -Xint #4 5 min5 min628,848921  0% 0% 0% 100%
85Smalltalk VisualWorks 5 min5 min299,340584  0% 0% 100% 0%
94Erlang HiPE #3 6 min6 min2,442,316687  96% 4% 1% 0%
101Go 6g 8g 6 min6 min635,908634  0% 0% 0% 100%
Ada 2005 GNAT #3 Failed1233
Ada 2005 GNAT #4 Failed1352
Erlang HiPE #2 Failed808
JavaScript V8 Bad Output365
Lisp SBCL Failed591
Scala Failed663
interesting alternative programs
 Fortran Intel Failed  2425
1.2Perl #6 4.784.78190,988477
1.2Perl #3 4.964.95288,312440
2.7Perl #5 11.2411.24190,956484
2.9Python CPython #2 11.9311.93213,144314
3.1Haskell GHC 38.7813.07458,300519
3.5Pascal Free Pascal #3 14.6814.68220,2682932
4.6Perl 19.1719.17189,408426
4.8PHP 49.4919.98227,6441044
5.2F# Mono 30.5621.74642,148796
5.7Pascal Free Pascal 23.8223.82117,8881199
9.0Lua #3 37.3237.32360,344427
9.6Ruby MRI #2 40.0040.00424,724396
15Ruby JRuby #2 64.5360.87510,264396
17C# Mono #4 70.1870.19439,980657
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