<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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 cite="mid:491227.66014.qm@web81501.mail.mud.yahoo.com"
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 wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>