Compare with

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

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
 Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Basic Person Teststopped0.28stopped4.1stopped2.2
Element Collection Teststopped0.39stopped3.4stopped1.9
Inheritance Teststopped0.44stopped3.6stopped2.0
Indexing Teststopped0.30stopped5.0stopped2.7
Graph (Binary Tree) Teststoppedfailedstoppedfailedstoppedfailed
Multithreading Teststoppedfailedstoppedfailedstoppedfailed
All Testsstopped0.35stopped4.0stopped2.2

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
 Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Basic Person Teststoppedfailedstoppedfailedstoppedfailed
Element Collection Teststoppedfailedstoppedfailedstoppedfailed
Inheritance Teststoppedfailedstoppedfailedstoppedfailed
Indexing Teststoppedfailedstoppedfailedstoppedfailed
Multithreading Teststoppedfailedstoppedfailedstoppedfailed
All Testsstoppedfailedstoppedfailedstoppedfailed

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

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

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
 Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Basic Person Teststopped0.25stopped2.8stopped1.5
Element Collection Teststopped0.34stopped0.73stopped0.54
Inheritance Teststopped0.25stopped1.8stopped1.0
Indexing Teststopped0.44stopped1.7stopped1.0
Graph (Binary Tree) Teststoppedfailedstoppedfailedstoppedfailed
Multithreading Teststoppedfailedstoppedfailedstoppedfailed
All Testsstopped0.32stopped1.7stopped1.0

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
 Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Hibernate
HSQLDB server
DataNucleus
DB4O embedded
Basic Person Teststopped0.24stopped2.7stopped1.4
Element Collection Teststopped0.34stopped1.8stopped1.1
Inheritance Teststopped0.24stopped2.5stopped1.4
Indexing Teststopped0.36stopped2.7stopped1.5
Graph (Binary Tree) Teststoppedfailedstoppedfailedstoppedfailed
Multithreading Teststoppedfailedstoppedfailedstoppedfailed
All Testsstopped0.29stopped2.4stopped1.4

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