See
http://www.javaworld.com/javaworld/javaqa/2003-04/01-qa-0411-hotspot.html

Am 13.08.2008 um 13:46 schrieb Hehl, Thomas:

What does this mean? Because of garbage collection?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Corneil du Plessis
Sent: Wednesday, August 13, 2008 5:42 AM
To: 'Rules Users List'
Subject: RE: [rules-users] Java code Vs Drools

Make sure when you do performance testing that you run through enough
iterations so that the engine code benefits from HotSpot.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harsh Jetly
Sent: 13 August 2008 11:03
To: [email protected]
Subject: [rules-users] Java code Vs Drools


I have been evaluating the rule engine (ie Drools 4.0.4). I have created an application which has about 20 rules . I insert about 500 arraylists into the working memory and each arraylist contains about 4 objects. The rule engine picks the object that is the best match from the arraylist and stores
it .
This processing takes about 0.953 secs .

Now this very same scenario I have implemented in using java code (if
..else)...it takes about 0.016secs .

I was expecting the rule engine to give a better performance. Considering
the use of alpha node caching and other factors of the rete algorithm.

This is how one of the rules look in the rule file :

rule "P1 110"

salience 1
activation-group "1"

     when
           PriorityType( pricetype == "10,20,30,40,110" )
           list :ArrayList(  )
           t:TlbObjectAttributeData( lngAttrTypeId == 110 ) from list
     then
                 result.add(t);

end


Am I doing something wrong or this application is not harnessing the pluses
of the rule engine .

If so can you please tell me which kind of application should I build to
highlight the performance of a rule engine .

Appreciate it


Regards
Harsh Jetly
SOA
Center of Excellence



______________________________________________________________________
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to