Compare with

Comparison of DataNucleus with PostgreSQL server vs EclipseLink 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
 DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
Basic Person Test4.13.82.63.13.33.4
Element Collection Test0.912.20.381.50.641.8
Inheritance Test3.83.92.42.93.13.4
Indexing Test6.05.26.44.36.24.7
Graph (Binary Tree) Test0.911.90.771.70.841.8
Multithreading Test18.06.18.33.913.15.0
All Tests5.63.83.52.94.53.4

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
 DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
Basic Person Test1.76.47.611.34.68.8
Element Collection Test0.731.80.632.40.682.1
Inheritance Test1.53.79.312.95.48.3
Indexing Test1.53.69.212.85.38.2
Graph (Binary Tree) Test2.60.6112.30.737.40.67
Multithreading Test3.48.510.819.87.114.1
All Tests1.94.18.310.05.17.0

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
 DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
Basic Person Test49.145.84.75.326.925.6
Element Collection Test39.135.20.480.9919.818.1
Inheritance Test55.923.16.65.931.214.5
Indexing Test0.0482.56.412.23.27.4
Multithreading Testfailed34.3failed7.7failed21.0
All Tests36.028.24.56.420.317.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
 DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
Basic Person Test2.13.90.844.41.54.1
Element Collection Test1.41.70.641.61.01.6
Inheritance Test2.14.61.26.11.75.3
Indexing Test2.24.51.57.61.86.1
Graph (Binary Tree) Test0.650.700.200.420.420.56
Multithreading Test0.467.3failed4.80.466.0
All Tests1.53.80.874.21.24.0

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
 DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
Basic Person Test3.02.81.33.92.23.3
Element Collection Test1.01.20.390.550.690.87
Inheritance Test2.83.31.33.72.13.5
Indexing Test5.44.91.93.53.74.2
Graph (Binary Tree) Test0.380.510.370.500.370.51
Multithreading Test13.84.8failed5.713.85.3
All Tests4.42.91.13.02.93.0

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
 DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
DataNucleus
PostgreSQL server
EclipseLink
Derby server
Basic Person Test12.012.53.45.67.79.1
Element Collection Test8.68.40.501.44.64.9
Inheritance Test13.27.74.26.38.77.0
Indexing Test3.04.15.18.14.06.1
Graph (Binary Tree) Test1.10.933.40.832.30.88
Multithreading Test8.912.29.58.49.110.3
All Tests8.07.93.85.26.06.6

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