Exceeding a goal is ambiguous.  JCS is meeting the
performance goal and then some.  Times for a region
using the LRUMemoryCache are near Hashtable for get
and sometimes better for puts.  

I'm adding a unit test that enforces this minimum
standard on the LRUMemoryCache.

Outside the IDE, through junit tests in the Maven
build, I'm consistently getting better results for
puts in JCS than in the Hashtable.  

 ex.

Finished 20 loops of 50000 gets and puts

Put average for JCS       = 312
Put average for Hashtable = 349
JCS puts took 0.8939828 times the Hashtable, the goal
is <2.5x


Get average for JCS       = 91
Get average for Hashtable = 56
JCS gets took 1.625 times the Hashtable, the goal is
<2.5x


Aaron

--- Aaron Smuts <[EMAIL PROTECTED]> wrote:
> The JSR 107 set a tentative performance goal for a
> cache at <2x a Hastable.  
> 
> JCS, using the LRUMemoryCache, is exceeding this
> performance goal.  Here are aome results from a few
> simple tests:
> 
> ------------------------------------------
> Finished 20 loops of 50000 gets and puts
> 
> Put average for JCS       = 235
> Put average for Hashtable = 157
> JCS puts took 1.4968153 times the Hashtable, the
> goal
> is <2x
> 
> Get average for JCS       = 132
> Get average for Hashtable = 99
> JCS gets took 1.3333334 times the Hashtable, the
> goal
> is <2x
> 
> 
> ------------------------------------------
> Finished 20 loops of 50000 gets and puts
> 
> Put average for JCS       = 247
> Put average for Hashtable = 167
> JCS puts took 1.4790419 times the Hashtable, the
> goal
> is <2x
> 
> Get average for JCS       = 131
> Get average for Hashtable = 100
> JCS gets took 1.31 times the Hashtable, the goal is
> <2x
> 
> 
> ------------------------------------------
> Finished 20 loops of 50000 gets and puts
> 
> Put average for JCS       = 242
> Put average for Hashtable = 170
> JCS puts took 1.4235294 times the Hashtable, the
> goal
> is <2x
> 
> Get average for JCS       = 138
> Get average for Hashtable = 102
> JCS gets took 1.3529412 times the Hashtable, the
> goal
> is <2x
> 
> ------------------------------------------
> Finished 20 loops of 50000 gets and puts
> 
> Put average for JCS       = 242
> Put average for Hashtable = 164
> JCS puts took 1.4756098 times the Hashtable, the
> goal
> is <2x
> 
> Get average for JCS       = 135
> Get average for Hashtable = 100
> JCS gets took 1.35 times the Hashtable, the goal is
> <2x
> 
> 
> 
>               
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



                
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to