Compare with

Comparison of EclipseLink with Derby server vs DataNucleus 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
 EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
Basic Person Test3.84.63.12.83.43.7
Element Collection Test2.22.41.51.61.82.0
Inheritance Test3.94.62.92.73.43.7
Indexing Test5.27.64.34.84.76.2
Graph (Binary Tree) Test1.91.61.71.41.81.5
Multithreading Test6.18.63.93.35.05.9
All Tests3.84.92.92.83.43.8

The results above show that in general DataNucleus with Derby embedded is slightly more efficient than EclipseLink with Derby server in persisting JPA entity objects to the database.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
Basic Person Test6.46.811.314.98.810.9
Element Collection Test1.85.42.47.62.16.5
Inheritance Test3.78.812.914.88.311.8
Indexing Test3.69.212.814.18.211.6
Graph (Binary Tree) Test0.619.90.7315.80.6712.9
Multithreading Test8.511.919.811.514.111.7
All Tests4.18.710.013.17.010.9

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

A huge performance gap has been detected 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 embedded database (15.8) reveals that in that case, DataNucleus with Derby embedded is 21.6 times faster than EclipseLink 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 embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
Basic Person Test45.839.15.37.525.623.3
Element Collection Test35.246.00.996.718.126.3
Inheritance Test23.17.75.93.814.55.7
Indexing Test2.50.05312.28.07.44.0
Multithreading Test34.3failed7.7failed21.0failed
All Tests28.223.26.46.517.314.8

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

The results above show that in general EclipseLink with Derby server is slightly more efficient than DataNucleus with Derby embedded 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 embedded database (0.053) to the normalized speed of EclipseLink with Derby database server (2.5) reveals that in that case, EclipseLink with Derby server is 47.2 times faster than DataNucleus with Derby embedded.

On the other hand, EclipseLink with Derby server is slower, for instance, when using JPA element collections with large retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (0.99) to the normalized speed of DataNucleus with Derby embedded database (6.7) reveals that in that case, EclipseLink with Derby server is 6.8 times slower than DataNucleus with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
Basic Person Test3.94.04.43.84.13.9
Element Collection Test1.73.71.64.51.64.1
Inheritance Test4.64.46.14.85.34.6
Indexing Test4.55.27.64.26.14.7
Graph (Binary Tree) Test0.702.70.421.50.562.1
Multithreading Test7.3failed4.8failed6.0failed
All Tests3.84.04.23.74.03.9

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

The results above show that in general EclipseLink with Derby server is slightly more efficient than DataNucleus with Derby embedded in updating JPA entity objects in the database.

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 Derby embedded database (2.7) reveals that in that case, EclipseLink with Derby server is 3.9 times slower than DataNucleus with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
Basic Person Test2.83.53.91.33.32.4
Element Collection Test1.21.90.551.60.871.7
Inheritance Test3.32.43.71.33.51.9
Indexing Test4.96.63.51.94.24.3
Graph (Binary Tree) Test0.510.810.500.930.510.87
Multithreading Test4.8failed5.7failed5.3failed
All Tests2.93.03.01.43.02.2

DataNucleus with Derby embedded 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 embedded 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 Derby embedded database (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 Derby embedded.

On the other hand, EclipseLink with Derby server is slower, for instance, when using JPA element collections with large transaction size. Comparing the normalized speed of EclipseLink with Derby database server (0.55) to the normalized speed of DataNucleus with Derby embedded database (1.6) reveals that in that case, EclipseLink with Derby server is 2.9 times slower than DataNucleus with Derby embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
EclipseLink
Derby server
DataNucleus
Derby embedded
Basic Person Test12.511.65.66.19.18.8
Element Collection Test8.411.91.44.44.98.1
Inheritance Test7.75.66.35.57.05.5
Indexing Test4.15.78.16.66.16.2
Graph (Binary Tree) Test0.933.70.834.90.884.3
Multithreading Test12.210.38.47.410.38.8
All Tests7.98.05.25.76.66.9

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

A large performance gap has been detected 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 embedded database (4.9) reveals that in that case, DataNucleus with Derby embedded is 5.9 times faster than EclipseLink with Derby server.

Other Head to Head DBMS/JPA Comparisons