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 !
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.) 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)Here's the test output:5.0.1reference.drl Count: 2000reference.drl Time: 267msreference.drl Time per element: 0.1335msBAR Duplicates: 780FOO Duplicates: 880reference.drl Count: 20000reference.drl Time: 1249msreference.drl Time per element: 0.06245msBAR Duplicates: 7702FOO Duplicates: 8040from.drl Count: 200from.drl Time: 1139msfrom.drl Time per element: 5.695msBAR Duplicates: 112FOO Duplicates: 102reference.drl Count: 200reference.drl Time: 5msreference.drl Time per element: 0.025msBAR Duplicates: 86FOO Duplicates: 605.1.0reference.drl Count: 2000reference.drl Time: 300msreference.drl Time per element: 0.15msBAR Duplicates: 788FOO Duplicates: 820reference.drl Count: 20000reference.drl Time: 1564msreference.drl Time per element: 0.0782msBAR Duplicates: 8142FOO Duplicates: 7960from.drl Count: 200from.drl Time: 3543msfrom.drl Time per element: 17.715msBAR Duplicates: 68FOO Duplicates: 90reference.drl Count: 200reference.drl Time: 13msreference.drl Time per element: 0.065msBAR Duplicates: 84FOO Duplicates: 74On 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.GreG
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev