<html><body bgcolor="#FFFFFF"><div>It appears that 5.0.1 has a slight edge. &nbsp;At 1024M heap 5.1.0 OOMEs at test size 85k (190k total objects, with half matched to the other half) while 5.0.1 can handle it...barely. It OOMEs at 86k. :)</div><div><br>GreG</div><div><br>On Sep 2, 2010, at 22:33, Michael Neale &lt;<a href="mailto:michael.neale@gmail.com">michael.neale@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>would be interesting to see memory usage as well. I know its the poor red headed cousin to execution time performance, but it still matters !<br><br><div class="gmail_quote">On Fri, Sep 3, 2010 at 12:46 PM, Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com"><a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.com</a></a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">I've observed a sizable (25%) performance degradation between the 5.0.1 and 5.1.0 releases. &nbsp;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) &nbsp;</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&nbsp;1249ms while 5.1.0 took&nbsp;1564ms, and for larger tests the effect is more pronounced. &nbsp;This is primarily a test of == on object references.</div>
<div><br></div><div>GreG</div></td></tr></tbody></table><br>

      <br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org"><a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a></a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank"><a href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a></a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael D Neale<br>home: <a href="http://www.michaelneale.net"><a href="http://www.michaelneale.net">www.michaelneale.net</a></a><br>blog: <a href="http://michaelneale.blogspot.com"><a href="http://michaelneale.blogspot.com">michaelneale.blogspot.com</a></a><br>

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>rules-dev mailing list</span><br><span><a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a></span><br></div></blockquote><br>

      </body></html>