Compare with

Comparison of DataNucleus 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
 DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test4.114.22.64.83.39.5
Element Collection Test0.916.60.382.10.644.3
Inheritance Test3.813.62.44.63.19.1
Indexing Test6.024.66.411.16.217.8
Graph (Binary Tree) Test0.916.80.774.50.845.7
Multithreading Test18.038.58.38.513.123.5
All Tests5.617.43.55.94.511.7

The results above show that in general DataNucleus with HSQLDB embedded is 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 DataNucleus with HSQLDB embedded database (11.7) reveals that in these tests, DataNucleus with HSQLDB embedded is 2.6 times faster than DataNucleus with PostgreSQL server.

A large 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 DataNucleus with HSQLDB embedded database (6.8) reveals that in that case, DataNucleus with HSQLDB embedded is 7.5 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
 DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test1.76.67.610.24.68.4
Element Collection Test0.733.60.638.10.685.8
Inheritance Test1.55.79.38.85.47.2
Indexing Test1.55.19.29.55.37.3
Graph (Binary Tree) Test2.67.212.39.37.48.3
Multithreading Test3.48.110.89.57.18.8
All Tests1.96.08.39.25.17.6

The results above show that in general DataNucleus with HSQLDB embedded is more efficient than DataNucleus 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 DataNucleus with PostgreSQL database server (0.63) to the normalized speed of DataNucleus with HSQLDB embedded database (8.1) reveals that in that case, DataNucleus with HSQLDB embedded is 12.9 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
 DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test49.11.44.70.4826.90.95
Element Collection Test39.11.30.480.6719.81.0
Inheritance Test55.91.66.60.6131.21.1
Indexing Test0.0480.00166.40.633.20.32
Multithreading Testfailed0.40failedfailedfailed0.40
All Tests36.00.964.50.6020.30.80

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

The results above show that in general DataNucleus 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 DataNucleus with PostgreSQL database server (20.3) reveals that in these tests, DataNucleus with PostgreSQL server is 25.4 times faster than DataNucleus with HSQLDB embedded.

A huge performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (1.4) to the normalized speed of DataNucleus with PostgreSQL database server (49.1) reveals that in that case, DataNucleus with PostgreSQL server is 35.1 times faster than DataNucleus with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test2.111.50.842.71.57.1
Element Collection Test1.46.90.642.71.04.8
Inheritance Test2.110.31.23.61.76.9
Indexing Test2.211.41.54.41.87.9
Graph (Binary Tree) Test0.653.50.201.50.422.5
Multithreading Test0.46failedfailedfailed0.46failed
All Tests1.58.70.873.01.25.8

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

The results above show that in general DataNucleus 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 DataNucleus with HSQLDB embedded database (5.8) reveals that in these tests, DataNucleus with HSQLDB embedded is 4.8 times faster than DataNucleus with PostgreSQL server.

A large 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.20) to the normalized speed of DataNucleus with HSQLDB embedded database (1.5) reveals that in that case, DataNucleus with HSQLDB embedded is 7.5 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
 DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test3.04.21.31.32.22.8
Element Collection Test1.04.90.391.60.693.2
Inheritance Test2.84.01.31.32.12.7
Indexing Test5.47.51.91.93.74.7
Graph (Binary Tree) Test0.382.90.372.00.372.5
Multithreading Test13.840.1failed13.713.826.9
All Tests4.410.61.13.72.97.1

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

The results above show that in general DataNucleus with HSQLDB embedded is 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 DataNucleus with HSQLDB embedded database (7.1) reveals that in these tests, DataNucleus with HSQLDB embedded is 2.4 times faster than DataNucleus with PostgreSQL server.

A large 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.38) to the normalized speed of DataNucleus with HSQLDB embedded database (2.9) reveals that in that case, DataNucleus with HSQLDB embedded is 7.6 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
 DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
DataNucleus
PostgreSQL server
DataNucleus
HSQLDB embedded
Basic Person Test12.07.63.43.97.75.7
Element Collection Test8.64.70.503.04.63.8
Inheritance Test13.27.14.23.88.75.4
Indexing Test3.09.75.15.54.07.6
Graph (Binary Tree) Test1.15.13.44.32.34.7
Multithreading Test8.921.89.510.69.117.0
All Tests8.09.03.84.86.07.0

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

A large 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 DataNucleus with HSQLDB embedded database (3.0) reveals that in that case, DataNucleus with HSQLDB embedded is 6.0 times faster than DataNucleus with PostgreSQL server.

Other Head to Head DBMS/JPA Comparisons