Compare with

Comparison of DataNucleus with MySQL server vs EclipseLink with Derby 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
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
Basic Person Test2.65.51.43.72.04.6
Element Collection Test1.03.00.481.70.762.4
Inheritance Test2.55.31.33.51.94.4
Indexing Test4.06.92.54.63.35.8
Graph (Binary Tree) Test1.12.00.991.91.11.9
Multithreading Test6.29.32.54.14.46.7
All Tests2.95.31.53.22.24.3

The results above show that in general EclipseLink with Derby embedded is more efficient than DataNucleus with MySQL server in persisting JPA entity objects to the database.

A large performance gap has been detected when using JPA element collections with large transaction size. Comparing the normalized speed of DataNucleus with MySQL database server (0.48) to the normalized speed of EclipseLink with Derby embedded database (1.7) reveals that in that case, EclipseLink with Derby embedded is 3.5 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
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
Basic Person Test0.9616.49.358.75.137.5
Element Collection Test0.187.50.7713.30.4710.4
Inheritance Test0.5517.18.558.94.538.0
Indexing Test0.8214.29.767.45.340.8
Graph (Binary Tree) Test2.12.83.55.72.84.2
Multithreading Test0.2728.07.848.74.038.4
All Tests0.8114.36.642.13.728.2

The results above show that in general EclipseLink with Derby 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 Derby embedded database (28.2) reveals that in these tests, EclipseLink with Derby embedded is 7.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 Derby embedded database (28.0) reveals that in that case, EclipseLink with Derby embedded is 104 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
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
Basic Person Test7.253.42.213.84.733.6
Element Collection Test5.837.90.274.43.121.2
Inheritance Test2.937.41.715.02.326.2
Indexing Test0.00847.62.549.31.228.4
Multithreading Testfailed41.2failed6.1failed23.6
All Tests4.035.51.717.72.826.6

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

The results above show that in general EclipseLink with Derby embedded is much 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 Derby embedded database (26.6) reveals that in these tests, EclipseLink with Derby embedded is 9.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 Derby embedded database (7.6) reveals that in that case, EclipseLink with Derby embedded is 905 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
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
Basic Person Test0.616.41.16.70.886.5
Element Collection Test0.315.40.446.20.385.8
Inheritance Test0.516.51.89.21.17.8
Indexing Test0.687.32.211.11.59.2
Graph (Binary Tree) Test0.912.80.471.70.692.2
Multithreading Test0.6421.3failed5.00.6413.1
All Tests0.618.31.26.60.887.5

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

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

A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of DataNucleus with MySQL database server (0.64) to the normalized speed of EclipseLink with Derby embedded database (21.3) reveals that in that case, EclipseLink with Derby embedded is 33.3 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
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
Basic Person Test0.704.61.34.71.04.6
Element Collection Test0.172.50.401.40.291.9
Inheritance Test0.413.91.34.50.874.2
Indexing Test1.76.21.93.81.85.0
Graph (Binary Tree) Test0.491.10.461.00.471.1
Multithreading Testfailed6.2failed5.8failed6.0
All Tests0.694.11.13.50.893.8

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

The results above show that in general EclipseLink with Derby 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 Derby embedded database (3.8) reveals that in these tests, EclipseLink with Derby embedded is 4.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.17) to the normalized speed of EclipseLink with Derby embedded database (2.5) reveals that in that case, EclipseLink with Derby embedded is 14.7 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
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
DataNucleus
MySQL server
EclipseLink
Derby embedded
Basic Person Test2.417.33.117.52.717.4
Element Collection Test1.511.30.475.40.998.3
Inheritance Test1.414.02.918.22.116.1
Indexing Test1.48.43.827.22.617.8
Graph (Binary Tree) Test1.22.21.42.61.32.4
Multithreading Test2.421.25.113.93.517.6
All Tests1.712.72.614.52.113.6

The results above show that in general EclipseLink with Derby 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 Derby embedded database (13.6) reveals that in these tests, EclipseLink with Derby embedded is 6.5 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 Derby embedded database (5.4) reveals that in that case, EclipseLink with Derby embedded is 11.5 times faster than DataNucleus with MySQL server.

Other Head to Head DBMS/JPA Comparisons