Compare with

Comparison of DataNucleus with DB4O embedded vs OpenJPA with H2 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
OpenJPA
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
Basic Person Test0.0593.71.32.20.692.9
Element Collection Test0.0452.61.01.50.522.1
Inheritance Test0.0514.50.852.00.453.2
Indexing Test0.0807.32.33.61.25.4
Graph (Binary Tree) Testfailed1.1failed0.84failed0.97
Multithreading Testfailed7.7failed4.2failed5.9
All Tests0.0594.51.42.40.713.4

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

The results above show that in general OpenJPA with H2 server 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 H2 database server (3.4) reveals that in these tests, OpenJPA with H2 server is 4.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.080) to the normalized speed of OpenJPA with H2 database server (7.3) reveals that in that case, OpenJPA with H2 server is 91.2 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
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
Basic Person Test0.00472.91.87.60.905.2
Element Collection Test0.00380.00221.51.90.770.93
Inheritance Test0.00350.0132.24.01.12.0
Indexing Test0.00434.11.88.80.896.5
Graph (Binary Tree) Testfailed0.38failed0.49failed0.44
Multithreading Testfailed5.9failed14.0failed10.0
All Tests0.00412.21.86.10.914.2

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

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

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0043) to the normalized speed of OpenJPA with H2 database server (4.1) reveals that in that case, OpenJPA with H2 server is 953 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
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
Basic Person Testfailed3.7failed1.0failed2.4
Element Collection Testfailed2.0failed1.2failed1.6
Inheritance Testfailed2.8failed1.1failed2.0
Indexing Testfailed3.8failed7.5failed5.7
Multithreading Testfailed0.98failed1.0failed1.0
All Testsfailed2.7failed2.4failed2.5

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
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
Basic Person Test0.0123.00.762.00.392.5
Element Collection Test0.0120.00781.11.90.530.94
Inheritance Test0.0110.0340.812.80.411.4
Indexing Test0.0112.81.33.20.643.0
Graph (Binary Tree) Testfailed0.79failed0.43failed0.61
Multithreading Testfailed7.0failed2.5failed4.8
All Tests0.0122.30.972.10.492.2

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

The results above show that in general OpenJPA with H2 server 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 H2 database server (2.2) reveals that in these tests, OpenJPA with H2 server is 4.5 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 H2 database server (2.8) reveals that in that case, OpenJPA with H2 server is 255 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
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
Basic Person Test0.0113.21.52.20.742.7
Element Collection Test0.0100.00601.60.880.800.44
Inheritance Test0.00930.0301.13.10.571.6
Indexing Test0.0176.52.13.61.15.1
Graph (Binary Tree) Testfailed0.73failed0.75failed0.74
Multithreading Testfailed7.6failed5.2failed6.4
All Tests0.0123.01.62.60.792.8

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

The results above show that in general OpenJPA with H2 server 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 H2 database server (2.8) reveals that in these tests, OpenJPA with H2 server is 3.5 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.017) to the normalized speed of OpenJPA with H2 database server (6.5) reveals that in that case, OpenJPA with H2 server is 382 times faster than DataNucleus with DB4O embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
OpenJPA
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
DataNucleus
DB4O embedded
OpenJPA
H2 server
Basic Person Test0.0223.31.33.00.683.1
Element Collection Test0.0180.931.31.50.661.2
Inheritance Test0.0191.51.22.60.632.0
Indexing Test0.0284.91.95.40.945.1
Graph (Binary Tree) Testfailed0.75failed0.63failed0.69
Multithreading Testfailed5.9failed5.4failed5.6
All Tests0.0222.91.43.20.733.0

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

A huge performance gap has been detected when using database indexes with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.028) to the normalized speed of OpenJPA with H2 database server (4.9) reveals that in that case, OpenJPA with H2 server is 175 times faster than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons