Compare with

Comparison of EclipseLink with PostgreSQL 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
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
Basic Person Test7.32.84.22.35.82.6
Element Collection Test3.10.711.90.352.50.53
Inheritance Test6.92.75.02.05.92.3
Indexing Test10.04.56.84.08.44.3
Graph (Binary Tree) Test3.50.623.30.533.40.57
Multithreading Test31.84.914.53.423.14.1
All Tests10.42.76.02.18.22.4

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

A large performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (4.9) to the normalized speed of EclipseLink with PostgreSQL database server (31.8) reveals that in that case, EclipseLink with PostgreSQL server is 6.5 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
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
Basic Person Test6.80.5617.26.312.03.4
Element Collection Test0.0260.360.0200.930.0230.64
Inheritance Test6.00.4519.76.812.93.6
Indexing Test5.60.5019.57.112.63.8
Graph (Binary Tree) Test0.470.220.616.60.543.4
Multithreading Test13.51.227.810.020.65.6
All Tests5.40.5514.16.39.83.4

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

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 PostgreSQL database server (6.0) reveals that in that case, EclipseLink with PostgreSQL server is 13.3 times faster than DataNucleus with Derby server.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.020) to the normalized speed of DataNucleus with Derby database server (0.93) reveals that in that case, EclipseLink with PostgreSQL server is 46.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
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
Basic Person Test55.537.77.83.631.620.7
Element Collection Test15.425.90.0281.47.713.6
Inheritance Test54.96.511.51.833.24.2
Indexing Test0.0770.03010.04.95.12.5
Multithreading Test55.3failed12.0failed33.7failed
All Tests36.217.58.32.922.310.2

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

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

A large 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 (6.5) to the normalized speed of EclipseLink with PostgreSQL database server (54.9) reveals that in that case, EclipseLink with PostgreSQL server is 8.4 times faster than DataNucleus with Derby server.

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
Basic Person Test6.21.14.10.855.10.99
Element Collection Test0.0800.810.0280.620.0540.71
Inheritance Test6.41.26.11.36.21.2
Indexing Test6.51.27.01.56.81.3
Graph (Binary Tree) Test0.900.290.500.410.700.35
Multithreading Test36.0failed9.1failed22.5failed
All Tests9.30.934.50.926.90.92

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

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

A large performance gap has been detected when using simple basic entities with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (1.1) to the normalized speed of EclipseLink with PostgreSQL database server (6.2) reveals that in that case, EclipseLink with PostgreSQL server is 5.6 times faster than DataNucleus with Derby server.

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
Basic Person Test5.71.35.71.35.71.3
Element Collection Test0.0250.61stopped0.330.0120.47
Inheritance Test5.51.05.41.35.41.2
Indexing Test10.42.310.01.910.22.1
Graph (Binary Tree) Test0.0160.260.0130.460.0150.36
Multithreading Test26.3failed16.8failed21.6failed
All Tests8.01.16.31.17.21.1

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

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

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using graphs of objects with large transaction size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.013) to the normalized speed of DataNucleus with Derby database server (0.46) reveals that in that case, EclipseLink with PostgreSQL server is 35.4 times slower than DataNucleus with Derby server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
Basic Person Test16.38.77.82.912.15.8
Element Collection Test3.75.70.400.722.13.2
Inheritance Test15.92.49.52.612.72.5
Indexing Test6.51.710.73.98.62.8
Graph (Binary Tree) Test1.20.351.12.01.21.2
Multithreading Test32.63.016.06.724.34.9
All Tests13.13.87.82.810.53.3

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

A huge 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 PostgreSQL database server (32.6) reveals that in that case, EclipseLink with PostgreSQL server is 10.9 times faster than DataNucleus with Derby server.

Other Head to Head DBMS/JPA Comparisons