The same benchmark as above but excluding the two slowest/erroneous algorithms, allows me to run 1000 strings looking for common substrings of lengths 2 .. 6 and get more digestable results:
c:\test>608174-b -N=1000 -LENGTH=2
Rate BH2 BH1 MN L~R Buk
BH2 2.57/s -- -8% -52% -73% -86%
BH1 2.81/s 9% -- -48% -70% -85%
MN 5.41/s 110% 93% -- -43% -71%
L~R 9.46/s 268% 237% 75% -- -50%
Buk 18.9/s 635% 574% 249% 100% --
----
BH2 => 14
L~R => 14
Buk => 14
BH1 => 14
MN => 14
c:\test>608174-b -N=1000 -LENGTH=3
Rate BH1 MN BH2 L~R Buk
BH1 2.51/s -- -28% -54% -69% -81%
MN 3.50/s 40% -- -36% -57% -73%
BH2 5.47/s 118% 56% -- -33% -58%
L~R 8.20/s 227% 134% 50% -- -38%
Buk 13.2/s 425% 276% 141% 61% --
----
BH2 => 10
L~R => 10
Buk => 10
BH1 => 10
MN => 10
c:\test>608174-b -N=1000 -LENGTH=4
Rate BH1 MN L~R BH2 Buk
BH1 2.35/s -- -23% -70% -73% -80%
MN 3.05/s 30% -- -62% -64% -75%
L~R 7.92/s 237% 160% -- -8% -34%
BH2 8.58/s 265% 182% 8% -- -28%
Buk 12.0/s 410% 293% 51% 40% --
----
BH2 => 6
L~R => 6
Buk => 6
BH1 => 6
MN => 6
c:\test>608174-b -N=1000 -LENGTH=5
Rate BH1 MN L~R BH2 Buk
BH1 2.38/s -- -20% -71% -77% -80%
MN 2.98/s 25% -- -64% -71% -75%
L~R 8.25/s 246% 177% -- -21% -32%
BH2 10.4/s 337% 249% 26% -- -14%
Buk 12.1/s 408% 307% 47% 16% --
----
BH2 => 1
L~R => 1
Buk => 1
BH1 => 1
MN => 1
c:\test>608174-b -N=1000 -LENGTH=6
Rate BH1 MN L~R BH2 Buk
BH1 2.45/s -- -19% -70% -78% -80%
MN 3.02/s 23% -- -64% -73% -76%
L~R 8.29/s 238% 175% -- -26% -34%
BH2 11.2/s 358% 272% 35% -- -10%
Buk 12.5/s 410% 314% 51% 11% --
----
BH2 => 0
L~R => 0
Buk => 0
BH1 => 0
MN => 0
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|