OlivaNova application: performance comparison between Oracle 10g and TimesTen 1


Just recently, I had been asked to compare the performance of Oracle 10g and Oracle TimesTen In-Memory database. We wanted to evaluate to what extent the performance of a mission critical system could be increased by using an in-memory database like Oracle TimesTen compared to a “regular” RDBMS like Oracle 10g.

I used a sample application generated from OLIVANOVA in order to compare these different scenarios. The application is based upon a three-tier architecture with a JSF client, J2EE business logic and a RDBMS. The JSF client as well as the business logic have been deployed on a JBoss application server.

The sample application uses the JSF client in order to create 10.000 records in a table for each test run.

The results for Oracle 10g Express were:

Test run Duration
1 03:45,503
2 03:12,105
3 03:44,985
4 03:00,654
5 03:04,937
6 03:19,689
7 03:17,358
8 03:04,206
9 04:38,054
10 04:04,656
Average 03:31,215

The same tests with Oracle TimesTen resulted in the following:

Test run Duration
1 01:12,137
2 01:08,947
3 01:11,471
4 01:23,363
5 01:18,437
6 01:18,231
7 01:09,909
8 01:10,020
9 01:22,670
10 01:13,274
Average 01:14,846

So, basically, this tells me that TimesTen was able to finish the same task in 1/3 of the time.

Are these figures representative for TimesTen? Probably not! IMHO, most of the time necessary to create one record is spent on client/server communication. If this is the case (and I haven’t verified this yet), then the net performance increase should be even better. Let’s do some math. For Oracle 10g in average one record was created in 21.12 ms. With TimesTen the service was executed in an average of 7.49 ms. If I suppose that the client/server communication consumes maybe 5 ms, then the net increase is almost 1/6. Assuming a client/server consumption of 6 ms results in 1/10 net performance increase. I guess, this pretty much brings us closer to the origin of its product name 😉


Leave a comment

Your email address will not be published. Required fields are marked *

One thought on “OlivaNova application: performance comparison between Oracle 10g and TimesTen