Compare with

Comparison of Hibernate with Derby embedded vs EclipseLink with Derby embedded

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 embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Basic Person Test5.95.53.83.74.94.6
Element Collection Test2.93.01.81.72.32.4
Inheritance Test5.35.33.73.54.54.4
Indexing Test7.06.94.84.65.95.8
Graph (Binary Tree) Test1.92.01.71.91.81.9
Multithreading Test10.59.33.74.17.16.7
All Tests5.65.33.33.24.44.3

The results above show that in general Hibernate with Derby embedded is slightly more efficient than EclipseLink with Derby embedded 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 embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Basic Person Test14.216.416.458.715.337.5
Element Collection Test4.47.54.913.34.610.4
Inheritance Test10.317.118.658.914.438.0
Indexing Test10.014.216.467.413.240.8
Graph (Binary Tree) Test2.62.83.05.72.84.2
Multithreading Test19.328.019.348.719.338.4
All Tests10.114.313.142.111.628.2

The results above show that in general EclipseLink with Derby embedded is more efficient than Hibernate with Derby embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of Hibernate with Derby embedded database (11.6) to the normalized speed of EclipseLink with Derby embedded database (28.2) reveals that in these tests, EclipseLink with Derby embedded is 2.4 times faster than Hibernate with Derby embedded.

A large performance gap has been detected when using database indexes with large retrieval size. Comparing the normalized speed of Hibernate with Derby embedded database (16.4) to the normalized speed of EclipseLink with Derby embedded database (67.4) reveals that in that case, EclipseLink with Derby embedded is 4.1 times faster than Hibernate with Derby embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Basic Person Test49.353.46.813.828.133.6
Element Collection Test37.637.92.74.420.121.2
Inheritance Test24.137.47.615.015.926.2
Indexing Test5.37.614.849.310.128.4
Multithreading Test39.741.26.16.122.923.6
All Tests31.235.57.617.719.426.6

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

A large performance gap has been detected when using database indexes with large retrieval size. Comparing the normalized speed of Hibernate with Derby embedded database (14.8) to the normalized speed of EclipseLink with Derby embedded database (49.3) reveals that in that case, EclipseLink with Derby embedded is 3.3 times faster than Hibernate with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Basic Person Test4.56.43.26.73.86.5
Element Collection Test3.95.43.16.23.55.8
Inheritance Test4.66.54.59.24.57.8
Indexing Test4.67.35.511.15.19.2
Graph (Binary Tree) Test2.72.81.21.72.02.2
Multithreading Test11.621.32.65.07.113.1
All Tests5.38.33.36.64.37.5

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

A large performance gap has been detected when using simple basic entities with large transaction size. Comparing the normalized speed of Hibernate with Derby embedded database (3.2) to the normalized speed of EclipseLink with Derby embedded database (6.7) reveals that in that case, EclipseLink with Derby embedded is 2.1 times faster than Hibernate with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Basic Person Test3.84.64.24.74.04.6
Element Collection Test2.32.51.51.41.91.9
Inheritance Test4.03.94.34.54.24.2
Indexing Test5.56.23.63.84.65.0
Graph (Binary Tree) Test0.741.10.961.00.851.1
Multithreading Test5.66.24.95.85.36.0
All Tests3.74.13.33.53.53.8

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

Comparison of database storage efficiency (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Basic Person Test52.751.152.751.052.751.1
Element Collection Test42.338.542.339.442.338.9
Inheritance Test49.248.049.247.949.248.0
Indexing Test53.051.653.952.353.452.0
Graph (Binary Tree) Test13.113.49.811.711.512.6
Multithreading Test49.352.68.88.429.030.5
All Tests43.342.536.135.139.738.8

The results above show that in general Hibernate with Derby embedded is slightly more efficient than EclipseLink with Derby embedded in using disk space.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Hibernate
Derby embedded
EclipseLink
Derby embedded
Basic Person Test15.517.36.917.511.217.4
Element Collection Test10.211.32.85.46.58.3
Inheritance Test9.714.07.718.28.716.1
Indexing Test6.58.49.027.27.817.8
Graph (Binary Tree) Test2.02.21.72.61.82.4
Multithreading Test17.321.27.313.912.317.6
All Tests10.512.76.114.58.313.6

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

A large performance gap has been detected when using database indexes with large transaction/retrieval size. Comparing the normalized speed of Hibernate with Derby embedded database (9.0) to the normalized speed of EclipseLink with Derby embedded database (27.2) reveals that in that case, EclipseLink with Derby embedded is 3.0 times faster than Hibernate with Derby embedded.

Other Head to Head DBMS/JPA Comparisons