Compare with

Comparison of EclipseLink with MySQL server 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
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
Basic Person Test3.614.21.54.82.69.5
Element Collection Test1.56.60.692.11.14.3
Inheritance Test3.513.61.44.62.49.1
Indexing Test5.324.62.511.13.917.8
Graph (Binary Tree) Test1.76.81.34.51.55.7
Multithreading Test7.238.52.48.54.823.5
All Tests3.817.41.65.92.711.7

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
Basic Person Test0.436.615.510.28.08.4
Element Collection Test0.163.61.48.10.785.8
Inheritance Test0.395.717.68.89.07.2
Indexing Test0.435.116.69.58.57.3
Graph (Binary Tree) Test0.537.20.769.30.658.3
Multithreading Test0.198.111.09.55.68.8
All Tests0.356.010.59.25.47.6

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

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

On the other hand, DataNucleus with HSQLDB embedded is slower, for instance, when using class inheritance in the object model with large retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (8.8) to the normalized speed of EclipseLink with MySQL database server (17.6) reveals that in that case, DataNucleus with HSQLDB embedded is 2.0 times slower than EclipseLink with MySQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
Basic Person Test1.51.40.440.480.950.95
Element Collection Test1.41.30.430.670.921.0
Inheritance Test1.11.60.610.610.861.1
Indexing Test0.260.00160.520.630.390.32
Multithreading Test1.90.400.72failed1.30.40
All Tests1.20.960.540.600.880.80

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

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

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 MySQL database server (0.26) reveals that in that case, EclipseLink with MySQL server is 162 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
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
Basic Person Test0.3911.51.82.71.17.1
Element Collection Test0.236.91.42.70.834.8
Inheritance Test0.4210.32.63.61.56.9
Indexing Test0.4611.43.14.41.87.9
Graph (Binary Tree) Test0.673.50.411.50.542.5
Multithreading Test0.48failed2.6failed1.5failed
All Tests0.448.72.03.01.25.8

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

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
Basic Person Test0.354.21.71.31.02.8
Element Collection Test0.114.90.511.60.313.2
Inheritance Test0.294.01.61.30.942.7
Indexing Test0.467.51.91.91.24.7
Graph (Binary Tree) Test0.542.90.492.00.512.5
Multithreading Test0.3140.13.613.71.926.9
All Tests0.3410.61.63.70.987.1

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
EclipseLink
MySQL server
DataNucleus
HSQLDB embedded
Basic Person Test1.37.64.23.92.75.7
Element Collection Test0.694.70.893.00.793.8
Inheritance Test1.17.14.83.82.95.4
Indexing Test1.49.74.95.53.27.6
Graph (Binary Tree) Test0.855.10.734.30.794.7
Multithreading Test2.021.84.010.63.017.0
All Tests1.29.03.34.82.37.0

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

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

Other Head to Head DBMS/JPA Comparisons