Compare with

Comparison of DataNucleus with Derby 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
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
Basic Person Test2.827.12.317.22.622.2
Element Collection Test0.7117.20.358.20.5312.7
Inheritance Test2.726.72.011.92.319.3
Indexing Test4.530.64.018.64.324.6
Graph (Binary Tree) Test0.6220.00.5315.90.5718.0
Multithreading Test4.932.53.411.44.122.0
All Tests2.725.72.113.92.419.8

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
Basic Person Test0.5624.46.336.03.430.2
Element Collection Test0.3614.90.9319.10.6417.0
Inheritance Test0.4522.86.840.03.631.4
Indexing Test0.5020.77.138.73.829.7
Graph (Binary Tree) Test0.228.76.614.23.411.4
Multithreading Test1.224.210.028.05.626.1
All Tests0.5519.36.329.33.424.3

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
Basic Person Test37.72.93.60.8820.71.9
Element Collection Test25.93.21.41.413.62.3
Inheritance Test6.52.61.81.14.21.9
Indexing Test0.03021.54.933.32.527.4
Multithreading Testfailed1.1failed0.52failed0.82
All Tests17.56.32.97.410.26.9

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

The results above show that in general DataNucleus with Derby server is more efficient than EclipseLink with HSQLDB embedded in executing the tested JPA queries.

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

On the other hand, DataNucleus with Derby server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.030) to the normalized speed of EclipseLink with HSQLDB embedded database (21.5) reveals that in that case, DataNucleus with Derby server is 717 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
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
Basic Person Test1.117.90.857.00.9912.5
Element Collection Test0.8114.60.628.30.7111.4
Inheritance Test1.216.21.39.71.213.0
Indexing Test1.212.01.56.81.39.4
Graph (Binary Tree) Test0.294.70.413.40.354.0
Multithreading Testfailed24.4failed4.4failed14.4
All Tests0.9315.00.926.60.9210.8

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

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

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.81) to the normalized speed of EclipseLink with HSQLDB embedded database (14.6) reveals that in that case, EclipseLink with HSQLDB embedded is 18.0 times faster than DataNucleus with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
Basic Person Test1.332.31.320.31.326.3
Element Collection Test0.6114.30.336.00.4710.2
Inheritance Test1.029.21.323.91.226.6
Indexing Test2.355.31.927.12.141.2
Graph (Binary Tree) Test0.266.80.4614.10.3610.4
Multithreading Testfailed52.9failed28.4failed40.6
All Tests1.131.81.120.01.125.9

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

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
DataNucleus
Derby server
EclipseLink
HSQLDB embedded
Basic Person Test8.720.92.916.35.818.6
Element Collection Test5.712.80.728.63.210.7
Inheritance Test2.419.52.617.32.518.4
Indexing Test1.728.03.924.92.826.5
Graph (Binary Tree) Test0.3510.02.011.91.211.0
Multithreading Test3.027.06.714.64.920.8
All Tests3.820.12.815.73.317.9

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

A huge performance gap has been detected when using graphs of objects with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.35) to the normalized speed of EclipseLink with HSQLDB embedded database (10.0) reveals that in that case, EclipseLink with HSQLDB embedded is 28.6 times faster than DataNucleus with Derby server.

Other Head to Head DBMS/JPA Comparisons