Compare with

Comparison of EclipseLink with H2 server vs DataNucleus with Derby 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
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
Basic Person Test5.62.82.52.34.02.6
Element Collection Test4.20.711.50.352.80.53
Inheritance Test6.62.72.12.04.42.3
Indexing Test9.74.54.14.06.94.3
Graph (Binary Tree) Test4.70.623.50.534.10.57
Multithreading Test10.24.94.03.47.14.1
All Tests6.82.72.92.14.92.4

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
Basic Person Test5.50.568.26.36.83.4
Element Collection Test3.20.364.20.933.70.64
Inheritance Test4.70.4510.16.87.43.6
Indexing Test4.40.509.47.16.93.8
Graph (Binary Tree) Test1.10.221.96.61.53.4
Multithreading Test12.21.215.910.014.05.6
All Tests5.20.558.36.36.73.4

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

A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.45) to the normalized speed of EclipseLink with H2 database server (4.7) reveals that in that case, EclipseLink with H2 server is 10.4 times faster than DataNucleus with Derby server.

On the other hand, EclipseLink with H2 server is slower, for instance, 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 Derby database server (6.6) reveals that in that case, EclipseLink with H2 server is 3.5 times slower than DataNucleus with Derby server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
Basic Person Test3.837.71.13.62.520.7
Element Collection Test4.125.91.11.42.613.6
Inheritance Test3.26.51.31.82.34.2
Indexing Test3.00.0308.04.95.52.5
Multithreading Test1.1failed1.0failed1.1failed
All Tests3.017.52.52.92.810.2

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

The results above show that in general DataNucleus with Derby server is much more efficient than EclipseLink with H2 server in executing the tested JPA queries. Comparing the normalized speed of EclipseLink with H2 database server (2.8) to the normalized speed of DataNucleus with Derby database server (10.2) reveals that in these tests, DataNucleus with Derby server is 3.6 times faster than EclipseLink with H2 server.

A large performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of EclipseLink with H2 database server (3.8) to the normalized speed of DataNucleus with Derby database server (37.7) reveals that in that case, DataNucleus with Derby server is 9.9 times faster than EclipseLink with H2 server.

On the other hand, DataNucleus with Derby server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.030) to the normalized speed of EclipseLink with H2 database server (3.0) reveals that in that case, DataNucleus with Derby server is 100 times slower than EclipseLink with H2 server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
Basic Person Test4.51.12.20.853.40.99
Element Collection Test3.80.812.40.623.10.71
Inheritance Test4.41.23.01.33.71.2
Indexing Test4.21.23.11.53.71.3
Graph (Binary Tree) Test1.40.290.790.411.10.35
Multithreading Test7.8failed2.5failed5.1failed
All Tests4.30.932.30.923.30.92

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

The results above show that in general EclipseLink with H2 server is much more efficient than DataNucleus with Derby server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with Derby database server (0.92) to the normalized speed of EclipseLink with H2 database server (3.3) reveals that in these tests, EclipseLink with H2 server is 3.6 times faster than DataNucleus with Derby server.

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
Basic Person Test6.41.33.11.34.81.3
Element Collection Test3.00.611.30.332.20.47
Inheritance Test5.61.02.81.34.21.2
Indexing Test10.32.33.81.97.02.1
Graph (Binary Tree) Test1.50.261.30.461.40.36
Multithreading Test7.0failed4.9failed6.0failed
All Tests5.61.12.91.14.31.1

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

The results above show that in general EclipseLink with H2 server is much more efficient than DataNucleus with Derby server in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with Derby database server (1.1) to the normalized speed of EclipseLink with H2 database server (4.3) reveals that in these tests, EclipseLink with H2 server is 3.9 times faster than DataNucleus with Derby server.

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
EclipseLink
H2 server
DataNucleus
Derby server
Basic Person Test5.28.73.42.94.35.8
Element Collection Test3.65.72.10.722.93.2
Inheritance Test4.92.43.92.64.42.5
Indexing Test6.31.75.73.96.02.8
Graph (Binary Tree) Test2.10.351.92.02.01.2
Multithreading Test7.73.05.76.76.74.9
All Tests5.13.83.82.84.53.3

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

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

Other Head to Head DBMS/JPA Comparisons