Compare with

Comparison of EclipseLink with Derby server vs Hibernate with HSQLDB 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
 EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
Basic Person Test9.2stopped8.9stopped9.0stopped
Element Collection Test8.0stopped6.8stopped7.4stopped
Inheritance Test5.6stopped9.3stopped7.4stopped
Indexing Test9.6stopped11.0stopped10.3stopped
Graph (Binary Tree) Test8.1stopped7.4stopped7.8stopped
Multithreading Test10.8stopped0.0000stopped5.4stopped
All Tests8.6stopped7.2stopped7.9stopped

The results above show that in general EclipseLink with Derby server is much more efficient than Hibernate with HSQLDB server in persisting JPA entity objects to the database. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of EclipseLink with Derby database server (7.9) reveals that in these tests, EclipseLink with Derby server is ? times faster than Hibernate with HSQLDB server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
Basic Person Test1.8stopped7.6stopped4.7stopped
Element Collection Test0.86stopped0.58stopped0.72stopped
Inheritance Test1.8stopped6.6stopped4.2stopped
Indexing Test1.7stopped7.7stopped4.7stopped
Graph (Binary Tree) Test0.12stopped0.26stopped0.19stopped
Multithreading Test2.5stopped12.5stopped7.5stopped
All Tests1.5stopped5.9stopped3.7stopped

The results above show that in general EclipseLink with Derby server is much more efficient than Hibernate with HSQLDB server in retrieving JPA entity objects from the database. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of EclipseLink with Derby database server (3.7) reveals that in these tests, EclipseLink with Derby server is ? times faster than Hibernate with HSQLDB server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
Basic Person Test0.46stopped2.4stopped1.4stopped
Element Collection Test0.92stopped1.1stopped1.0stopped
Inheritance Test0.42stopped2.4stopped1.4stopped
Indexing Test1.3stopped3.3stopped2.3stopped
Multithreading Test2.4stopped4.3stopped3.4stopped
All Tests1.1stopped2.7stopped1.9stopped

The results above show that in general EclipseLink with Derby server is much more efficient than Hibernate with HSQLDB server in executing the tested JPA queries. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of EclipseLink with Derby database server (1.9) reveals that in these tests, EclipseLink with Derby server is ? times faster than Hibernate with HSQLDB server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
Basic Person Test1.7stopped4.1stopped2.9stopped
Element Collection Test2.6stopped1.2stopped1.9stopped
Inheritance Test1.6stopped5.2stopped3.4stopped
Indexing Test6.0stopped5.5stopped5.8stopped
Graph (Binary Tree) Test0.67stopped0.41stopped0.54stopped
Multithreading Test1.7stopped4.6stopped3.2stopped
All Tests2.4stopped3.5stopped3.0stopped

The results above show that in general EclipseLink with Derby server is much more efficient than Hibernate with HSQLDB server in updating JPA entity objects in the database. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of EclipseLink with Derby database server (3.0) reveals that in these tests, EclipseLink with Derby server is ? times faster than Hibernate with HSQLDB server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
Basic Person Test10.6stopped7.4stopped9.0stopped
Element Collection Test6.0stopped0.67stopped3.3stopped
Inheritance Test12.6stopped14.1stopped13.3stopped
Indexing Test18.7stopped10.1stopped14.4stopped
Graph (Binary Tree) Test5.8stopped9.9stopped7.9stopped
Multithreading Test6.6stopped0.0000stopped3.3stopped
All Tests10.1stopped7.0stopped8.5stopped

The results above show that in general EclipseLink with Derby server is much more efficient than Hibernate with HSQLDB server in deleting JPA entity objects from the database. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of EclipseLink with Derby database server (8.5) reveals that in these tests, EclipseLink with Derby server is ? times faster than Hibernate with HSQLDB server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
EclipseLink
Derby server
Hibernate
HSQLDB server
Basic Person Test4.8stopped6.1stopped5.4stopped
Element Collection Test3.7stopped2.1stopped2.9stopped
Inheritance Test4.4stopped7.5stopped6.0stopped
Indexing Test7.5stopped7.5stopped7.5stopped
Graph (Binary Tree) Test3.7stopped4.5stopped4.1stopped
Multithreading Test4.8stopped4.3stopped4.6stopped
All Tests4.8stopped5.4stopped5.1stopped

The results above show that in general EclipseLink with Derby server is much more efficient than Hibernate with HSQLDB server in performing JPA database operations. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of EclipseLink with Derby database server (5.1) reveals that in these tests, EclipseLink with Derby server is ? times faster than Hibernate with HSQLDB server.

A huge performance gap has been detected when using simple basic entities with small transaction/retrieval size. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of EclipseLink with Derby database server (4.8) reveals that in that case, EclipseLink with Derby server is ? times faster than Hibernate with HSQLDB server.

Other Head to Head DBMS/JPA Comparisons