Compare with

Comparison of DataNucleus with PostgreSQL server vs EclipseLink 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
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
Basic Person Test4.127.12.617.23.322.2
Element Collection Test0.9117.20.388.20.6412.7
Inheritance Test3.826.72.411.93.119.3
Indexing Test6.030.66.418.66.224.6
Graph (Binary Tree) Test0.9120.00.7715.90.8418.0
Multithreading Test18.032.58.311.413.122.0
All Tests5.625.73.513.94.519.8

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
 DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
Basic Person Test1.724.47.636.04.630.2
Element Collection Test0.7314.90.6319.10.6817.0
Inheritance Test1.522.89.340.05.431.4
Indexing Test1.520.79.238.75.329.7
Graph (Binary Tree) Test2.68.712.314.27.411.4
Multithreading Test3.424.210.828.07.126.1
All Tests1.919.38.329.35.124.3

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
 DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
Basic Person Test49.12.94.70.8826.91.9
Element Collection Test39.13.20.481.419.82.3
Inheritance Test55.92.66.61.131.21.9
Indexing Test0.04821.56.433.33.227.4
Multithreading Testfailed1.1failed0.52failed0.82
All Tests36.06.34.57.420.36.9

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
 DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
Basic Person Test2.117.90.847.01.512.5
Element Collection Test1.414.60.648.31.011.4
Inheritance Test2.116.21.29.71.713.0
Indexing Test2.212.01.56.81.89.4
Graph (Binary Tree) Test0.654.70.203.40.424.0
Multithreading Test0.4624.4failed4.40.4614.4
All Tests1.515.00.876.61.210.8

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
 DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
Basic Person Test3.032.31.320.32.226.3
Element Collection Test1.014.30.396.00.6910.2
Inheritance Test2.829.21.323.92.126.6
Indexing Test5.455.31.927.13.741.2
Graph (Binary Tree) Test0.386.80.3714.10.3710.4
Multithreading Test13.852.9failed28.413.840.6
All Tests4.431.81.120.02.925.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
 DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
DataNucleus
PostgreSQL server
EclipseLink
HSQLDB embedded
Basic Person Test12.020.93.416.37.718.6
Element Collection Test8.612.80.508.64.610.7
Inheritance Test13.219.54.217.38.718.4
Indexing Test3.028.05.124.94.026.5
Graph (Binary Tree) Test1.110.03.411.92.311.0
Multithreading Test8.927.09.514.69.120.8
All Tests8.020.13.815.76.017.9

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