Compare with

Comparison of EclipseLink with PostgreSQL server vs DataNucleus with HSQLDB 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
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test7.314.24.24.85.89.5
Element Collection Test3.16.61.92.12.54.3
Inheritance Test6.913.65.04.65.99.1
Indexing Test10.024.66.811.18.417.8
Graph (Binary Tree) Test3.56.83.34.53.45.7
Multithreading Test31.838.514.58.523.123.5
All Tests10.417.46.05.98.211.7

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
 EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test6.86.617.210.212.08.4
Element Collection Test0.0263.60.0208.10.0235.8
Inheritance Test6.05.719.78.812.97.2
Indexing Test5.65.119.59.512.67.3
Graph (Binary Tree) Test0.477.20.619.30.548.3
Multithreading Test13.58.127.89.520.68.8
All Tests5.46.014.19.29.87.6

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
 EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test55.51.47.80.4831.60.95
Element Collection Test15.41.30.0280.677.71.0
Inheritance Test54.91.611.50.6133.21.1
Indexing Test0.0770.001610.00.635.10.32
Multithreading Test55.30.4012.0failed33.70.40
All Tests36.20.968.30.6022.30.80

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
 EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test6.211.54.12.75.17.1
Element Collection Test0.0806.90.0282.70.0544.8
Inheritance Test6.410.36.13.66.26.9
Indexing Test6.511.47.04.46.87.9
Graph (Binary Tree) Test0.903.50.501.50.702.5
Multithreading Test36.0failed9.1failed22.5failed
All Tests9.38.74.53.06.95.8

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
 EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test5.74.25.71.35.72.8
Element Collection Test0.0254.9stopped1.60.0123.2
Inheritance Test5.54.05.41.35.42.7
Indexing Test10.47.510.01.910.24.7
Graph (Binary Tree) Test0.0162.90.0132.00.0152.5
Multithreading Test26.340.116.813.721.626.9
All Tests8.010.66.33.77.27.1

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
 EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
EclipseLink
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test16.37.67.83.912.15.7
Element Collection Test3.74.70.403.02.13.8
Inheritance Test15.97.19.53.812.75.4
Indexing Test6.59.710.75.58.67.6
Graph (Binary Tree) Test1.25.11.14.31.24.7
Multithreading Test32.621.816.010.624.317.0
All Tests13.19.07.84.810.57.0

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