[Opensymphony-oscache] Getting is much lower than putting on oscache ,why?
hgwnet <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <6018593.1113295171813.JavaMail.os-j2ee@opensymphony01.contegix.com> |
I just do a test focus on put/get/remoe on oscache.In the test,I put 100000 objects in LRUCache,the time consumed as following : LRU cache time put = 1062 ms LRU cache time get = 1102(Sometimes reach 1051) ms LRU cache time remove = 240 ms While map : map time put = 661 ms map time get = 121 ms map time remove = 110 ms Resonablly the getting is much faster than putting,however,you see,why?What's the matter?I eager to know ? Notes,the testing circumstance:JDK1.4.2+window server 2000+OSCache 2.1 --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=1494&messageID=4576#4576