Compare with

Comparison of DataNucleus with HSQLDB embedded 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
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
Basic Person Test14.27.34.84.29.55.8
Element Collection Test6.63.12.11.94.32.5
Inheritance Test13.66.94.65.09.15.9
Indexing Test24.610.011.16.817.88.4
Graph (Binary Tree) Test6.83.54.53.35.73.4
Multithreading Test38.531.88.514.523.523.1
All Tests17.410.45.96.011.78.2

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
Basic Person Test6.66.810.217.28.412.0
Element Collection Test3.60.0268.10.0205.80.023
Inheritance Test5.76.08.819.77.212.9
Indexing Test5.15.69.519.57.312.6
Graph (Binary Tree) Test7.20.479.30.618.30.54
Multithreading Test8.113.59.527.88.820.6
All Tests6.05.49.214.17.69.8

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

A large performance gap has been detected when using multithreading with large retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (9.5) to the normalized speed of EclipseLink with PostgreSQL database server (27.8) reveals that in that case, EclipseLink with PostgreSQL server is 2.9 times faster than DataNucleus with HSQLDB 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.020) to the normalized speed of DataNucleus with HSQLDB embedded database (8.1) reveals that in that case, EclipseLink with PostgreSQL server is 405 times slower than DataNucleus with HSQLDB embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
Basic Person Test1.455.50.487.80.9531.6
Element Collection Test1.315.40.670.0281.07.7
Inheritance Test1.654.90.6111.51.133.2
Indexing Test0.00160.0770.6310.00.325.1
Multithreading Test0.4055.3failed12.00.4033.7
All Tests0.9636.20.608.30.8022.3

DataNucleus with HSQLDB embedded has failed in 1 tests (see exceptions).

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

A huge performance gap has been detected when using multithreading with small retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (0.40) to the normalized speed of EclipseLink with PostgreSQL database server (55.3) reveals that in that case, EclipseLink with PostgreSQL server is 138 times faster than DataNucleus with HSQLDB 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 HSQLDB embedded database (0.67) reveals that in that case, EclipseLink with PostgreSQL server is 23.9 times slower than DataNucleus with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
Basic Person Test11.56.22.74.17.15.1
Element Collection Test6.90.0802.70.0284.80.054
Inheritance Test10.36.43.66.16.96.2
Indexing Test11.46.54.47.07.96.8
Graph (Binary Tree) Test3.50.901.50.502.50.70
Multithreading Testfailed36.0failed9.1failed22.5
All Tests8.79.33.04.55.86.9

DataNucleus with HSQLDB embedded has failed in 2 tests (see exceptions).

The results above show that in general EclipseLink with PostgreSQL server is slightly more efficient than DataNucleus with HSQLDB 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 HSQLDB embedded database (2.7) reveals that in that case, EclipseLink with PostgreSQL server is 96.4 times slower than DataNucleus with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
Basic Person Test4.25.71.35.72.85.7
Element Collection Test4.90.0251.6stopped3.20.012
Inheritance Test4.05.51.35.42.75.4
Indexing Test7.510.41.910.04.710.2
Graph (Binary Tree) Test2.90.0162.00.0132.50.015
Multithreading Test40.126.313.716.826.921.6
All Tests10.68.03.76.37.17.2

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

A large performance gap has been detected when using database indexes with large transaction size. Comparing the normalized speed of DataNucleus with HSQLDB 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 HSQLDB 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 HSQLDB embedded database (4.9) reveals that in that case, EclipseLink with PostgreSQL server is 196 times slower than DataNucleus with HSQLDB embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
Basic Person Test7.616.33.97.85.712.1
Element Collection Test4.73.73.00.403.82.1
Inheritance Test7.115.93.89.55.412.7
Indexing Test9.76.55.510.77.68.6
Graph (Binary Tree) Test5.11.24.31.14.71.2
Multithreading Test21.832.610.616.017.024.3
All Tests9.013.14.87.87.010.5

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

A large performance gap has been detected when using class inheritance in the object model with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (3.8) to the normalized speed of EclipseLink with PostgreSQL database server (9.5) reveals that in that case, EclipseLink with PostgreSQL server is 2.5 times faster than DataNucleus with HSQLDB 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 HSQLDB embedded database (3.0) reveals that in that case, EclipseLink with PostgreSQL server is 7.5 times slower than DataNucleus with HSQLDB embedded.

Other Head to Head DBMS/JPA Comparisons