Compare with

Comparison of EclipseLink with Derby embedded vs DataNucleus 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
 EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
Basic Person Test5.53.43.72.24.62.8
Element Collection Test3.01.21.70.642.40.92
Inheritance Test5.33.03.51.94.42.4
Indexing Test6.95.34.63.55.84.4
Graph (Binary Tree) Test2.02.11.91.31.91.7
Multithreading Test9.310.04.14.36.77.2
All Tests5.34.23.22.34.33.2

The results above show that in general EclipseLink with Derby embedded 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 large transaction size. Comparing the normalized speed of DataNucleus with H2 database server (0.64) to the normalized speed of EclipseLink with Derby embedded database (1.7) reveals that in that case, EclipseLink with Derby embedded is 2.7 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
 EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
Basic Person Test16.42.558.75.237.53.9
Element Collection Test7.50.5613.31.110.40.82
Inheritance Test17.12.258.96.138.04.2
Indexing Test14.22.167.47.740.84.9
Graph (Binary Tree) Test2.85.75.78.94.27.3
Multithreading Test28.02.348.78.738.45.5
All Tests14.32.542.16.328.24.4

The results above show that in general EclipseLink with Derby 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 Derby embedded database (28.2) reveals that in these tests, EclipseLink with Derby embedded is 6.4 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 Derby embedded database (7.5) reveals that in that case, EclipseLink with Derby embedded is 13.4 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with Derby embedded is slower, for instance, when using graphs of objects with small retrieval size. Comparing the normalized speed of EclipseLink with Derby embedded database (2.8) to the normalized speed of DataNucleus with H2 database server (5.7) reveals that in that case, EclipseLink with Derby embedded is 2.0 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
 EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
Basic Person Test53.44.113.81.333.62.7
Element Collection Test37.94.04.40.4921.22.3
Inheritance Test37.42.915.01.526.22.2
Indexing Test7.60.003649.31.528.40.75
Multithreading Test41.21.36.1failed23.61.3
All Tests35.52.517.71.226.61.9

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

The results above show that in general EclipseLink with Derby embedded is much 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 Derby embedded database (26.6) reveals that in these tests, EclipseLink with Derby embedded is 14.0 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 Derby embedded database (7.6) reveals that in that case, EclipseLink with Derby embedded is 2,111 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
 EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
Basic Person Test6.42.56.71.46.51.9
Element Collection Test5.42.06.21.05.81.5
Inheritance Test6.52.49.22.37.82.3
Indexing Test7.32.711.13.09.22.9
Graph (Binary Tree) Test2.81.81.70.602.21.2
Multithreading Test21.3failed5.0failed13.1failed
All Tests8.32.36.61.77.52.0

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

The results above show that in general EclipseLink with Derby 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 Derby embedded database (7.5) reveals that in these tests, EclipseLink with Derby embedded is 3.8 times faster than DataNucleus with H2 server.

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 Derby embedded database (6.2) reveals that in that case, EclipseLink with Derby embedded is 6.2 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
 EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
Basic Person Test4.63.44.71.34.62.3
Element Collection Test2.51.51.40.681.91.1
Inheritance Test3.92.74.51.34.22.0
Indexing Test6.25.73.81.95.03.8
Graph (Binary Tree) Test1.11.51.01.21.11.3
Multithreading Test6.2failed5.85.16.05.1
All Tests4.13.03.51.93.82.4

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

The results above show that in general EclipseLink with Derby embedded 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 Derby embedded database (4.7) reveals that in that case, EclipseLink with Derby embedded is 3.6 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
 EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
Basic Person Test17.33.217.52.317.42.7
Element Collection Test11.31.95.40.788.31.3
Inheritance Test14.02.618.22.616.12.6
Indexing Test8.43.227.23.517.83.3
Graph (Binary Tree) Test2.22.82.63.02.42.9
Multithreading Test21.24.513.96.017.65.3
All Tests12.72.914.52.813.62.9

The results above show that in general EclipseLink with Derby 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 Derby embedded database (13.6) reveals that in these tests, EclipseLink with Derby embedded is 4.7 times faster than DataNucleus with H2 server.

A large performance gap has been detected when using database indexes with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with H2 database server (3.5) to the normalized speed of EclipseLink with Derby embedded database (27.2) reveals that in that case, EclipseLink with Derby embedded is 7.8 times faster than DataNucleus with H2 server.

Other Head to Head DBMS/JPA Comparisons