Compare with

Comparison of EclipseLink with Derby embedded 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
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
Basic Person Test5.514.23.74.84.69.5
Element Collection Test3.06.61.72.12.44.3
Inheritance Test5.313.63.54.64.49.1
Indexing Test6.924.64.611.15.817.8
Graph (Binary Tree) Test2.06.81.94.51.95.7
Multithreading Test9.338.54.18.56.723.5
All Tests5.317.43.25.94.311.7

The results above show that in general DataNucleus with HSQLDB embedded is more efficient than EclipseLink with Derby embedded in persisting JPA entity objects to the database. Comparing the normalized speed of EclipseLink with Derby embedded database (4.3) to the normalized speed of DataNucleus with HSQLDB embedded database (11.7) reveals that in these tests, DataNucleus with HSQLDB embedded is 2.7 times faster than EclipseLink with Derby embedded.

A large performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with Derby embedded database (9.3) to the normalized speed of DataNucleus with HSQLDB embedded database (38.5) reveals that in that case, DataNucleus with HSQLDB embedded is 4.1 times faster than EclipseLink with Derby embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
Basic Person Test16.46.658.710.237.58.4
Element Collection Test7.53.613.38.110.45.8
Inheritance Test17.15.758.98.838.07.2
Indexing Test14.25.167.49.540.87.3
Graph (Binary Tree) Test2.87.25.79.34.28.3
Multithreading Test28.08.148.79.538.48.8
All Tests14.36.042.19.228.27.6

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

A large performance gap has been detected when using database indexes with large retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (9.5) to the normalized speed of EclipseLink with Derby embedded database (67.4) reveals that in that case, EclipseLink with Derby embedded is 7.1 times faster than DataNucleus with HSQLDB embedded.

On the other hand, EclipseLink with Derby embedded is slower, for instance, when using graphs of objects with small retrieval size. Comparing the normalized speed of EclipseLink with Derby embedded database (2.8) to the normalized speed of DataNucleus with HSQLDB embedded database (7.2) reveals that in that case, EclipseLink with Derby embedded is 2.6 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
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
Basic Person Test53.41.413.80.4833.60.95
Element Collection Test37.91.34.40.6721.21.0
Inheritance Test37.41.615.00.6126.21.1
Indexing Test7.60.001649.30.6328.40.32
Multithreading Test41.20.406.1failed23.60.40
All Tests35.50.9617.70.6026.60.80

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

The results above show that in general EclipseLink with Derby embedded 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 Derby embedded database (26.6) reveals that in these tests, EclipseLink with Derby embedded is 33.2 times faster than DataNucleus with HSQLDB embedded.

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (0.0016) to the normalized speed of EclipseLink with Derby embedded database (7.6) reveals that in that case, EclipseLink with Derby embedded is 4,750 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
 EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
Basic Person Test6.411.56.72.76.57.1
Element Collection Test5.46.96.22.75.84.8
Inheritance Test6.510.39.23.67.86.9
Indexing Test7.311.411.14.49.27.9
Graph (Binary Tree) Test2.83.51.71.52.22.5
Multithreading Test21.3failed5.0failed13.1failed
All Tests8.38.76.63.07.55.8

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

The results above show that in general EclipseLink with Derby embedded is slightly more efficient than DataNucleus with HSQLDB embedded in updating JPA entity objects in the database.

A large performance gap has been detected when using class inheritance in the object model with large transaction size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (3.6) to the normalized speed of EclipseLink with Derby embedded database (9.2) reveals that in that case, EclipseLink with Derby embedded is 2.6 times faster than DataNucleus with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
Basic Person Test4.64.24.71.34.62.8
Element Collection Test2.54.91.41.61.93.2
Inheritance Test3.94.04.51.34.22.7
Indexing Test6.27.53.81.95.04.7
Graph (Binary Tree) Test1.12.91.02.01.12.5
Multithreading Test6.240.15.813.76.026.9
All Tests4.110.63.53.73.87.1

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

A large performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with Derby embedded database (6.2) to the normalized speed of DataNucleus with HSQLDB embedded database (40.1) reveals that in that case, DataNucleus with HSQLDB embedded is 6.5 times faster than EclipseLink with Derby embedded.

On the other hand, DataNucleus with HSQLDB embedded is slower, for instance, when using simple basic entities with large transaction size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (1.3) to the normalized speed of EclipseLink with Derby embedded database (4.7) reveals that in that case, DataNucleus with HSQLDB embedded is 3.6 times slower than EclipseLink with Derby embedded.

Comparison of database storage efficiency (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
Basic Person Test51.141.451.041.451.141.4
Element Collection Test38.523.439.423.438.923.4
Inheritance Test48.041.447.941.448.041.4
Indexing Test51.648.452.349.252.048.8
Graph (Binary Tree) Test13.412.511.79.412.610.9
Multithreading Test52.651.98.410.330.531.1
All Tests42.536.535.129.238.832.9

The results above show that in general EclipseLink with Derby embedded is slightly more efficient than DataNucleus with HSQLDB embedded in using disk space.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
EclipseLink
Derby embedded
DataNucleus
HSQLDB embedded
Basic Person Test17.37.617.53.917.45.7
Element Collection Test11.34.75.43.08.33.8
Inheritance Test14.07.118.23.816.15.4
Indexing Test8.49.727.25.517.87.6
Graph (Binary Tree) Test2.25.12.64.32.44.7
Multithreading Test21.221.813.910.617.617.0
All Tests12.79.014.54.813.67.0

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

A large performance gap has been detected when using database indexes with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (5.5) to the normalized speed of EclipseLink with Derby embedded database (27.2) reveals that in that case, EclipseLink with Derby embedded is 4.9 times faster than DataNucleus with HSQLDB embedded.

On the other hand, EclipseLink with Derby embedded is slower, for instance, when using graphs of objects with small transaction/retrieval size. Comparing the normalized speed of EclipseLink with Derby embedded database (2.2) to the normalized speed of DataNucleus with HSQLDB embedded database (5.1) reveals that in that case, EclipseLink with Derby embedded is 2.3 times slower than DataNucleus with HSQLDB embedded.

Other Head to Head DBMS/JPA Comparisons