Compare with

Comparison of DataNucleus with Derby server vs EclipseLink 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
 DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
Basic Person Test2.83.62.31.52.62.6
Element Collection Test0.711.50.350.690.531.1
Inheritance Test2.73.52.01.42.32.4
Indexing Test4.55.34.02.54.33.9
Graph (Binary Tree) Test0.621.70.531.30.571.5
Multithreading Test4.97.23.42.44.14.8
All Tests2.73.82.11.62.42.7

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

A large performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.62) to the normalized speed of EclipseLink with MySQL database server (1.7) reveals that in that case, EclipseLink with MySQL server is 2.7 times faster than DataNucleus with Derby server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
Basic Person Test0.560.436.315.53.48.0
Element Collection Test0.360.160.931.40.640.78
Inheritance Test0.450.396.817.63.69.0
Indexing Test0.500.437.116.63.88.5
Graph (Binary Tree) Test0.220.536.60.763.40.65
Multithreading Test1.20.1910.011.05.65.6
All Tests0.550.356.310.53.45.4

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

A large performance gap has been detected when using class inheritance in the object model with large retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (6.8) to the normalized speed of EclipseLink with MySQL database server (17.6) reveals that in that case, EclipseLink with MySQL server is 2.6 times faster than DataNucleus with Derby server.

On the other hand, EclipseLink with MySQL server is slower, for instance, when using graphs of objects with large retrieval size. Comparing the normalized speed of EclipseLink with MySQL database server (0.76) to the normalized speed of DataNucleus with Derby database server (6.6) reveals that in that case, EclipseLink with MySQL server is 8.7 times slower than DataNucleus with Derby server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
Basic Person Test37.71.53.60.4420.70.95
Element Collection Test25.91.41.40.4313.60.92
Inheritance Test6.51.11.80.614.20.86
Indexing Test0.0300.264.90.522.50.39
Multithreading Testfailed1.9failed0.72failed1.3
All Tests17.51.22.90.5410.20.88

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

The results above show that in general DataNucleus with Derby server is much more efficient than EclipseLink with MySQL server in executing the tested JPA queries. Comparing the normalized speed of EclipseLink with MySQL database server (0.88) to the normalized speed of DataNucleus with Derby database server (10.2) reveals that in these tests, DataNucleus with Derby server is 11.6 times faster than EclipseLink with MySQL server.

A huge performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of EclipseLink with MySQL database server (1.5) to the normalized speed of DataNucleus with Derby database server (37.7) reveals that in that case, DataNucleus with Derby server is 25.1 times faster than EclipseLink with MySQL server.

On the other hand, DataNucleus with Derby server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.030) to the normalized speed of EclipseLink with MySQL database server (0.26) reveals that in that case, DataNucleus with Derby server is 8.7 times slower than EclipseLink with MySQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
Basic Person Test1.10.390.851.80.991.1
Element Collection Test0.810.230.621.40.710.83
Inheritance Test1.20.421.32.61.21.5
Indexing Test1.20.461.53.11.31.8
Graph (Binary Tree) Test0.290.670.410.410.350.54
Multithreading Testfailed0.48failed2.6failed1.5
All Tests0.930.440.922.00.921.2

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

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

A large performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.29) to the normalized speed of EclipseLink with MySQL database server (0.67) reveals that in that case, EclipseLink with MySQL server is 2.3 times faster than DataNucleus with Derby server.

On the other hand, EclipseLink with MySQL server is slower, for instance, 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 Derby database server (0.81) reveals that in that case, EclipseLink with MySQL server is 3.5 times slower than DataNucleus with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
Basic Person Test1.30.351.31.71.31.0
Element Collection Test0.610.110.330.510.470.31
Inheritance Test1.00.291.31.61.20.94
Indexing Test2.30.461.91.92.11.2
Graph (Binary Tree) Test0.260.540.460.490.360.51
Multithreading Testfailed0.31failed3.6failed1.9
All Tests1.10.341.11.61.10.98

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

The results above show that in general DataNucleus with Derby server is slightly more efficient than EclipseLink with MySQL server in deleting JPA entity objects from the database.

A large 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.11) to the normalized speed of DataNucleus with Derby database server (0.61) reveals that in that case, DataNucleus with Derby server is 5.5 times faster than EclipseLink with MySQL server.

On the other hand, DataNucleus with Derby server is slower, for instance, when using graphs of objects with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.26) to the normalized speed of EclipseLink with MySQL database server (0.54) reveals that in that case, DataNucleus with Derby server is 2.1 times slower than EclipseLink with MySQL server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
DataNucleus
Derby server
EclipseLink
MySQL server
Basic Person Test8.71.32.94.25.82.7
Element Collection Test5.70.690.720.893.20.79
Inheritance Test2.41.12.64.82.52.9
Indexing Test1.71.43.94.92.83.2
Graph (Binary Tree) Test0.350.852.00.731.20.79
Multithreading Test3.02.06.74.04.93.0
All Tests3.81.22.83.33.32.3

The results above show that in general DataNucleus with Derby server is more efficient than EclipseLink with MySQL server in performing JPA database operations.

A large performance gap has been detected when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of EclipseLink with MySQL database server (0.69) to the normalized speed of DataNucleus with Derby database server (5.7) reveals that in that case, DataNucleus with Derby server is 8.3 times faster than EclipseLink with MySQL server.

On the other hand, DataNucleus with Derby server is slower, for instance, when using graphs of objects with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.35) to the normalized speed of EclipseLink with MySQL database server (0.85) reveals that in that case, DataNucleus with Derby server is 2.4 times slower than EclipseLink with MySQL server.

Other Head to Head DBMS/JPA Comparisons