Compare with

Comparison of EclipseLink with Derby server 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 server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
Basic Person Test3.83.43.12.23.42.8
Element Collection Test2.21.21.50.641.80.92
Inheritance Test3.93.02.91.93.42.4
Indexing Test5.25.34.33.54.74.4
Graph (Binary Tree) Test1.92.11.71.31.81.7
Multithreading Test6.110.03.94.35.07.2
All Tests3.84.22.92.33.43.2

The results above show that in general EclipseLink with Derby server is slightly 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 database server (1.5) reveals that in that case, EclipseLink with Derby server is 2.3 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 server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
Basic Person Test6.42.511.35.28.83.9
Element Collection Test1.80.562.41.12.10.82
Inheritance Test3.72.212.96.18.34.2
Indexing Test3.62.112.87.78.24.9
Graph (Binary Tree) Test0.615.70.738.90.677.3
Multithreading Test8.52.319.88.714.15.5
All Tests4.12.510.06.37.04.4

The results above show that in general EclipseLink with Derby 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 multithreading with small retrieval size. Comparing the normalized speed of DataNucleus with H2 database server (2.3) to the normalized speed of EclipseLink with Derby database server (8.5) reveals that in that case, EclipseLink with Derby server is 3.7 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with Derby server is slower, for instance, when using graphs of objects with large retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (0.73) to the normalized speed of DataNucleus with H2 database server (8.9) reveals that in that case, EclipseLink with Derby server is 12.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
 EclipseLink
Derby server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
Basic Person Test45.84.15.31.325.62.7
Element Collection Test35.24.00.990.4918.12.3
Inheritance Test23.12.95.91.514.52.2
Indexing Test2.50.003612.21.57.40.75
Multithreading Test34.31.37.7failed21.01.3
All Tests28.22.56.41.217.31.9

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

The results above show that in general EclipseLink with Derby server 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 database server (17.3) reveals that in these tests, EclipseLink with Derby server is 9.1 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 database server (2.5) reveals that in that case, EclipseLink with Derby server is 694 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 server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
Basic Person Test3.92.54.41.44.11.9
Element Collection Test1.72.01.61.01.61.5
Inheritance Test4.62.46.12.35.32.3
Indexing Test4.52.77.63.06.12.9
Graph (Binary Tree) Test0.701.80.420.600.561.2
Multithreading Test7.3failed4.8failed6.0failed
All Tests3.82.34.21.74.02.0

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

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

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.4) to the normalized speed of EclipseLink with Derby database server (4.4) reveals that in that case, EclipseLink with Derby server is 3.1 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with Derby server is slower, for instance, when using graphs of objects with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (0.70) to the normalized speed of DataNucleus with H2 database server (1.8) reveals that in that case, EclipseLink with Derby server is 2.6 times slower 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 server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
Basic Person Test2.83.43.91.33.32.3
Element Collection Test1.21.50.550.680.871.1
Inheritance Test3.32.73.71.33.52.0
Indexing Test4.95.73.51.94.23.8
Graph (Binary Tree) Test0.511.50.501.20.511.3
Multithreading Test4.8failed5.75.15.35.1
All Tests2.93.03.01.93.02.4

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

The results above show that in general EclipseLink with Derby server is slightly 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 database server (3.9) reveals that in that case, EclipseLink with Derby server is 3.0 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with Derby server is slower, for instance, when using graphs of objects with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (0.51) to the normalized speed of DataNucleus with H2 database server (1.5) reveals that in that case, EclipseLink with Derby server is 2.9 times slower 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 server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
EclipseLink
Derby server
DataNucleus
H2 server
Basic Person Test12.53.25.62.39.12.7
Element Collection Test8.41.91.40.784.91.3
Inheritance Test7.72.66.32.67.02.6
Indexing Test4.13.28.13.56.13.3
Graph (Binary Tree) Test0.932.80.833.00.882.9
Multithreading Test12.24.58.46.010.35.3
All Tests7.92.95.22.86.62.9

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

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

On the other hand, EclipseLink with Derby server is slower, for instance, when using graphs of objects with large transaction/retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (0.83) to the normalized speed of DataNucleus with H2 database server (3.0) reveals that in that case, EclipseLink with Derby server is 3.6 times slower than DataNucleus with H2 server.

Other Head to Head DBMS/JPA Comparisons