Compare with

Comparison of DataNucleus with MySQL server vs EclipseLink with H2 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
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
Basic Person Test2.625.11.48.92.017.0
Element Collection Test1.020.40.488.00.7614.2
Inheritance Test2.528.71.38.71.918.7
Indexing Test4.037.62.514.03.325.8
Graph (Binary Tree) Test1.117.70.9914.71.116.2
Multithreading Test6.230.32.511.44.420.8
All Tests2.926.61.510.92.218.8

The results above show that in general EclipseLink with H2 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 H2 embedded database (18.8) reveals that in these tests, EclipseLink with H2 embedded is 8.5 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 (1.0) to the normalized speed of EclipseLink with H2 embedded database (20.4) reveals that in that case, EclipseLink with H2 embedded is 20.4 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
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
Basic Person Test0.9630.49.329.15.129.7
Element Collection Test0.1819.60.7727.60.4723.6
Inheritance Test0.5533.88.539.84.536.8
Indexing Test0.8222.29.741.35.331.8
Graph (Binary Tree) Test2.116.03.520.02.818.0
Multithreading Test0.2733.77.829.04.031.4
All Tests0.8125.96.631.13.728.5

The results above show that in general EclipseLink with H2 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 H2 embedded database (28.5) reveals that in these tests, EclipseLink with H2 embedded is 7.7 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 H2 embedded database (33.7) reveals that in that case, EclipseLink with H2 embedded is 125 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
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
Basic Person Test7.24.42.21.44.72.9
Element Collection Test5.84.10.272.43.13.2
Inheritance Test2.93.41.72.02.32.7
Indexing Test0.008413.02.522.81.217.9
Multithreading Testfailed1.0failed0.67failed0.85
All Tests4.05.21.75.92.85.5

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

The results above show that in general EclipseLink with H2 embedded is more efficient than DataNucleus with MySQL server 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 MySQL database server (0.0084) to the normalized speed of EclipseLink with H2 embedded database (13.0) reveals that in that case, EclipseLink with H2 embedded is 1,548 times faster 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
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
Basic Person Test0.6116.61.17.60.8812.1
Element Collection Test0.3115.30.4410.50.3812.9
Inheritance Test0.5115.71.89.81.112.7
Indexing Test0.6812.12.29.91.511.0
Graph (Binary Tree) Test0.9113.70.477.00.6910.3
Multithreading Test0.6420.9failed4.20.6412.6
All Tests0.6115.71.28.20.8812.0

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

The results above show that in general EclipseLink with H2 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 H2 embedded database (12.0) reveals that in these tests, EclipseLink with H2 embedded is 13.6 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 H2 embedded database (15.3) reveals that in that case, EclipseLink with H2 embedded is 49.4 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
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
Basic Person Test0.7035.11.319.61.027.4
Element Collection Test0.1719.30.408.50.2913.9
Inheritance Test0.4136.01.314.00.8725.0
Indexing Test1.742.51.919.21.830.9
Graph (Binary Tree) Test0.4912.20.4614.40.4713.3
Multithreading Testfailed54.4failed25.8failed40.1
All Tests0.6933.31.116.90.8925.1

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

The results above show that in general EclipseLink with H2 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 H2 embedded database (25.1) reveals that in these tests, EclipseLink with H2 embedded is 28.2 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 H2 embedded database (19.3) reveals that in that case, EclipseLink with H2 embedded is 114 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
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
DataNucleus
MySQL server
EclipseLink
H2 embedded
Basic Person Test2.422.33.113.32.717.8
Element Collection Test1.515.70.4711.40.9913.6
Inheritance Test1.423.52.914.92.119.2
Indexing Test1.425.53.821.52.623.5
Graph (Binary Tree) Test1.214.91.414.01.314.5
Multithreading Test2.428.15.114.23.521.1
All Tests1.721.92.614.92.118.4

The results above show that in general EclipseLink with H2 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 H2 embedded database (18.4) reveals that in these tests, EclipseLink with H2 embedded is 8.8 times faster than DataNucleus with MySQL server.

A huge performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (0.47) to the normalized speed of EclipseLink with H2 embedded database (11.4) reveals that in that case, EclipseLink with H2 embedded is 24.3 times faster than DataNucleus with MySQL server.

Other Head to Head DBMS/JPA Comparisons