Compare with

Comparison of DataNucleus with DB4O embedded vs Hibernate with HSQLDB 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
 DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
Basic Person Test0.05932.61.313.10.6922.9
Element Collection Test0.04515.11.08.20.5211.7
Inheritance Test0.05125.50.8513.60.4519.5
Indexing Test0.08029.62.318.81.224.2
Graph (Binary Tree) Testfailed13.8failed15.6failed14.7
Multithreading Testfailed37.4failed13.0failed25.2
All Tests0.05925.61.413.70.7119.7

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

The results above show that in general Hibernate with HSQLDB embedded is much more efficient than DataNucleus with DB4O embedded in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.71) to the normalized speed of Hibernate with HSQLDB embedded database (19.7) reveals that in these tests, Hibernate with HSQLDB embedded is 27.7 times faster than DataNucleus with DB4O embedded.

A huge performance gap has been detected when using simple basic entities with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.059) to the normalized speed of Hibernate with HSQLDB embedded database (32.6) reveals that in that case, Hibernate with HSQLDB embedded is 553 times faster than DataNucleus with DB4O embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
Basic Person Test0.004724.81.816.40.9020.6
Element Collection Test0.003811.31.510.80.7711.0
Inheritance Test0.003521.72.221.01.121.3
Indexing Test0.004311.91.821.50.8916.7
Graph (Binary Tree) Testfailed3.6failed4.7failed4.1
Multithreading Testfailed19.8failed21.5failed20.6
All Tests0.004115.51.816.00.9115.7

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

The results above show that in general Hibernate with HSQLDB embedded is much more efficient than DataNucleus with DB4O embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.91) to the normalized speed of Hibernate with HSQLDB embedded database (15.7) reveals that in these tests, Hibernate with HSQLDB embedded is 17.3 times faster than DataNucleus with DB4O embedded.

A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0035) to the normalized speed of Hibernate with HSQLDB embedded database (21.7) reveals that in that case, Hibernate with HSQLDB embedded is 6,200 times faster than DataNucleus with DB4O embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
Basic Person Testfailed3.6failed0.88failed2.2
Element Collection Testfailed3.4failed1.7failed2.6
Inheritance Testfailed2.9failed1.0failed1.9
Indexing Testfailed9.9failed21.7failed15.8
Multithreading Testfailed1.1failed0.58failed0.82
All Testsfailed4.2failed5.2failed4.7

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
Basic Person Test0.01214.20.765.00.399.6
Element Collection Test0.01210.11.15.60.537.8
Inheritance Test0.01113.40.817.50.4110.5
Indexing Test0.01110.71.36.10.648.4
Graph (Binary Tree) Testfailed3.7failed2.5failed3.1
Multithreading Testfailed23.9failed3.8failed13.9
All Tests0.01212.70.975.10.498.9

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

The results above show that in general Hibernate with HSQLDB embedded is much more efficient than DataNucleus with DB4O embedded in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.49) to the normalized speed of Hibernate with HSQLDB embedded database (8.9) reveals that in these tests, Hibernate with HSQLDB embedded is 18.2 times faster than DataNucleus with DB4O embedded.

A huge performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.011) to the normalized speed of Hibernate with HSQLDB embedded database (13.4) reveals that in that case, Hibernate with HSQLDB embedded is 1,218 times faster than DataNucleus with DB4O embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
Basic Person Test0.01126.11.517.50.7421.8
Element Collection Test0.0109.11.65.20.807.1
Inheritance Test0.009321.41.117.70.5719.6
Indexing Test0.01733.02.116.31.124.7
Graph (Binary Tree) Testfailed5.4failed8.2failed6.8
Multithreading Testfailed38.5failed28.6failed33.5
All Tests0.01222.31.615.60.7918.9

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

The results above show that in general Hibernate with HSQLDB embedded is much more efficient than DataNucleus with DB4O embedded in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.79) to the normalized speed of Hibernate with HSQLDB embedded database (18.9) reveals that in these tests, Hibernate with HSQLDB embedded is 23.9 times faster than DataNucleus with DB4O embedded.

A huge performance gap has been detected when using simple basic entities with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.011) to the normalized speed of Hibernate with HSQLDB embedded database (26.1) reveals that in that case, Hibernate with HSQLDB embedded is 2,373 times faster than DataNucleus with DB4O embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
Basic Person Test35.141.435.441.435.241.4
Element Collection Test29.546.929.946.929.746.9
Inheritance Test33.441.433.541.433.441.4
Indexing Test41.048.441.949.241.548.8
Graph (Binary Tree) Testfailed28.5failed21.4failed25.0
Multithreading Testfailed51.9failed10.3failed31.1
All Tests34.843.135.235.135.039.1

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

The results above show that in general Hibernate with HSQLDB embedded is slightly more efficient than DataNucleus with DB4O embedded in using disk space.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
DataNucleus
DB4O embedded
Hibernate
HSQLDB embedded
Basic Person Test0.02220.21.310.60.6815.4
Element Collection Test0.0189.81.36.30.668.0
Inheritance Test0.01917.01.212.20.6314.6
Indexing Test0.02819.01.916.90.9418.0
Graph (Binary Tree) Testfailed6.6failed7.8failed7.2
Multithreading Testfailed24.1failed13.5failed18.8
All Tests0.02216.51.411.30.7313.9

The results above show that in general Hibernate with HSQLDB embedded is much more efficient than DataNucleus with DB4O embedded in performing JPA database operations. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.73) to the normalized speed of Hibernate with HSQLDB embedded database (13.9) reveals that in these tests, Hibernate with HSQLDB embedded is 19.0 times faster than DataNucleus with DB4O embedded.

A huge performance gap has been detected when using simple basic entities with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.022) to the normalized speed of Hibernate with HSQLDB embedded database (20.2) reveals that in that case, Hibernate with HSQLDB embedded is 918 times faster than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons