Compare with

Comparison of DataNucleus with H2 server 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 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
Basic Person Test3.425.12.28.92.817.0
Element Collection Test1.220.40.648.00.9214.2
Inheritance Test3.028.71.98.72.418.7
Indexing Test5.337.63.514.04.425.8
Graph (Binary Tree) Test2.117.71.314.71.716.2
Multithreading Test10.030.34.311.47.220.8
All Tests4.226.62.310.93.218.8

The results above show that in general EclipseLink with H2 embedded is much more efficient than DataNucleus with H2 server in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with H2 database server (3.2) to the normalized speed of EclipseLink with H2 embedded database (18.8) reveals that in these tests, EclipseLink with H2 embedded is 5.9 times faster than DataNucleus with H2 server.

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
Basic Person Test2.530.45.229.13.929.7
Element Collection Test0.5619.61.127.60.8223.6
Inheritance Test2.233.86.139.84.236.8
Indexing Test2.122.27.741.34.931.8
Graph (Binary Tree) Test5.716.08.920.07.318.0
Multithreading Test2.333.78.729.05.531.4
All Tests2.525.96.331.14.428.5

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

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of DataNucleus with H2 database server (0.56) to the normalized speed of EclipseLink with H2 embedded database (19.6) reveals that in that case, EclipseLink with H2 embedded is 35.0 times faster than DataNucleus with H2 server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
Basic Person Test4.14.41.31.42.72.9
Element Collection Test4.04.10.492.42.33.2
Inheritance Test2.93.41.52.02.22.7
Indexing Test0.003613.01.522.80.7517.9
Multithreading Test1.31.0failed0.671.30.85
All Tests2.55.21.25.91.95.5

DataNucleus with H2 server has failed in 1 tests (see exceptions).

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
Basic Person Test2.516.61.47.61.912.1
Element Collection Test2.015.31.010.51.512.9
Inheritance Test2.415.72.39.82.312.7
Indexing Test2.712.13.09.92.911.0
Graph (Binary Tree) Test1.813.70.607.01.210.3
Multithreading Testfailed20.9failed4.2failed12.6
All Tests2.315.71.78.22.012.0

DataNucleus with H2 server 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 server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with H2 database server (2.0) to the normalized speed of EclipseLink with H2 embedded database (12.0) reveals that in these tests, EclipseLink with H2 embedded is 6.0 times faster than DataNucleus with H2 server.

A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of DataNucleus with H2 database server (0.60) to the normalized speed of EclipseLink with H2 embedded database (7.0) reveals that in that case, EclipseLink with H2 embedded is 11.7 times faster than DataNucleus with H2 server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
Basic Person Test3.435.11.319.62.327.4
Element Collection Test1.519.30.688.51.113.9
Inheritance Test2.736.01.314.02.025.0
Indexing Test5.742.51.919.23.830.9
Graph (Binary Tree) Test1.512.21.214.41.313.3
Multithreading Testfailed54.45.125.85.140.1
All Tests3.033.31.916.92.425.1

DataNucleus with H2 server has failed in 1 tests (see exceptions).

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

A huge performance gap has been detected when using simple basic entities with large transaction size. Comparing the normalized speed of DataNucleus with H2 database server (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 server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
DataNucleus
H2 server
EclipseLink
H2 embedded
Basic Person Test3.222.32.313.32.717.8
Element Collection Test1.915.70.7811.41.313.6
Inheritance Test2.623.52.614.92.619.2
Indexing Test3.225.53.521.53.323.5
Graph (Binary Tree) Test2.814.93.014.02.914.5
Multithreading Test4.528.16.014.25.321.1
All Tests2.921.92.814.92.918.4

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

A huge performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with H2 database server (0.78) to the normalized speed of EclipseLink with H2 embedded database (11.4) reveals that in that case, EclipseLink with H2 embedded is 14.6 times faster than DataNucleus with H2 server.

Other Head to Head DBMS/JPA Comparisons