Compare with

Comparison of EclipseLink with H2 server vs DataNucleus 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
 EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
Basic Person Test5.619.22.58.04.013.6
Element Collection Test4.26.61.52.82.84.7
Inheritance Test6.615.62.14.44.410.0
Indexing Test9.724.44.111.86.918.1
Graph (Binary Tree) Test4.79.23.56.24.17.7
Multithreading Test10.234.94.07.17.121.0
All Tests6.818.32.96.74.912.5

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
Basic Person Test5.513.28.213.56.813.3
Element Collection Test3.26.44.28.93.77.7
Inheritance Test4.712.210.112.77.412.4
Indexing Test4.48.19.416.56.912.3
Graph (Binary Tree) Test1.110.61.920.91.515.8
Multithreading Test12.213.315.99.914.011.6
All Tests5.210.68.313.76.712.2

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
Basic Person Test3.84.71.11.42.53.1
Element Collection Test4.15.01.12.42.63.7
Inheritance Test3.23.81.31.62.32.7
Indexing Test3.00.00418.01.85.50.91
Multithreading Test1.11.21.00.791.11.0
All Tests3.03.02.51.62.82.3

The results above show that in general EclipseLink with H2 server is slightly more efficient than DataNucleus with H2 embedded 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 embedded database (0.0041) to the normalized speed of EclipseLink with H2 database server (3.0) reveals that in that case, EclipseLink with H2 server is 732 times faster than DataNucleus with H2 embedded.

On the other hand, EclipseLink with H2 server is slower, for instance, when using JPA element collections with large retrieval size. Comparing the normalized speed of EclipseLink with H2 database server (1.1) to the normalized speed of DataNucleus with H2 embedded database (2.4) reveals that in that case, EclipseLink with H2 server is 2.2 times slower than DataNucleus with H2 embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
Basic Person Test4.510.02.23.93.46.9
Element Collection Test3.87.62.43.93.15.8
Inheritance Test4.49.43.04.43.76.9
Indexing Test4.210.63.15.93.78.2
Graph (Binary Tree) Test1.45.90.793.71.14.8
Multithreading Test7.8failed2.5failed5.1failed
All Tests4.38.72.34.43.36.5

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

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
Basic Person Test6.44.23.11.34.82.8
Element Collection Test3.04.91.31.62.23.2
Inheritance Test5.64.02.81.34.22.7
Indexing Test10.37.53.81.97.04.7
Graph (Binary Tree) Test1.55.61.34.11.44.8
Multithreading Test7.0failed4.9failed6.0failed
All Tests5.65.22.92.04.33.6

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

The results above show that in general EclipseLink with H2 server is slightly more efficient than DataNucleus with H2 embedded 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 embedded database (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 embedded.

On the other hand, EclipseLink with H2 server is slower, for instance, when using graphs of objects with small transaction size. Comparing the normalized speed of EclipseLink with H2 database server (1.5) to the normalized speed of DataNucleus with H2 embedded database (5.6) reveals that in that case, EclipseLink with H2 server is 3.7 times slower than DataNucleus with H2 embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
EclipseLink
H2 server
DataNucleus
H2 embedded
Basic Person Test5.210.33.45.64.37.9
Element Collection Test3.66.12.13.92.95.0
Inheritance Test4.99.03.94.94.46.9
Indexing Test6.310.15.77.66.08.9
Graph (Binary Tree) Test2.17.81.98.72.08.3
Multithreading Test7.716.55.75.96.711.2
All Tests5.19.63.86.04.57.8

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

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

Other Head to Head DBMS/JPA Comparisons