Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

December/2024
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
222324 25262728
293031    

[ Archives News
for 'Java Technology' ]

home > news > java technology > more on jpa performance

More on JPA Performance

I used my free day to do some more performance benchmarking using EJB 3.0 and WebServices. As I wrote in my last blog entry on this topic, I was astonished what performance is possible even in a VM on my cheat laptop. But now I invested some more time to tune my laptop (running JkDefrag gave its disk an amazing push) and do an optimization in the application itself: Using precompiled queries (so-called "named queries" in JPA) instead of dynamic queries. My idea was that a precompiled query should run much faster since the machine can spare the time for parsing the JPA-QL string. In addition, I changed the benchmarking tool that I wrote to use multiple threads to simulate five clients instead of only one, and to run 50.000 loops to remove Java's typical warmup delay. This should better simulate the real world. Actually it seems that these optimizations are very beneficial to the overall performance, as the current version of the benchmark shows: 200 "senseless" calls (no serverside workload, just an empty SOAP roundtrip) need half a second. While this is an acceptable (and taking into account the fact that extensive XML parsing is done for the WebService, quite impressive) number, compared to the following numbers shows that half the time of virtually each method call, is eaten up by "beeing a WebService" itself. 200 "INSERTs" (using JPA via SOAP) nee...


Date: January, 03 2010
Url: http://www.java.net/blog/mkarg/archive/2010/01/03/more-jpa-performance


Others News

©2002-2019Java-Virtual-Machine.net html website maker | static website generator | bootstrap navbar examples | bootstrap button styles | free bootstrap templates