Compare with

Comparison of DataNucleus with MySQL 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
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
Basic Person Test2.627.11.417.22.022.2
Element Collection Test1.017.20.488.20.7612.7
Inheritance Test2.526.71.311.91.919.3
Indexing Test4.030.62.518.63.324.6
Graph (Binary Tree) Test1.120.00.9915.91.118.0
Multithreading Test6.232.52.511.44.422.0
All Tests2.925.71.513.92.219.8

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
Basic Person Test0.9624.49.336.05.130.2
Element Collection Test0.1814.90.7719.10.4717.0
Inheritance Test0.5522.88.540.04.531.4
Indexing Test0.8220.79.738.75.329.7
Graph (Binary Tree) Test2.18.73.514.22.811.4
Multithreading Test0.2724.27.828.04.026.1
All Tests0.8119.36.629.33.724.3

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

A huge performance gap has been detected when using multithreading with small retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (0.27) to the normalized speed of EclipseLink with HSQLDB embedded database (24.2) reveals that in that case, EclipseLink with HSQLDB embedded is 89.6 times faster than DataNucleus with MySQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
Basic Person Test7.22.92.20.884.71.9
Element Collection Test5.83.20.271.43.12.3
Inheritance Test2.92.61.71.12.31.9
Indexing Test0.008421.52.533.31.227.4
Multithreading Testfailed1.1failed0.52failed0.82
All Tests4.06.31.77.42.86.9

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

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

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (0.0084) to the normalized speed of EclipseLink with HSQLDB embedded database (21.5) reveals that in that case, EclipseLink with HSQLDB embedded is 2,560 times faster than DataNucleus with MySQL server.

On the other hand, EclipseLink with HSQLDB embedded is slower, for instance, when using simple basic entities with large retrieval size. Comparing the normalized speed of EclipseLink with HSQLDB embedded database (0.88) to the normalized speed of DataNucleus with MySQL database server (2.2) reveals that in that case, EclipseLink with HSQLDB embedded is 2.5 times slower than DataNucleus with MySQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
Basic Person Test0.6117.91.17.00.8812.5
Element Collection Test0.3114.60.448.30.3811.4
Inheritance Test0.5116.21.89.71.113.0
Indexing Test0.6812.02.26.81.59.4
Graph (Binary Tree) Test0.914.70.473.40.694.0
Multithreading Test0.6424.4failed4.40.6414.4
All Tests0.6115.01.26.60.8810.8

DataNucleus with MySQL 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 MySQL server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with MySQL database server (0.88) to the normalized speed of EclipseLink with HSQLDB embedded database (10.8) reveals that in these tests, EclipseLink with HSQLDB embedded is 12.3 times faster than DataNucleus with MySQL server.

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
Basic Person Test0.7032.31.320.31.026.3
Element Collection Test0.1714.30.406.00.2910.2
Inheritance Test0.4129.21.323.90.8726.6
Indexing Test1.755.31.927.11.841.2
Graph (Binary Tree) Test0.496.80.4614.10.4710.4
Multithreading Testfailed52.9failed28.4failed40.6
All Tests0.6931.81.120.00.8925.9

DataNucleus with MySQL 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 MySQL server in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with MySQL database server (0.89) to the normalized speed of EclipseLink with HSQLDB embedded database (25.9) reveals that in these tests, EclipseLink with HSQLDB embedded is 29.1 times faster than DataNucleus with MySQL server.

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
Basic Person Test2.420.93.116.32.718.6
Element Collection Test1.512.80.478.60.9910.7
Inheritance Test1.419.52.917.32.118.4
Indexing Test1.428.03.824.92.626.5
Graph (Binary Tree) Test1.210.01.411.91.311.0
Multithreading Test2.427.05.114.63.520.8
All Tests1.720.12.615.72.117.9

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

A huge performance gap has been detected when using database indexes with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (1.4) to the normalized speed of EclipseLink with HSQLDB embedded database (28.0) reveals that in that case, EclipseLink with HSQLDB embedded is 20.0 times faster than DataNucleus with MySQL server.

Other Head to Head DBMS/JPA Comparisons