Compare with

Comparison of DataNucleus with Derby server vs EclipseLink 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
 DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
Basic Person Test2.87.32.34.22.65.8
Element Collection Test0.713.10.351.90.532.5
Inheritance Test2.76.92.05.02.35.9
Indexing Test4.510.04.06.84.38.4
Graph (Binary Tree) Test0.623.50.533.30.573.4
Multithreading Test4.931.83.414.54.123.1
All Tests2.710.42.16.02.48.2

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
 DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
Basic Person Test0.566.86.317.23.412.0
Element Collection Test0.360.0260.930.0200.640.023
Inheritance Test0.456.06.819.73.612.9
Indexing Test0.505.67.119.53.812.6
Graph (Binary Tree) Test0.220.476.60.613.40.54
Multithreading Test1.213.510.027.85.620.6
All Tests0.555.46.314.13.49.8

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
 DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
Basic Person Test37.755.53.67.820.731.6
Element Collection Test25.915.41.40.02813.67.7
Inheritance Test6.554.91.811.54.233.2
Indexing Test0.0300.0774.910.02.55.1
Multithreading Testfailed55.3failed12.0failed33.7
All Tests17.536.22.98.310.222.3

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
 DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
Basic Person Test1.16.20.854.10.995.1
Element Collection Test0.810.0800.620.0280.710.054
Inheritance Test1.26.41.36.11.26.2
Indexing Test1.26.51.57.01.36.8
Graph (Binary Tree) Test0.290.900.410.500.350.70
Multithreading Testfailed36.0failed9.1failed22.5
All Tests0.939.30.924.50.926.9

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
 DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
Basic Person Test1.35.71.35.71.35.7
Element Collection Test0.610.0250.33stopped0.470.012
Inheritance Test1.05.51.35.41.25.4
Indexing Test2.310.41.910.02.110.2
Graph (Binary Tree) Test0.260.0160.460.0130.360.015
Multithreading Testfailed26.3failed16.8failed21.6
All Tests1.18.01.16.31.17.2

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
 DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
DataNucleus
Derby server
EclipseLink
PostgreSQL server
Basic Person Test8.716.32.97.85.812.1
Element Collection Test5.73.70.720.403.22.1
Inheritance Test2.415.92.69.52.512.7
Indexing Test1.76.53.910.72.88.6
Graph (Binary Tree) Test0.351.22.01.11.21.2
Multithreading Test3.032.66.716.04.924.3
All Tests3.813.12.87.83.310.5

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