Compare with

Comparison of DataNucleus with H2 server vs EclipseLink with Derby 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
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
Basic Person Test3.45.52.23.72.84.6
Element Collection Test1.23.00.641.70.922.4
Inheritance Test3.05.31.93.52.44.4
Indexing Test5.36.93.54.64.45.8
Graph (Binary Tree) Test2.12.01.31.91.71.9
Multithreading Test10.09.34.34.17.26.7
All Tests4.25.32.33.23.24.3

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
 DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
Basic Person Test2.516.45.258.73.937.5
Element Collection Test0.567.51.113.30.8210.4
Inheritance Test2.217.16.158.94.238.0
Indexing Test2.114.27.767.44.940.8
Graph (Binary Tree) Test5.72.88.95.77.34.2
Multithreading Test2.328.08.748.75.538.4
All Tests2.514.36.342.14.428.2

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
 DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
Basic Person Test4.153.41.313.82.733.6
Element Collection Test4.037.90.494.42.321.2
Inheritance Test2.937.41.515.02.226.2
Indexing Test0.00367.61.549.30.7528.4
Multithreading Test1.341.2failed6.11.323.6
All Tests2.535.51.217.71.926.6

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
 DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
Basic Person Test2.56.41.46.71.96.5
Element Collection Test2.05.41.06.21.55.8
Inheritance Test2.46.52.39.22.37.8
Indexing Test2.77.33.011.12.99.2
Graph (Binary Tree) Test1.82.80.601.71.22.2
Multithreading Testfailed21.3failed5.0failed13.1
All Tests2.38.31.76.62.07.5

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
 DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
Basic Person Test3.44.61.34.72.34.6
Element Collection Test1.52.50.681.41.11.9
Inheritance Test2.73.91.34.52.04.2
Indexing Test5.76.21.93.83.85.0
Graph (Binary Tree) Test1.51.11.21.01.31.1
Multithreading Testfailed6.25.15.85.16.0
All Tests3.04.11.93.52.43.8

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
 DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
DataNucleus
H2 server
EclipseLink
Derby embedded
Basic Person Test3.217.32.317.52.717.4
Element Collection Test1.911.30.785.41.38.3
Inheritance Test2.614.02.618.22.616.1
Indexing Test3.28.43.527.23.317.8
Graph (Binary Tree) Test2.82.23.02.62.92.4
Multithreading Test4.521.26.013.95.317.6
All Tests2.912.72.814.52.913.6

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