Compare with

Comparison of EclipseLink with HSQLDB embedded vs DataNucleus 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
 EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
Basic Person Test27.14.117.22.622.23.3
Element Collection Test17.20.918.20.3812.70.64
Inheritance Test26.73.811.92.419.33.1
Indexing Test30.66.018.66.424.66.2
Graph (Binary Tree) Test20.00.9115.90.7718.00.84
Multithreading Test32.518.011.48.322.013.1
All Tests25.75.613.93.519.84.5

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

A huge performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.91) to the normalized speed of EclipseLink with HSQLDB embedded database (20.0) reveals that in that case, EclipseLink with HSQLDB embedded is 22.0 times faster than DataNucleus with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
Basic Person Test24.41.736.07.630.24.6
Element Collection Test14.90.7319.10.6317.00.68
Inheritance Test22.81.540.09.331.45.4
Indexing Test20.71.538.79.229.75.3
Graph (Binary Tree) Test8.72.614.212.311.47.4
Multithreading Test24.23.428.010.826.17.1
All Tests19.31.929.38.324.35.1

The results above show that in general EclipseLink with HSQLDB embedded is much more efficient than DataNucleus with PostgreSQL server in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (5.1) to the normalized speed of EclipseLink with HSQLDB embedded database (24.3) reveals that in these tests, EclipseLink with HSQLDB embedded is 4.8 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.63) to the normalized speed of EclipseLink with HSQLDB embedded database (19.1) reveals that in that case, EclipseLink with HSQLDB embedded is 30.3 times faster than DataNucleus with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
Basic Person Test2.949.10.884.71.926.9
Element Collection Test3.239.11.40.482.319.8
Inheritance Test2.655.91.16.61.931.2
Indexing Test21.50.04833.36.427.43.2
Multithreading Test1.1failed0.52failed0.82failed
All Tests6.336.07.44.56.920.3

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

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

A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of EclipseLink with HSQLDB embedded database (2.6) to the normalized speed of DataNucleus with PostgreSQL database server (55.9) reveals that in that case, DataNucleus with PostgreSQL server is 21.5 times faster than EclipseLink with HSQLDB embedded.

On the other hand, DataNucleus with PostgreSQL server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.048) to the normalized speed of EclipseLink with HSQLDB embedded database (21.5) reveals that in that case, DataNucleus with PostgreSQL server is 448 times slower than EclipseLink with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
Basic Person Test17.92.17.00.8412.51.5
Element Collection Test14.61.48.30.6411.41.0
Inheritance Test16.22.19.71.213.01.7
Indexing Test12.02.26.81.59.41.8
Graph (Binary Tree) Test4.70.653.40.204.00.42
Multithreading Test24.40.464.4failed14.40.46
All Tests15.01.56.60.8710.81.2

DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).

The results above show that in general EclipseLink with HSQLDB embedded is much more efficient than DataNucleus with PostgreSQL server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (1.2) to the normalized speed of EclipseLink with HSQLDB embedded database (10.8) reveals that in these tests, EclipseLink with HSQLDB embedded is 9.0 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.46) to the normalized speed of EclipseLink with HSQLDB embedded database (24.4) reveals that in that case, EclipseLink with HSQLDB embedded is 53.0 times faster than DataNucleus with PostgreSQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
Basic Person Test32.33.020.31.326.32.2
Element Collection Test14.31.06.00.3910.20.69
Inheritance Test29.22.823.91.326.62.1
Indexing Test55.35.427.11.941.23.7
Graph (Binary Tree) Test6.80.3814.10.3710.40.37
Multithreading Test52.913.828.4failed40.613.8
All Tests31.84.420.01.125.92.9

DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).

The results above show that in general EclipseLink with HSQLDB embedded is much more efficient than DataNucleus with PostgreSQL server in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (2.9) to the normalized speed of EclipseLink with HSQLDB embedded database (25.9) reveals that in these tests, EclipseLink with HSQLDB embedded is 8.9 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.37) to the normalized speed of EclipseLink with HSQLDB embedded database (14.1) reveals that in that case, EclipseLink with HSQLDB embedded is 38.1 times faster than DataNucleus with PostgreSQL server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
Basic Person Test20.912.016.33.418.67.7
Element Collection Test12.88.68.60.5010.74.6
Inheritance Test19.513.217.34.218.48.7
Indexing Test28.03.024.95.126.54.0
Graph (Binary Tree) Test10.01.111.93.411.02.3
Multithreading Test27.08.914.69.520.89.1
All Tests20.18.015.73.817.96.0

The results above show that in general EclipseLink with HSQLDB embedded is more efficient than DataNucleus with PostgreSQL server in performing JPA database operations. Comparing the normalized speed of DataNucleus with PostgreSQL database server (6.0) to the normalized speed of EclipseLink with HSQLDB embedded database (17.9) reveals that in these tests, EclipseLink with HSQLDB embedded is 3.0 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.50) to the normalized speed of EclipseLink with HSQLDB embedded database (8.6) reveals that in that case, EclipseLink with HSQLDB embedded is 17.2 times faster than DataNucleus with PostgreSQL server.

Other Head to Head DBMS/JPA Comparisons