Compare with

Comparison of DataNucleus with DB4O embedded vs OpenJPA with H2 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
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
Basic Person Test0.05917.11.35.80.6911.5
Element Collection Test0.04510.91.04.90.527.9
Inheritance Test0.05114.30.855.90.4510.1
Indexing Test0.08024.42.313.71.219.1
Graph (Binary Tree) Testfailed6.8failed6.7failed6.7
Multithreading Testfailed34.2failed10.2failed22.2
All Tests0.05917.91.47.90.7112.9

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

The results above show that in general OpenJPA with H2 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 H2 embedded database (12.9) reveals that in these tests, OpenJPA with H2 embedded is 18.2 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 embedded database (24.4) reveals that in that case, OpenJPA with H2 embedded is 305 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 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
Basic Person Test0.004714.61.827.20.9020.9
Element Collection Test0.00380.00461.54.30.772.1
Inheritance Test0.00350.0112.27.41.13.7
Indexing Test0.004317.01.835.00.8926.0
Graph (Binary Tree) Testfailed1.0failed1.4failed1.2
Multithreading Testfailed18.7failed27.6failed23.1
All Tests0.00418.61.817.10.9112.8

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

The results above show that in general OpenJPA with H2 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 H2 embedded database (12.8) reveals that in these tests, OpenJPA with H2 embedded is 14.1 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 embedded database (17.0) reveals that in that case, OpenJPA with H2 embedded is 3,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 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
Basic Person Testfailed5.0failed1.1failed3.1
Element Collection Testfailed1.7failed1.3failed1.5
Inheritance Testfailed2.2failed1.2failed1.7
Indexing Testfailed13.8failed23.2failed18.5
Multithreading Testfailed1.4failed0.60failed0.99
All Testsfailed4.8failed5.5failed5.1

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 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
Basic Person Test0.01210.00.766.00.398.0
Element Collection Test0.0120.0111.13.80.531.9
Inheritance Test0.0110.0460.815.00.412.5
Indexing Test0.0118.91.37.00.648.0
Graph (Binary Tree) Testfailed2.4failed1.3failed1.9
Multithreading Testfailed16.6failed4.3failed10.4
All Tests0.0126.30.974.60.495.4

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

The results above show that in general OpenJPA with H2 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 H2 embedded database (5.4) reveals that in these tests, OpenJPA with H2 embedded is 11.0 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.012) to the normalized speed of OpenJPA with H2 embedded database (10.0) reveals that in that case, OpenJPA with H2 embedded is 833 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 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
Basic Person Test0.01118.31.511.10.7414.7
Element Collection Test0.0100.0121.62.90.801.4
Inheritance Test0.00930.0301.16.60.573.3
Indexing Test0.01723.22.19.71.116.4
Graph (Binary Tree) Testfailed1.8failed2.4failed2.1
Multithreading Testfailed31.2failed17.3failed24.2
All Tests0.01212.41.68.30.7910.4

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

The results above show that in general OpenJPA with H2 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 H2 embedded database (10.4) reveals that in these tests, OpenJPA with H2 embedded is 13.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.011) to the normalized speed of OpenJPA with H2 embedded database (18.3) reveals that in that case, OpenJPA with H2 embedded is 1,664 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
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
Basic Person Test35.127.035.427.035.227.0
Element Collection Test29.530.629.930.629.730.6
Inheritance Test33.427.033.527.033.427.0
Indexing Test41.031.641.932.141.531.9
Graph (Binary Tree) Testfailed28.5failed21.4failed24.9
Multithreading Testfailed33.9failed9.2failed21.5
All Tests34.829.835.224.535.027.2

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

The results above show that in general DataNucleus with DB4O embedded is slightly more efficient than OpenJPA with H2 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
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
DataNucleus
DB4O embedded
OpenJPA
H2 embedded
Basic Person Test0.02213.01.310.20.6811.6
Element Collection Test0.0182.51.33.40.663.0
Inheritance Test0.0193.31.25.20.634.3
Indexing Test0.02817.51.917.70.9417.6
Graph (Binary Tree) Testfailed3.0failed3.0failed3.0
Multithreading Testfailed20.4failed12.0failed16.2
All Tests0.02210.21.48.80.739.5

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

Other Head to Head DBMS/JPA Comparisons