I use
- Tomcat
- C3p0 (JNDI configured inside Tomcat)
- MySQL(InnoDB) / Derby(not embedded) as Database
- EHCache (in Memory)
- Hibernate
- Testmachine runs WinXP
I used Derby for development and wanted to switch to MySQL.
I was surprised to see, that with MySQL my Tests were app. 50% slower than with Derby.
My Testscenario :
- app. 2000 Selects, varying in complexity but none used more than one join, all SQLs use Indexes
- ehcache is filled up with a setup Run, after that i run the Testscenario at least 50x to overcome Optimizer/GC Effects
i verified that the cache is in use, there are NO real SQLs coming to the database, so i just guess its the connection creation time which slows the mysql test down.