]
David Ward commented on JBRULES-2764:
-------------------------------------
Thanks, Tihomir. Using the new .getDefaultInstance() from the configurations appears to
have made a big positive impact on session creation time!
It also helped improve the execution tests from 5.1.1, although still significantly slower
than execution in 5.0.1. I'm not the one to say whether the improvement is "good
enough", though. However I can understand the short-term limitation given the new
features. Thanks again.
Performance degradation from 4.0.7 to 5.0.1 to 5.1.1
----------------------------------------------------
Key: JBRULES-2764
URL:
https://issues.jboss.org/browse/JBRULES-2764
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core, drools-core (expert)
Affects Versions: 5.0.1.FINAL, 5.1.1.FINAL
Environment: Sun JDK 1.6.0_20 on Fedora 11 (Linux
2.6.30.10-105.2.23.fc11.i686.PAE)
Reporter: David Ward
Assignee: Mark Proctor
Fix For: 5.2.0.M1
Attachments: JBRULES-2764.patch
I have noticed a performance degradation from 4.0.7 to 5.0.1, and 5.0.1 to 5.1.1. Both
in creating new StatelessSessions, and executing them.
I am attaching a portable test case which shows the degradation. Please refer to the
test.zip!/README.txt file for full instructions and explanation.
For the purpose of this jira description (and to show the degradation from a high-level),
here is sample output. Note that the run*.sh scripts only create new StatelessSessions,
but do not execute them. The exec*.sh scripts also execute the StatelessSessions.
run407.sh
RuleTest: count=10000, total=33ms, average=0.0033ms
KnowledgeTest: API not available
run501.sh
RuleTest: count=10000, total=1147ms, average=0.1147ms
KnowledgeTest: count=10000, total=784ms, average=0.0784ms
run511.sh
RuleTest: count=10000, total=2381ms, average=0.2381ms
KnowledgeTest: count=10000, total=2007ms, average=0.2007ms
exec407.sh
RuleTest: count=10000, total=875ms, average=0.0875ms
KnowledgeTest: API not available
exec501.sh
RuleTest: count=10000, total=2641ms, average=0.2641ms
KnowledgeTest: count=10000, total=2223ms, average=0.2223ms
exec511.sh
RuleTest: count=10000, total=4188ms, average=0.4188ms
KnowledgeTest: count=10000, total=3664ms, average=0.3664ms
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: