Compare with

Comparison of EclipseLink with PostgreSQL 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
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
Basic Person Test7.34.64.22.85.83.7
Element Collection Test3.12.41.91.62.52.0
Inheritance Test6.94.65.02.75.93.7
Indexing Test10.07.66.84.88.46.2
Graph (Binary Tree) Test3.51.63.31.43.41.5
Multithreading Test31.88.614.53.323.15.9
All Tests10.44.96.02.88.23.8

The results above show that in general EclipseLink with PostgreSQL server is more efficient than DataNucleus with Derby embedded in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with Derby embedded database (3.8) to the normalized speed of EclipseLink with PostgreSQL database server (8.2) reveals that in these tests, EclipseLink with PostgreSQL server is 2.2 times faster than DataNucleus with Derby embedded.

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
Basic Person Test6.86.817.214.912.010.9
Element Collection Test0.0265.40.0207.60.0236.5
Inheritance Test6.08.819.714.812.911.8
Indexing Test5.69.219.514.112.611.6
Graph (Binary Tree) Test0.479.90.6115.80.5412.9
Multithreading Test13.511.927.811.520.611.7
All Tests5.48.714.113.19.810.9

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

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

On the other hand, DataNucleus with Derby embedded is slower, for instance, when using multithreading with large retrieval size. Comparing the normalized speed of DataNucleus with Derby embedded database (11.5) to the normalized speed of EclipseLink with PostgreSQL database server (27.8) reveals that in that case, DataNucleus with Derby embedded is 2.4 times slower than EclipseLink with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
Basic Person Test55.539.17.87.531.623.3
Element Collection Test15.446.00.0286.77.726.3
Inheritance Test54.97.711.53.833.25.7
Indexing Test0.0770.05310.08.05.14.0
Multithreading Test55.3failed12.0failed33.7failed
All Tests36.223.28.36.522.314.8

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

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 embedded database (6.7) reveals that in that case, EclipseLink with PostgreSQL server is 239 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
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
Basic Person Test6.24.04.13.85.13.9
Element Collection Test0.0803.70.0284.50.0544.1
Inheritance Test6.44.46.14.86.24.6
Indexing Test6.55.27.04.26.84.7
Graph (Binary Tree) Test0.902.70.501.50.702.1
Multithreading Test36.0failed9.1failed22.5failed
All Tests9.34.04.53.76.93.9

DataNucleus with Derby embedded 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 embedded in updating JPA entity objects in the database.

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 embedded database (4.5) reveals that in that case, EclipseLink with PostgreSQL server is 161 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
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
Basic Person Test5.73.55.71.35.72.4
Element Collection Test0.0251.9stopped1.60.0121.7
Inheritance Test5.52.45.41.35.41.9
Indexing Test10.46.610.01.910.24.3
Graph (Binary Tree) Test0.0160.810.0130.930.0150.87
Multithreading Test26.3failed16.8failed21.6failed
All Tests8.03.06.31.47.22.2

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

A large performance gap has been detected when using database indexes with large transaction size. Comparing the normalized speed of DataNucleus with Derby embedded database (1.9) to the normalized speed of EclipseLink with PostgreSQL database server (10.0) reveals that in that case, EclipseLink with PostgreSQL server is 5.3 times faster than DataNucleus with Derby embedded.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with small transaction size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.025) to the normalized speed of DataNucleus with Derby embedded database (1.9) reveals that in that case, EclipseLink with PostgreSQL server is 76.0 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
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
EclipseLink
PostgreSQL server
DataNucleus
Derby embedded
Basic Person Test16.311.67.86.112.18.8
Element Collection Test3.711.90.404.42.18.1
Inheritance Test15.95.69.55.512.75.5
Indexing Test6.55.710.76.68.66.2
Graph (Binary Tree) Test1.23.71.14.91.24.3
Multithreading Test32.610.316.07.424.38.8
All Tests13.18.07.85.710.56.9

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

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

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

Other Head to Head DBMS/JPA Comparisons