Compare with

Comparison of DataNucleus with DB4O embedded 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
 DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
Basic Person Test0.39stopped3.4stopped1.9stopped
Element Collection Test0.52stopped2.7stopped1.6stopped
Inheritance Test0.25stopped3.9stopped2.1stopped
Indexing Test0.56stopped3.6stopped2.1stopped
Graph (Binary Tree) Testfailedstoppedfailedstoppedfailedstopped
Multithreading Testfailedstoppedfailedstoppedfailedstopped
All Tests0.43stopped3.4stopped1.9stopped

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

The results above show that in general DataNucleus with DB4O embedded 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 DataNucleus with DB4O embedded database (1.9) reveals that in these tests, DataNucleus with DB4O embedded 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
 DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
Basic Person Test0.28stopped4.1stopped2.2stopped
Element Collection Test0.39stopped3.4stopped1.9stopped
Inheritance Test0.44stopped3.6stopped2.0stopped
Indexing Test0.30stopped5.0stopped2.7stopped
Graph (Binary Tree) Testfailedstoppedfailedstoppedfailedstopped
Multithreading Testfailedstoppedfailedstoppedfailedstopped
All Tests0.35stopped4.0stopped2.2stopped

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

The results above show that in general DataNucleus with DB4O embedded 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 DataNucleus with DB4O embedded database (2.2) reveals that in these tests, DataNucleus with DB4O embedded 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
 DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
Basic Person Testfailedstoppedfailedstoppedfailedstopped
Element Collection Testfailedstoppedfailedstoppedfailedstopped
Inheritance Testfailedstoppedfailedstoppedfailedstopped
Indexing Testfailedstoppedfailedstoppedfailedstopped
Multithreading Testfailedstoppedfailedstoppedfailedstopped
All Testsfailedstoppedfailedstoppedfailedstopped

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
Basic Person Test0.046stopped0.36stopped0.21stopped
Element Collection Test0.094stopped0.37stopped0.23stopped
Inheritance Test0.040stopped0.56stopped0.30stopped
Indexing Test0.13stopped0.56stopped0.35stopped
Graph (Binary Tree) Testfailedstoppedfailedstoppedfailedstopped
Multithreading Testfailedstoppedfailedstoppedfailedstopped
All Tests0.077stopped0.46stopped0.27stopped

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

The results above show that in general DataNucleus with DB4O embedded 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 DataNucleus with DB4O embedded database (0.27) reveals that in these tests, DataNucleus with DB4O embedded 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
 DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
Basic Person Test0.25stopped2.8stopped1.5stopped
Element Collection Test0.34stopped0.73stopped0.54stopped
Inheritance Test0.25stopped1.8stopped1.0stopped
Indexing Test0.44stopped1.7stopped1.0stopped
Graph (Binary Tree) Testfailedstoppedfailedstoppedfailedstopped
Multithreading Testfailedstoppedfailedstoppedfailedstopped
All Tests0.32stopped1.7stopped1.0stopped

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

The results above show that in general DataNucleus with DB4O embedded 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 DataNucleus with DB4O embedded database (1.0) reveals that in these tests, DataNucleus with DB4O embedded 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
 DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
Basic Person Test0.24stopped2.7stopped1.4stopped
Element Collection Test0.34stopped1.8stopped1.1stopped
Inheritance Test0.24stopped2.5stopped1.4stopped
Indexing Test0.36stopped2.7stopped1.5stopped
Graph (Binary Tree) Testfailedstoppedfailedstoppedfailedstopped
Multithreading Testfailedstoppedfailedstoppedfailedstopped
All Tests0.29stopped2.4stopped1.4stopped

The results above show that in general DataNucleus with DB4O embedded 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 DataNucleus with DB4O embedded database (1.4) reveals that in these tests, DataNucleus with DB4O embedded 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 DataNucleus with DB4O embedded database (0.24) reveals that in that case, DataNucleus with DB4O embedded is ? times faster than Hibernate with HSQLDB server.

Other Head to Head DBMS/JPA Comparisons