Compare with

Comparison of EclipseLink with HSQLDB embedded vs DataNucleus with MySQL server

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
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
Basic Person Test27.12.617.21.422.22.0
Element Collection Test17.21.08.20.4812.70.76
Inheritance Test26.72.511.91.319.31.9
Indexing Test30.64.018.62.524.63.3
Graph (Binary Tree) Test20.01.115.90.9918.01.1
Multithreading Test32.56.211.42.522.04.4
All Tests25.72.913.91.519.82.2

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
 EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
Basic Person Test24.40.9636.09.330.25.1
Element Collection Test14.90.1819.10.7717.00.47
Inheritance Test22.80.5540.08.531.44.5
Indexing Test20.70.8238.79.729.75.3
Graph (Binary Tree) Test8.72.114.23.511.42.8
Multithreading Test24.20.2728.07.826.14.0
All Tests19.30.8129.36.624.33.7

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
 EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
Basic Person Test2.97.20.882.21.94.7
Element Collection Test3.25.81.40.272.33.1
Inheritance Test2.62.91.11.71.92.3
Indexing Test21.50.008433.32.527.41.2
Multithreading Test1.1failed0.52failed0.82failed
All Tests6.34.07.41.76.92.8

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
 EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
Basic Person Test17.90.617.01.112.50.88
Element Collection Test14.60.318.30.4411.40.38
Inheritance Test16.20.519.71.813.01.1
Indexing Test12.00.686.82.29.41.5
Graph (Binary Tree) Test4.70.913.40.474.00.69
Multithreading Test24.40.644.4failed14.40.64
All Tests15.00.616.61.210.80.88

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
 EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
Basic Person Test32.30.7020.31.326.31.0
Element Collection Test14.30.176.00.4010.20.29
Inheritance Test29.20.4123.91.326.60.87
Indexing Test55.31.727.11.941.21.8
Graph (Binary Tree) Test6.80.4914.10.4610.40.47
Multithreading Test52.9failed28.4failed40.6failed
All Tests31.80.6920.01.125.90.89

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
 EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
EclipseLink
HSQLDB embedded
DataNucleus
MySQL server
Basic Person Test20.92.416.33.118.62.7
Element Collection Test12.81.58.60.4710.70.99
Inheritance Test19.51.417.32.918.42.1
Indexing Test28.01.424.93.826.52.6
Graph (Binary Tree) Test10.01.211.91.411.01.3
Multithreading Test27.02.414.65.120.83.5
All Tests20.11.715.72.617.92.1

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