Compare with

Comparison of DataNucleus with DB4O embedded vs Hibernate 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
 DataNucleus
DB4O embedded
Hibernate
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
Basic Person Test0.0595.91.33.80.694.9
Element Collection Test0.0452.91.01.80.522.3
Inheritance Test0.0515.30.853.70.454.5
Indexing Test0.0807.02.34.81.25.9
Graph (Binary Tree) Testfailed1.9failed1.7failed1.8
Multithreading Testfailed10.5failed3.7failed7.1
All Tests0.0595.61.43.30.714.4

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

The results above show that in general Hibernate with Derby 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 Derby embedded database (4.4) reveals that in these tests, Hibernate with Derby embedded is 6.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.051) to the normalized speed of Hibernate with Derby embedded database (5.3) reveals that in that case, Hibernate with Derby embedded is 104 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
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
Basic Person Test0.004714.21.816.40.9015.3
Element Collection Test0.00384.41.54.90.774.6
Inheritance Test0.003510.32.218.61.114.4
Indexing Test0.004310.01.816.40.8913.2
Graph (Binary Tree) Testfailed2.6failed3.0failed2.8
Multithreading Testfailed19.3failed19.3failed19.3
All Tests0.004110.11.813.10.9111.6

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

The results above show that in general Hibernate with Derby 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 Derby embedded database (11.6) reveals that in these tests, Hibernate with Derby embedded is 12.7 times faster than DataNucleus with DB4O embedded.

A huge performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0047) to the normalized speed of Hibernate with Derby embedded database (14.2) reveals that in that case, Hibernate with Derby embedded is 3,021 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
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
Basic Person Testfailed49.3failed6.8failed28.1
Element Collection Testfailed37.6failed2.7failed20.1
Inheritance Testfailed24.1failed7.6failed15.9
Indexing Testfailed5.3failed14.8failed10.1
Multithreading Testfailed39.7failed6.1failed22.9
All Testsfailed31.2failed7.6failed19.4

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
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
Basic Person Test0.0124.50.763.20.393.8
Element Collection Test0.0123.91.13.10.533.5
Inheritance Test0.0114.60.814.50.414.5
Indexing Test0.0114.61.35.50.645.1
Graph (Binary Tree) Testfailed2.7failed1.2failed2.0
Multithreading Testfailed11.6failed2.6failed7.1
All Tests0.0125.30.973.30.494.3

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

The results above show that in general Hibernate with Derby 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 Derby embedded database (4.3) reveals that in these tests, Hibernate with Derby embedded is 8.8 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 Derby embedded database (4.6) reveals that in that case, Hibernate with Derby embedded is 418 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
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
Basic Person Test0.0113.81.54.20.744.0
Element Collection Test0.0102.31.61.50.801.9
Inheritance Test0.00934.01.14.30.574.2
Indexing Test0.0175.52.13.61.14.6
Graph (Binary Tree) Testfailed0.74failed0.96failed0.85
Multithreading Testfailed5.6failed4.9failed5.3
All Tests0.0123.71.63.30.793.5

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

The results above show that in general Hibernate with Derby 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 Derby embedded database (3.5) reveals that in these tests, Hibernate with Derby embedded is 4.4 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.0093) to the normalized speed of Hibernate with Derby embedded database (4.0) reveals that in that case, Hibernate with Derby embedded is 430 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
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
Basic Person Test35.152.735.452.735.252.7
Element Collection Test29.542.329.942.329.742.3
Inheritance Test33.449.233.549.233.449.2
Indexing Test41.053.041.953.941.553.4
Graph (Binary Tree) Testfailed13.1failed9.8failed11.5
Multithreading Testfailed49.3failed8.8failed29.0
All Tests34.843.335.236.135.039.7

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

The results above show that in general Hibernate with Derby 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
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
DataNucleus
DB4O embedded
Hibernate
Derby embedded
Basic Person Test0.02215.51.36.90.6811.2
Element Collection Test0.01810.21.32.80.666.5
Inheritance Test0.0199.71.27.70.638.7
Indexing Test0.0286.51.99.00.947.8
Graph (Binary Tree) Testfailed2.0failed1.7failed1.8
Multithreading Testfailed17.3failed7.3failed12.3
All Tests0.02210.51.46.10.738.3

The results above show that in general Hibernate with Derby 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 Derby embedded database (8.3) reveals that in these tests, Hibernate with Derby embedded is 11.4 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 Derby embedded database (15.5) reveals that in that case, Hibernate with Derby embedded is 705 times faster than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons