Compare with

Comparison of Hibernate with Derby embedded 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 embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Basic Person Test5.93.83.83.14.93.4
Element Collection Test2.92.21.81.52.31.8
Inheritance Test5.33.93.72.94.53.4
Indexing Test7.05.24.84.35.94.7
Graph (Binary Tree) Test1.91.91.71.71.81.8
Multithreading Test10.56.13.73.97.15.0
All Tests5.63.83.32.94.43.4

The results above show that in general Hibernate with Derby embedded is slightly more efficient than EclipseLink 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 embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Basic Person Test14.26.416.411.315.38.8
Element Collection Test4.41.84.92.44.62.1
Inheritance Test10.33.718.612.914.48.3
Indexing Test10.03.616.412.813.28.2
Graph (Binary Tree) Test2.60.613.00.732.80.67
Multithreading Test19.38.519.319.819.314.1
All Tests10.14.113.110.011.67.0

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

A large performance gap has been detected when using graphs of objects with small retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (0.61) to the normalized speed of Hibernate with Derby embedded database (2.6) reveals that in that case, Hibernate with Derby embedded is 4.3 times faster than EclipseLink with Derby server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Basic Person Test49.345.86.85.328.125.6
Element Collection Test37.635.22.70.9920.118.1
Inheritance Test24.123.17.65.915.914.5
Indexing Test5.32.514.812.210.17.4
Multithreading Test39.734.36.17.722.921.0
All Tests31.228.27.66.419.417.3

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Basic Person Test4.53.93.24.43.84.1
Element Collection Test3.91.73.11.63.51.6
Inheritance Test4.64.64.56.14.55.3
Indexing Test4.64.55.57.65.16.1
Graph (Binary Tree) Test2.70.701.20.422.00.56
Multithreading Test11.67.32.64.87.16.0
All Tests5.33.83.34.24.34.0

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

A large performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (0.70) to the normalized speed of Hibernate with Derby embedded database (2.7) reveals that in that case, Hibernate with Derby embedded is 3.9 times faster than EclipseLink with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Basic Person Test3.82.84.23.94.03.3
Element Collection Test2.31.21.50.551.90.87
Inheritance Test4.03.34.33.74.23.5
Indexing Test5.54.93.63.54.64.2
Graph (Binary Tree) Test0.740.510.960.500.850.51
Multithreading Test5.64.84.95.75.35.3
All Tests3.72.93.33.03.53.0

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Hibernate
Derby embedded
EclipseLink
Derby server
Basic Person Test15.512.56.95.611.29.1
Element Collection Test10.28.42.81.46.54.9
Inheritance Test9.77.77.76.38.77.0
Indexing Test6.54.19.08.17.86.1
Graph (Binary Tree) Test2.00.931.70.831.80.88
Multithreading Test17.312.27.38.412.310.3
All Tests10.57.96.15.28.36.6

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

A large performance gap has been detected when using graphs of objects with small transaction/retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (0.93) to the normalized speed of Hibernate with Derby embedded database (2.0) reveals that in that case, Hibernate with Derby embedded is 2.2 times faster than EclipseLink with Derby server.

Other Head to Head DBMS/JPA Comparisons