Compare with

Comparison of Hibernate with Derby server vs EclipseLink with Derby server

Each of the following tables focuses on a specific database operation, where the last table presents average results comparison.

Speed comparison of JPA database persistence operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Basic Person Test3.83.83.03.13.43.4
Element Collection Test2.02.21.31.51.71.8
Inheritance Test3.43.93.02.93.23.4
Indexing Test4.85.24.14.34.44.7
Graph (Binary Tree) Test1.81.91.61.71.71.8
Multithreading Test6.96.13.93.95.45.0
All Tests3.83.82.82.93.33.4

The results above show that in general EclipseLink with Derby server is slightly more efficient than Hibernate with Derby server in persisting JPA entity objects to the database.

Speed comparison of JPA database retrieval operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Basic Person Test3.86.48.411.36.18.8
Element Collection Test1.01.81.02.41.02.1
Inheritance Test3.53.79.712.96.68.3
Indexing Test3.23.69.512.86.48.2
Graph (Binary Tree) Test0.910.611.20.731.10.67
Multithreading Test7.88.513.419.810.614.1
All Tests3.44.17.210.05.37.0

The results above show that in general EclipseLink with Derby server is more efficient than Hibernate with Derby server in retrieving JPA entity objects from the database.

A large performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of Hibernate with Derby database server (1.0) to the normalized speed of EclipseLink with Derby database server (2.4) reveals that in that case, EclipseLink with Derby server is 2.4 times faster than Hibernate with Derby server.

Speed comparison of JPA database query operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Basic Person Test34.045.84.15.319.125.6
Element Collection Test33.835.20.640.9917.218.1
Inheritance Test20.523.15.05.912.814.5
Indexing Test2.02.59.212.25.67.4
Multithreading Test36.234.35.17.720.621.0
All Tests25.328.24.86.415.117.3

The results above show that in general EclipseLink with Derby server is slightly more efficient than Hibernate with Derby server in executing the tested JPA queries.

Speed comparison of JPA database update operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Basic Person Test2.93.92.54.42.74.1
Element Collection Test2.31.71.51.61.91.6
Inheritance Test2.94.63.56.13.25.3
Indexing Test3.04.54.27.63.66.1
Graph (Binary Tree) Test1.20.700.580.420.910.56
Multithreading Test6.87.32.54.84.66.0
All Tests3.23.82.54.22.84.0

The results above show that in general EclipseLink with Derby server is more efficient than Hibernate with Derby server in updating JPA entity objects in the database.

Speed comparison of JPA database removal operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Basic Person Test2.92.83.53.93.23.3
Element Collection Test1.71.20.870.551.30.87
Inheritance Test2.93.33.63.73.23.5
Indexing Test3.74.93.63.53.74.2
Graph (Binary Tree) Test0.690.510.700.500.700.51
Multithreading Test6.24.85.15.75.65.3
All Tests3.02.92.93.03.03.0

The results above show that in general EclipseLink with Derby server is equivalent to Hibernate with Derby server in deleting JPA entity objects from the database.

Comparison of JPA/Database speed - the averages (normalized score, higher is better)

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Hibernate
Derby server
EclipseLink
Derby server
Basic Person Test9.512.54.35.66.99.1
Element Collection Test8.28.41.11.44.64.9
Inheritance Test6.67.75.06.35.87.0
Indexing Test3.34.16.18.14.76.1
Graph (Binary Tree) Test1.20.931.00.831.10.88
Multithreading Test12.812.26.08.49.410.3
All Tests7.17.94.05.25.66.6

The results above show that in general EclipseLink with Derby server is slightly more efficient than Hibernate with Derby server in performing JPA database operations.

Other Head to Head DBMS/JPA Comparisons