Compare with

Comparison of DataNucleus with H2 server vs EclipseLink 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
H2 server
EclipseLink
H2 server
DataNucleus
H2 server
EclipseLink
H2 server
DataNucleus
H2 server
EclipseLink
H2 server
Basic Person Test3.45.62.22.52.84.0
Element Collection Test1.24.20.641.50.922.8
Inheritance Test3.06.61.92.12.44.4
Indexing Test5.39.73.54.14.46.9
Graph (Binary Tree) Test2.14.71.33.51.74.1
Multithreading Test10.010.24.34.07.27.1
All Tests4.26.82.32.93.24.9

The results above show that in general EclipseLink with H2 server is more efficient than DataNucleus with H2 server 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 database server (1.2) to the normalized speed of EclipseLink with H2 database server (4.2) reveals that in that case, EclipseLink with H2 server is 3.5 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 server
DataNucleus
H2 server
EclipseLink
H2 server
DataNucleus
H2 server
EclipseLink
H2 server
Basic Person Test2.55.55.28.23.96.8
Element Collection Test0.563.21.14.20.823.7
Inheritance Test2.24.76.110.14.27.4
Indexing Test2.14.47.79.44.96.9
Graph (Binary Tree) Test5.71.18.91.97.31.5
Multithreading Test2.312.28.715.95.514.0
All Tests2.55.26.38.34.46.7

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

A large 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 database server (3.2) reveals that in that case, EclipseLink with H2 server is 5.7 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with H2 server is slower, for instance, when using graphs of objects with small retrieval size. Comparing the normalized speed of EclipseLink with H2 database server (1.1) to the normalized speed of DataNucleus with H2 database server (5.7) reveals that in that case, EclipseLink with H2 server is 5.2 times slower 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 server
DataNucleus
H2 server
EclipseLink
H2 server
DataNucleus
H2 server
EclipseLink
H2 server
Basic Person Test4.13.81.31.12.72.5
Element Collection Test4.04.10.491.12.32.6
Inheritance Test2.93.21.51.32.22.3
Indexing Test0.00363.01.58.00.755.5
Multithreading Test1.31.1failed1.01.31.1
All Tests2.53.01.22.51.92.8

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

The results above show that in general EclipseLink with H2 server is more efficient than DataNucleus with H2 server in executing the tested JPA queries.

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 database server (3.0) reveals that in that case, EclipseLink with H2 server is 833 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 server
DataNucleus
H2 server
EclipseLink
H2 server
DataNucleus
H2 server
EclipseLink
H2 server
Basic Person Test2.54.51.42.21.93.4
Element Collection Test2.03.81.02.41.53.1
Inheritance Test2.44.42.33.02.33.7
Indexing Test2.74.23.03.12.93.7
Graph (Binary Tree) Test1.81.40.600.791.21.1
Multithreading Testfailed7.8failed2.5failed5.1
All Tests2.34.31.72.32.03.3

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

The results above show that in general EclipseLink with H2 server is more efficient than DataNucleus with H2 server 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 database server (1.0) to the normalized speed of EclipseLink with H2 database server (2.4) reveals that in that case, EclipseLink with H2 server is 2.4 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 server
DataNucleus
H2 server
EclipseLink
H2 server
DataNucleus
H2 server
EclipseLink
H2 server
Basic Person Test3.46.41.33.12.34.8
Element Collection Test1.53.00.681.31.12.2
Inheritance Test2.75.61.32.82.04.2
Indexing Test5.710.31.93.83.87.0
Graph (Binary Tree) Test1.51.51.21.31.31.4
Multithreading Testfailed7.05.14.95.16.0
All Tests3.05.61.92.92.44.3

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

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

A large 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 database server (3.1) reveals that in that case, EclipseLink with H2 server is 2.4 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 server
DataNucleus
H2 server
EclipseLink
H2 server
DataNucleus
H2 server
EclipseLink
H2 server
Basic Person Test3.25.22.33.42.74.3
Element Collection Test1.93.60.782.11.32.9
Inheritance Test2.64.92.63.92.64.4
Indexing Test3.26.33.55.73.36.0
Graph (Binary Tree) Test2.82.13.01.92.92.0
Multithreading Test4.57.76.05.75.36.7
All Tests2.95.12.83.82.94.5

The results above show that in general EclipseLink with H2 server is more efficient than DataNucleus with H2 server in performing JPA database operations.

A large 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 database server (2.1) reveals that in that case, EclipseLink with H2 server is 2.7 times faster than DataNucleus with H2 server.

Other Head to Head DBMS/JPA Comparisons