Compare with

Comparison of DataNucleus with DB4O embedded vs EclipseLink 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
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
Basic Person Test0.05925.11.38.90.6917.0
Element Collection Test0.04520.41.08.00.5214.2
Inheritance Test0.05128.70.858.70.4518.7
Indexing Test0.08037.62.314.01.225.8
Graph (Binary Tree) Testfailed17.7failed14.7failed16.2
Multithreading Testfailed30.3failed11.4failed20.8
All Tests0.05926.61.410.90.7118.8

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

The results above show that in general EclipseLink 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 EclipseLink with H2 embedded database (18.8) reveals that in these tests, EclipseLink with H2 embedded is 26.5 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 EclipseLink with H2 embedded database (28.7) reveals that in that case, EclipseLink with H2 embedded is 563 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
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
Basic Person Test0.004730.41.829.10.9029.7
Element Collection Test0.003819.61.527.60.7723.6
Inheritance Test0.003533.82.239.81.136.8
Indexing Test0.004322.21.841.30.8931.8
Graph (Binary Tree) Testfailed16.0failed20.0failed18.0
Multithreading Testfailed33.7failed29.0failed31.4
All Tests0.004125.91.831.10.9128.5

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

The results above show that in general EclipseLink 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 EclipseLink with H2 embedded database (28.5) reveals that in these tests, EclipseLink with H2 embedded is 31.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 EclipseLink with H2 embedded database (33.8) reveals that in that case, EclipseLink with H2 embedded is 9,657 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
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
Basic Person Testfailed4.4failed1.4failed2.9
Element Collection Testfailed4.1failed2.4failed3.2
Inheritance Testfailed3.4failed2.0failed2.7
Indexing Testfailed13.0failed22.8failed17.9
Multithreading Testfailed1.0failed0.67failed0.85
All Testsfailed5.2failed5.9failed5.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
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
Basic Person Test0.01216.60.767.60.3912.1
Element Collection Test0.01215.31.110.50.5312.9
Inheritance Test0.01115.70.819.80.4112.7
Indexing Test0.01112.11.39.90.6411.0
Graph (Binary Tree) Testfailed13.7failed7.0failed10.3
Multithreading Testfailed20.9failed4.2failed12.6
All Tests0.01215.70.978.20.4912.0

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

The results above show that in general EclipseLink 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 EclipseLink with H2 embedded database (12.0) reveals that in these tests, EclipseLink with H2 embedded is 24.5 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 EclipseLink with H2 embedded database (15.7) reveals that in that case, EclipseLink with H2 embedded is 1,427 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
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
Basic Person Test0.01135.11.519.60.7427.4
Element Collection Test0.01019.31.68.50.8013.9
Inheritance Test0.009336.01.114.00.5725.0
Indexing Test0.01742.52.119.21.130.9
Graph (Binary Tree) Testfailed12.2failed14.4failed13.3
Multithreading Testfailed54.4failed25.8failed40.1
All Tests0.01233.31.616.90.7925.1

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

The results above show that in general EclipseLink 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 EclipseLink with H2 embedded database (25.1) reveals that in these tests, EclipseLink with H2 embedded is 31.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.0093) to the normalized speed of EclipseLink with H2 embedded database (36.0) reveals that in that case, EclipseLink with H2 embedded is 3,871 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
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
Basic Person Test35.136.235.439.235.237.7
Element Collection Test29.533.329.934.929.734.1
Inheritance Test33.435.433.536.233.435.8
Indexing Test41.039.841.943.741.541.7
Graph (Binary Tree) Testfailed41.0failed28.4failed34.7
Multithreading Testfailed48.7failed12.4failed30.6
All Tests34.839.135.232.535.035.8

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

The results above show that in general EclipseLink with H2 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
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
DataNucleus
DB4O embedded
EclipseLink
H2 embedded
Basic Person Test0.02222.31.313.30.6817.8
Element Collection Test0.01815.71.311.40.6613.6
Inheritance Test0.01923.51.214.90.6319.2
Indexing Test0.02825.51.921.50.9423.5
Graph (Binary Tree) Testfailed14.9failed14.0failed14.5
Multithreading Testfailed28.1failed14.2failed21.1
All Tests0.02221.91.414.90.7318.4

The results above show that in general EclipseLink 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 EclipseLink with H2 embedded database (18.4) reveals that in these tests, EclipseLink with H2 embedded is 25.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/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.019) to the normalized speed of EclipseLink with H2 embedded database (23.5) reveals that in that case, EclipseLink with H2 embedded is 1,237 times faster than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons