Compare with

Comparison of EclipseLink with Derby 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
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
Basic Person Test3.82.83.12.33.42.6
Element Collection Test2.20.711.50.351.80.53
Inheritance Test3.92.72.92.03.42.3
Indexing Test5.24.54.34.04.74.3
Graph (Binary Tree) Test1.90.621.70.531.80.57
Multithreading Test6.14.93.93.45.04.1
All Tests3.82.72.92.13.42.4

The results above show that in general EclipseLink with Derby server is more efficient than DataNucleus with Derby 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 Derby database server (0.35) to the normalized speed of EclipseLink with Derby database server (1.5) reveals that in that case, EclipseLink with Derby server is 4.3 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
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
Basic Person Test6.40.5611.36.38.83.4
Element Collection Test1.80.362.40.932.10.64
Inheritance Test3.70.4512.96.88.33.6
Indexing Test3.60.5012.87.18.23.8
Graph (Binary Tree) Test0.610.220.736.60.673.4
Multithreading Test8.51.219.810.014.15.6
All Tests4.10.5510.06.37.03.4

The results above show that in general EclipseLink with Derby server is more efficient than DataNucleus with Derby server in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with Derby database server (3.4) to the normalized speed of EclipseLink with Derby database server (7.0) reveals that in these tests, EclipseLink with Derby server is 2.1 times faster than DataNucleus with Derby server.

A huge performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.56) to the normalized speed of EclipseLink with Derby database server (6.4) reveals that in that case, EclipseLink with Derby server is 11.4 times faster than DataNucleus with Derby 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 Derby database server (6.6) reveals that in that case, EclipseLink with Derby server is 9.0 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
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
Basic Person Test45.837.75.33.625.620.7
Element Collection Test35.225.90.991.418.113.6
Inheritance Test23.16.55.91.814.54.2
Indexing Test2.50.03012.24.97.42.5
Multithreading Test34.3failed7.7failed21.0failed
All Tests28.217.56.42.917.310.2

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
Basic Person Test3.91.14.40.854.10.99
Element Collection Test1.70.811.60.621.60.71
Inheritance Test4.61.26.11.35.31.2
Indexing Test4.51.27.61.56.11.3
Graph (Binary Tree) Test0.700.290.420.410.560.35
Multithreading Test7.3failed4.8failed6.0failed
All Tests3.80.934.20.924.00.92

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

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

A large performance gap has been detected when using simple basic entities with large transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.85) to the normalized speed of EclipseLink with Derby database server (4.4) reveals that in that case, EclipseLink with Derby server is 5.2 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
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
Basic Person Test2.81.33.91.33.31.3
Element Collection Test1.20.610.550.330.870.47
Inheritance Test3.31.03.71.33.51.2
Indexing Test4.92.33.51.94.22.1
Graph (Binary Tree) Test0.510.260.500.460.510.36
Multithreading Test4.8failed5.7failed5.3failed
All Tests2.91.13.01.13.01.1

DataNucleus with Derby 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 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 Derby database server (3.0) reveals that in these tests, EclipseLink with Derby server is 2.7 times faster than DataNucleus with Derby server.

A large performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (1.0) to the normalized speed of EclipseLink with Derby database server (3.3) reveals that in that case, EclipseLink with Derby server is 3.3 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
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
EclipseLink
Derby server
DataNucleus
Derby server
Basic Person Test12.58.75.62.99.15.8
Element Collection Test8.45.71.40.724.93.2
Inheritance Test7.72.46.32.67.02.5
Indexing Test4.11.78.13.96.12.8
Graph (Binary Tree) Test0.930.350.832.00.881.2
Multithreading Test12.23.08.46.710.34.9
All Tests7.93.85.22.86.63.3

The results above show that in general EclipseLink with Derby server is more efficient than DataNucleus with Derby server in performing JPA database operations. Comparing the normalized speed of DataNucleus with Derby database server (3.3) to the normalized speed of EclipseLink with Derby database server (6.6) reveals that in these tests, EclipseLink with Derby server is 2.0 times faster than DataNucleus with Derby server.

A large performance gap has been detected when using multithreading with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (3.0) to the normalized speed of EclipseLink with Derby database server (12.2) reveals that in that case, EclipseLink with Derby server is 4.1 times faster than DataNucleus with Derby 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 Derby database server (2.0) reveals that in that case, EclipseLink with Derby server is 2.4 times slower than DataNucleus with Derby server.

Other Head to Head DBMS/JPA Comparisons