Compare with

Comparison of EclipseLink with Derby server vs DataNucleus with PostgreSQL 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
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
Basic Person Test3.84.13.12.63.43.3
Element Collection Test2.20.911.50.381.80.64
Inheritance Test3.93.82.92.43.43.1
Indexing Test5.26.04.36.44.76.2
Graph (Binary Tree) Test1.90.911.70.771.80.84
Multithreading Test6.118.03.98.35.013.1
All Tests3.85.62.93.53.44.5

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

A large performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (6.1) to the normalized speed of DataNucleus with PostgreSQL database server (18.0) reveals that in that case, DataNucleus with PostgreSQL server is 3.0 times faster than EclipseLink with Derby server.

On the other hand, DataNucleus with PostgreSQL server is slower, for instance, when using JPA element collections with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.38) to the normalized speed of EclipseLink with Derby database server (1.5) reveals that in that case, DataNucleus with PostgreSQL server is 3.9 times slower than EclipseLink 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
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
Basic Person Test6.41.711.37.68.84.6
Element Collection Test1.80.732.40.632.10.68
Inheritance Test3.71.512.99.38.35.4
Indexing Test3.61.512.89.28.25.3
Graph (Binary Tree) Test0.612.60.7312.30.677.4
Multithreading Test8.53.419.810.814.17.1
All Tests4.11.910.08.37.05.1

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

A large performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.63) to the normalized speed of EclipseLink with Derby database server (2.4) reveals that in that case, EclipseLink with Derby server is 3.8 times faster than DataNucleus with PostgreSQL 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 PostgreSQL database server (12.3) reveals that in that case, EclipseLink with Derby server is 16.8 times slower than DataNucleus with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
Basic Person Test45.849.15.34.725.626.9
Element Collection Test35.239.10.990.4818.119.8
Inheritance Test23.155.95.96.614.531.2
Indexing Test2.50.04812.26.47.43.2
Multithreading Test34.3failed7.7failed21.0failed
All Tests28.236.06.44.517.320.3

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

The results above show that in general DataNucleus with PostgreSQL server is slightly more efficient than EclipseLink with Derby server in executing the tested JPA queries.

A large performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (23.1) to the normalized speed of DataNucleus with PostgreSQL database server (55.9) reveals that in that case, DataNucleus with PostgreSQL server is 2.4 times faster than EclipseLink with Derby server.

On the other hand, DataNucleus with PostgreSQL server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.048) to the normalized speed of EclipseLink with Derby database server (2.5) reveals that in that case, DataNucleus with PostgreSQL server is 52.1 times slower than EclipseLink 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
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
Basic Person Test3.92.14.40.844.11.5
Element Collection Test1.71.41.60.641.61.0
Inheritance Test4.62.16.11.25.31.7
Indexing Test4.52.27.61.56.11.8
Graph (Binary Tree) Test0.700.650.420.200.560.42
Multithreading Test7.30.464.8failed6.00.46
All Tests3.81.54.20.874.01.2

DataNucleus with PostgreSQL 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 PostgreSQL server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (1.2) to the normalized speed of EclipseLink with Derby database server (4.0) reveals that in these tests, EclipseLink with Derby server is 3.3 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.46) to the normalized speed of EclipseLink with Derby database server (7.3) reveals that in that case, EclipseLink with Derby server is 15.9 times faster than DataNucleus with PostgreSQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
Basic Person Test2.83.03.91.33.32.2
Element Collection Test1.21.00.550.390.870.69
Inheritance Test3.32.83.71.33.52.1
Indexing Test4.95.43.51.94.23.7
Graph (Binary Tree) Test0.510.380.500.370.510.37
Multithreading Test4.813.85.7failed5.313.8
All Tests2.94.43.01.13.02.9

DataNucleus with PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL server.

On the other hand, EclipseLink with Derby server is slower, for instance, when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (4.8) to the normalized speed of DataNucleus with PostgreSQL database server (13.8) reveals that in that case, EclipseLink with Derby server is 2.9 times slower than DataNucleus with PostgreSQL server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
Basic Person Test12.512.05.63.49.17.7
Element Collection Test8.48.61.40.504.94.6
Inheritance Test7.713.26.34.27.08.7
Indexing Test4.13.08.15.16.14.0
Graph (Binary Tree) Test0.931.10.833.40.882.3
Multithreading Test12.28.98.49.510.39.1
All Tests7.98.05.23.86.66.0

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

A large performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.50) to the normalized speed of EclipseLink with Derby database server (1.4) reveals that in that case, EclipseLink with Derby server is 2.8 times faster than DataNucleus with PostgreSQL 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 PostgreSQL database server (3.4) reveals that in that case, EclipseLink with Derby server is 4.1 times slower than DataNucleus with PostgreSQL server.

Other Head to Head DBMS/JPA Comparisons