Compare with

Comparison of DataNucleus with H2 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
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
Basic Person Test19.225.18.08.913.617.0
Element Collection Test6.620.42.88.04.714.2
Inheritance Test15.628.74.48.710.018.7
Indexing Test24.437.611.814.018.125.8
Graph (Binary Tree) Test9.217.76.214.77.716.2
Multithreading Test34.930.37.111.421.020.8
All Tests18.326.66.710.912.518.8

The results above show that in general EclipseLink with H2 embedded is more efficient than DataNucleus with H2 embedded in persisting JPA entity objects to the database.

A large performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of DataNucleus with H2 embedded database (6.6) to the normalized speed of EclipseLink with H2 embedded database (20.4) reveals that in that case, EclipseLink with H2 embedded is 3.1 times faster than DataNucleus with H2 embedded.

Speed comparison of JPA database retrieval operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
Basic Person Test13.230.413.529.113.329.7
Element Collection Test6.419.68.927.67.723.6
Inheritance Test12.233.812.739.812.436.8
Indexing Test8.122.216.541.312.331.8
Graph (Binary Tree) Test10.616.020.920.015.818.0
Multithreading Test13.333.79.929.011.631.4
All Tests10.625.913.731.112.228.5

The results above show that in general EclipseLink with H2 embedded is more efficient than DataNucleus with H2 embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with H2 embedded database (12.2) to the normalized speed of EclipseLink with H2 embedded database (28.5) reveals that in these tests, EclipseLink with H2 embedded is 2.3 times faster than DataNucleus with H2 embedded.

A large performance gap has been detected when using class inheritance in the object model with large retrieval size. Comparing the normalized speed of DataNucleus with H2 embedded database (12.7) to the normalized speed of EclipseLink with H2 embedded database (39.8) reveals that in that case, EclipseLink with H2 embedded is 3.1 times faster than DataNucleus with H2 embedded.

Speed comparison of JPA database query operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
Basic Person Test4.74.41.41.43.12.9
Element Collection Test5.04.12.42.43.73.2
Inheritance Test3.83.41.62.02.72.7
Indexing Test0.004113.01.822.80.9117.9
Multithreading Test1.21.00.790.671.00.85
All Tests3.05.21.65.92.35.5

The results above show that in general EclipseLink with H2 embedded is more efficient than DataNucleus with H2 embedded in executing the tested JPA queries. Comparing the normalized speed of DataNucleus with H2 embedded database (2.3) to the normalized speed of EclipseLink with H2 embedded database (5.5) reveals that in these tests, EclipseLink with H2 embedded is 2.4 times faster than DataNucleus with H2 embedded.

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with H2 embedded database (0.0041) to the normalized speed of EclipseLink with H2 embedded database (13.0) reveals that in that case, EclipseLink with H2 embedded is 3,171 times faster than DataNucleus with H2 embedded.

Speed comparison of JPA database update operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
Basic Person Test10.016.63.97.66.912.1
Element Collection Test7.615.33.910.55.812.9
Inheritance Test9.415.74.49.86.912.7
Indexing Test10.612.15.99.98.211.0
Graph (Binary Tree) Test5.913.73.77.04.810.3
Multithreading Testfailed20.9failed4.2failed12.6
All Tests8.715.74.48.26.512.0

DataNucleus with H2 embedded has failed in 2 tests (see exceptions).

The results above show that in general EclipseLink with H2 embedded is more efficient than DataNucleus with H2 embedded in updating JPA entity objects in the database.

A large performance gap has been detected when using JPA element collections with large transaction size. Comparing the normalized speed of DataNucleus with H2 embedded database (3.9) to the normalized speed of EclipseLink with H2 embedded database (10.5) reveals that in that case, EclipseLink with H2 embedded is 2.7 times faster than DataNucleus with H2 embedded.

Speed comparison of JPA database removal operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
Basic Person Test4.235.11.319.62.827.4
Element Collection Test4.919.31.68.53.213.9
Inheritance Test4.036.01.314.02.725.0
Indexing Test7.542.51.919.24.730.9
Graph (Binary Tree) Test5.612.24.114.44.813.3
Multithreading Testfailed54.4failed25.8failed40.1
All Tests5.233.32.016.93.625.1

DataNucleus with H2 embedded has failed in 2 tests (see exceptions).

The results above show that in general EclipseLink with H2 embedded is much more efficient than DataNucleus with H2 embedded in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with H2 embedded database (3.6) to the normalized speed of EclipseLink with H2 embedded database (25.1) reveals that in these tests, EclipseLink with H2 embedded is 7.0 times faster than DataNucleus with H2 embedded.

A huge performance gap has been detected when using simple basic entities with large transaction size. Comparing the normalized speed of DataNucleus with H2 embedded database (1.3) to the normalized speed of EclipseLink with H2 embedded database (19.6) reveals that in that case, EclipseLink with H2 embedded is 15.1 times faster than DataNucleus with H2 embedded.

Comparison of database storage efficiency (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
Basic Person Test27.036.227.039.227.037.7
Element Collection Test22.433.322.434.922.434.1
Inheritance Test27.035.427.036.227.035.8
Indexing Test31.639.832.143.731.941.7
Graph (Binary Tree) Test20.041.015.028.417.534.7
Multithreading Test33.948.79.212.421.530.6
All Tests27.039.122.132.524.635.8

The results above show that in general EclipseLink with H2 embedded is more efficient than DataNucleus with H2 embedded in using disk space.

A large gap has been detected when using graphs of objects with small transaction size. Comparing the normalized score of DataNucleus with H2 embedded database (20.0) to the normalized score of EclipseLink with H2 embedded database (41.0) reveals that in that case, EclipseLink with H2 embedded is 2.0 times more efficient than DataNucleus with H2 embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
DataNucleus
H2 embedded
EclipseLink
H2 embedded
Basic Person Test10.322.35.613.37.917.8
Element Collection Test6.115.73.911.45.013.6
Inheritance Test9.023.54.914.96.919.2
Indexing Test10.125.57.621.58.923.5
Graph (Binary Tree) Test7.814.98.714.08.314.5
Multithreading Test16.528.15.914.211.221.1
All Tests9.621.96.014.97.818.4

The results above show that in general EclipseLink with H2 embedded is more efficient than DataNucleus with H2 embedded in performing JPA database operations. Comparing the normalized speed of DataNucleus with H2 embedded database (7.8) to the normalized speed of EclipseLink with H2 embedded database (18.4) reveals that in these tests, EclipseLink with H2 embedded is 2.4 times faster than DataNucleus with H2 embedded.

A large performance gap has been detected when using class inheritance in the object model with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with H2 embedded database (4.9) to the normalized speed of EclipseLink with H2 embedded database (14.9) reveals that in that case, EclipseLink with H2 embedded is 3.0 times faster than DataNucleus with H2 embedded.

Other Head to Head DBMS/JPA Comparisons