We did a performance test with ContiPerf http://databene.org/contiperf and found performance degradation.
Test includes persisting and merging of POJO class without any associations. Attached are - 1) Entity class 2) Test cases
Below are the test results for multi-threaded tests-
with hibernate 4.3.5 :- persist(test1) - 20000 invocations, 8 threads, rampup 1000ms - 42,381 ms Throughput: 456 / s Min. latency: 5 ms Average latency: 16 ms Median: 13 ms 90%: 23 ms Max latency: 460 ms
select + merge (test2) - 20000 invocations, 8 threads, rampup 1000ms - 86,177 ms Throughput: 232 / s Min. latency: 7 ms Average latency: 33 ms Median: 29 ms 90%: 49 ms Max latency: 535 ms
----------------------------------------- with hibernate 3.6 :-
persist(test1) - 20000 invocations, 8 threads, rampup 1000ms - 32,442 ms Throughput: 616 / s Min. latency: 4 ms Average latency: 11 ms Median: 9 ms 90%: 15 ms Max latency: 470 ms
select + merge(test2) - 20000 invocations, 8 threads, rampup 1000ms - 63,798 ms Throughput: 313 / s Min. latency: 6 ms Average latency: 24 ms Median: 19 ms 90%: 38 ms Max latency: 535 ms
|