Comparative Cache Performance Numbers

Some guys have created a java cache test tool called cache4j_perfomance_tester.

The results for ehcache-1.1 and ehcache-1.2 follow.

According to their test methodology both versions of ehcache are the fastest for all three scenarios. Compared with oscache, ehcache was 4 times faster for two of the scenarios and twice as fast for one.

I find these results interesting. I had the JCS guy Aaron Smuts complaining about the old performance numbers I had up for JCS. They were quite old so I removed them. I didn’t have the time to do my own analysis but I am happy that someone else has. Ehcache is in good shape.

ehcache-1.1

[java] —————————————————————
[java] java.version=1.4.2_09
[java] java.vm.name=Java HotSpot(TM) Client VM
[java] java.vm.version=1.4.2-54
[java] java.vm.info=mixed mode
[java] java.vm.vendor=”Apple Computer, Inc.”
[java] os.name=Mac OS X
[java] os.version=10.4.5
[java] os.arch=ppc
[java] —————————————————————
[java] This test can take about 5-10 minutes. Please wait …
[java] —————————————————————
[java] |GetPutRemoveT |GetPutRemove |Get |
[java] —————————————————————
[java] cache4j 0.4 |9240 |9116 |5556 |
[java] oscache 2.2 |33577 |30803 |8350 |
[java] ehcache 1.1 |7697 |6145 |3395 |
[java] jcs 1.2.7.0 |8966 |9455 |4072 |
[java] —————————————————————

ehcache-1.2

[java] —————————————————————
[java] java.version=1.4.2_09
[java] java.vm.name=Java HotSpot(TM) Client VM
[java] java.vm.version=1.4.2-54
[java] java.vm.info=mixed mode
[java] java.vm.vendor=”Apple Computer, Inc.”
[java] os.name=Mac OS X
[java] os.version=10.4.5
[java] os.arch=ppc
[java] —————————————————————
[java] This test can take about 5-10 minutes. Please wait …
[java] —————————————————————
[java] |GetPutRemoveT |GetPutRemove |Get |
[java] —————————————————————
[java] cache4j 0.4 |9410 |9053 |5865 |
[java] oscache 2.2 |28076 |30833 |8031 |
[java] ehcache 1.2 |8753 |7072 |3479 |
[java] jcs 1.2.7.0 |8806 |9522 |4097 |
[java] —————————————————————

Greg Luck

Published
Categorized as Java

By Greg Luck

As Terracotta’s CTO, Greg (@gregrluck) is entrusted with understanding market and technology forces and the business drivers that impact Terracotta’s product innovation and customer success. He helps shape company and technology strategy and designs many of the features in Terracotta’s products. Greg came to Terracotta on the acquisition of the popular caching project Ehcache which he founded in 2003. Prior to joining Terracotta, Greg served as Chief Architect at Australian online travel giant Wotif.com. He also served as a lead consultant for ThoughtWorks on accounts in the United States and Australia, was CIO at Virgin Blue, Tempo Services, Stamford Hotels and Resorts and Australian Resorts and spent seven years as a Chartered Accountant in KPMG’s small business and insolvency divisions. He is a regular speaker at conferences and contributor of articles to the technical press.