I use
- Tomcat
- C3p0 (JNDI configured inside Tomcat)
- MySQL (InnoDB) / Derby (not implemented) as a database
- EHCache (in memory)
- Hibernate
- Testmachine Launches WinXP
I used Derby for development and wanted to switch to MySQL. I was surprised to see that with MySQL my tests were about 50% slower than with Derby.
My Testscenario:
- Around 2000 Choice, varying in complexity, but none of them uses more than one compound. All SQLs use indexes
- Ehcache is populated with a Run installation. After that, I run Testscenario at least 50 times to overcome the effects of Optimizer / GC
I checked that the cache is being used. There are NO real SQL queries entering the database. So I just think the connection creation time slows down the MySQL tests.
mysql derby jdbc c3p0 ehcache
Michael pralow
source share