<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Oops! It's attached, and https://jira.jboss.org/browse/JBRULES-2685<div><br></div><div>Sorry about not getting to this until after the release. I only recently (like, yesterday) got back to hacking after work hours after a multiple month hiatus. <br><br>--- On <b>Thu, 9/2/10, Mark Proctor <i><mproctor@codehaus.org></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Mark Proctor <mproctor@codehaus.org><br>Subject: Re: [rules-dev] FYI: Performance degradation from 5.0.1 to 5.1.0<br>To: rules-dev@lists.jboss.org<br>Date: Thursday, September 2, 2010, 9:51 PM<br><br><div id="yiv2116608185">
I think the attachment is missing, maybe use jira and attach it
there?<br>
<br>
Mark<br>
On 03/09/2010 03:46, Greg Barton wrote:
<blockquote type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font:inherit;" valign="top">I've observed a
sizable (25%) performance degradation between the 5.0.1
and 5.1.0 releases. I've attached a sample project that
tests the performance of matching nested objects. (ANd
compares direct reference matching and the performance
pitfalls of "from," but that's beside the current point.)
<div><br>
</div>
<div>If you switch the pom.xml from using 5.0.1 to 5.1.0
for the drools dependencies you'll see 25% longer
execution times on the tests. (mvn test) </div>
<div><br>
</div>
<div>Here's the test output:</div>
<div><br>
</div>
<div>5.0.1</div>
<div><br>
</div>
<div>
<div>reference.drl Count: 2000</div>
<div>reference.drl Time: 267ms</div>
<div>reference.drl Time per element: 0.1335ms</div>
<div>BAR Duplicates: 780</div>
<div>FOO Duplicates: 880</div>
<div><br>
</div>
<div>reference.drl Count: 20000</div>
<div>reference.drl Time: 1249ms</div>
<div>reference.drl Time per element: 0.06245ms</div>
<div>BAR Duplicates: 7702</div>
<div>FOO Duplicates: 8040</div>
<div><br>
</div>
<div>from.drl Count: 200</div>
<div>from.drl Time: 1139ms</div>
<div>from.drl Time per element: 5.695ms</div>
<div>BAR Duplicates: 112</div>
<div>FOO Duplicates: 102</div>
<div><br>
</div>
<div>reference.drl Count: 200</div>
<div>reference.drl Time: 5ms</div>
<div>reference.drl Time per element: 0.025ms</div>
<div>BAR Duplicates: 86</div>
<div>FOO Duplicates: 60</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>5.1.0</div>
<div><br>
</div>
<div>
<div>reference.drl Count: 2000</div>
<div>reference.drl Time: 300ms</div>
<div>reference.drl Time per element: 0.15ms</div>
<div>BAR Duplicates: 788</div>
<div>FOO Duplicates: 820</div>
<div><br>
</div>
<div>reference.drl Count: 20000</div>
<div>reference.drl Time: 1564ms</div>
<div>reference.drl Time per element: 0.0782ms</div>
<div>BAR Duplicates: 8142</div>
<div>FOO Duplicates: 7960</div>
<div><br>
</div>
<div>from.drl Count: 200</div>
<div>from.drl Time: 3543ms</div>
<div>from.drl Time per element: 17.715ms</div>
<div>BAR Duplicates: 68</div>
<div>FOO Duplicates: 90</div>
<div><br>
</div>
<div>reference.drl Count: 200</div>
<div>reference.drl Time: 13ms</div>
<div>reference.drl Time per element: 0.065ms</div>
<div>BAR Duplicates: 84</div>
<div>FOO Duplicates: 74</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>On the most taxing test (20k objects) 5.0.1
took 1249ms while 5.1.0 took 1564ms, and for larger
tests the effect is more pronounced. This is primarily
a test of == on object references.</div>
<div><br>
</div>
<div>GreG</div>
</td>
</tr>
</tbody>
</table>
<br>
<pre><fieldset class="yiv2116608185mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a rel="nofollow" class="yiv2116608185moz-txt-link-abbreviated" ymailto="mailto:rules-dev@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a rel="nofollow" class="yiv2116608185moz-txt-link-freetext" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-dev mailing list<br><a ymailto="mailto:rules-dev@lists.jboss.org" href="/mc/compose?to=rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br></div></blockquote></div></td></tr></table><br>