Compare with

Comparison of DataNucleus with DB4O embedded vs OpenJPA 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
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
Basic Person Test0.0594.81.32.90.693.9
Element Collection Test0.0452.81.01.90.522.4
Inheritance Test0.0514.10.852.40.453.3
Indexing Test0.0806.12.34.11.25.1
Graph (Binary Tree) Testfailed1.5failed1.4failed1.4
Multithreading Testfailed8.7failed3.3failed6.0
All Tests0.0594.71.42.70.713.7

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

The results above show that in general OpenJPA 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 OpenJPA with Derby embedded database (3.7) reveals that in these tests, OpenJPA with Derby embedded is 5.2 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 OpenJPA with Derby embedded database (4.8) reveals that in that case, OpenJPA with Derby embedded is 81.4 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
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
Basic Person Test0.004714.81.822.60.9018.7
Element Collection Test0.00380.00311.52.30.771.2
Inheritance Test0.00350.0152.27.01.13.5
Indexing Test0.004311.71.826.50.8919.1
Graph (Binary Tree) Testfailed0.93failed1.2failed1.1
Multithreading Testfailed25.2failed28.6failed26.9
All Tests0.00418.81.814.70.9111.7

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

The results above show that in general OpenJPA 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 OpenJPA with Derby embedded database (11.7) reveals that in these tests, OpenJPA with Derby embedded is 12.9 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 OpenJPA with Derby embedded database (14.8) reveals that in that case, OpenJPA with Derby embedded is 3,149 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
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
Basic Person Testfailed49.7failed9.9failed29.8
Element Collection Testfailed2.7failed9.6failed6.1
Inheritance Testfailed2.3failed1.3failed1.8
Indexing Testfailed7.0failed17.1failed12.1
Multithreading Testfailed40.9failed11.7failed26.3
All Testsfailed20.5failed9.9failed15.2

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
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
Basic Person Test0.0125.60.765.20.395.4
Element Collection Test0.0120.00901.12.20.531.1
Inheritance Test0.0110.0450.814.60.412.3
Indexing Test0.0116.11.38.70.647.4
Graph (Binary Tree) Testfailed1.6failed0.91failed1.3
Multithreading Testfailed18.3failed4.5failed11.4
All Tests0.0125.30.974.40.494.8

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

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

A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.011) to the normalized speed of OpenJPA with Derby embedded database (6.1) reveals that in that case, OpenJPA with Derby embedded is 555 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
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
Basic Person Test0.0114.21.54.50.744.3
Element Collection Test0.0100.00711.61.60.800.80
Inheritance Test0.00930.0351.13.00.571.5
Indexing Test0.0175.32.13.61.14.4
Graph (Binary Tree) Testfailed0.80failed0.93failed0.86
Multithreading Testfailed5.7failed6.2failed6.0
All Tests0.0122.71.63.30.793.0

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

The results above show that in general OpenJPA 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 OpenJPA with Derby embedded database (3.0) reveals that in these tests, OpenJPA with Derby embedded is 3.8 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 OpenJPA with Derby embedded database (4.2) reveals that in that case, OpenJPA with Derby embedded is 382 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
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
Basic Person Test35.152.835.452.835.252.8
Element Collection Test29.542.429.942.429.742.4
Inheritance Test33.444.233.544.233.444.2
Indexing Test41.053.141.954.041.553.5
Graph (Binary Tree) Testfailed12.8failed9.6failed11.2
Multithreading Testfailed50.7failed9.7failed30.2
All Tests34.842.735.235.535.039.1

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

The results above show that in general OpenJPA 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
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
Basic Person Test0.02215.81.39.00.6812.4
Element Collection Test0.0181.11.33.50.662.3
Inheritance Test0.0191.31.23.70.632.5
Indexing Test0.0287.21.912.00.949.6
Graph (Binary Tree) Testfailed1.2failed1.1failed1.2
Multithreading Testfailed19.8failed10.9failed15.3
All Tests0.0228.01.46.90.737.4

The results above show that in general OpenJPA 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 OpenJPA with Derby embedded database (7.4) reveals that in these tests, OpenJPA with Derby embedded is 10.1 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 OpenJPA with Derby embedded database (15.8) reveals that in that case, OpenJPA with Derby embedded is 718 times faster than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons