Compare with

Comparison of DataNucleus with Derby 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
 DataNucleus
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
Basic Person Test4.62.62.81.43.72.0
Element Collection Test2.41.01.60.482.00.76
Inheritance Test4.62.52.71.33.71.9
Indexing Test7.64.04.82.56.23.3
Graph (Binary Tree) Test1.61.11.40.991.51.1
Multithreading Test8.66.23.32.55.94.4
All Tests4.92.92.81.53.82.2

The results above show that in general DataNucleus 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 DataNucleus with Derby embedded database (1.6) reveals that in that case, DataNucleus with Derby embedded is 3.3 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
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
Basic Person Test6.80.9614.99.310.95.1
Element Collection Test5.40.187.60.776.50.47
Inheritance Test8.80.5514.88.511.84.5
Indexing Test9.20.8214.19.711.65.3
Graph (Binary Tree) Test9.92.115.83.512.92.8
Multithreading Test11.90.2711.57.811.74.0
All Tests8.70.8113.16.610.93.7

The results above show that in general DataNucleus with Derby embedded is 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 DataNucleus with Derby embedded database (10.9) reveals that in these tests, DataNucleus with Derby embedded is 2.9 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 DataNucleus with Derby embedded database (11.9) reveals that in that case, DataNucleus with Derby embedded is 44.1 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
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
Basic Person Test39.17.27.52.223.34.7
Element Collection Test46.05.86.70.2726.33.1
Inheritance Test7.72.93.81.75.72.3
Indexing Test0.0530.00848.02.54.01.2
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests23.24.06.51.714.82.8

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

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

A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (0.27) to the normalized speed of DataNucleus with Derby embedded database (6.7) reveals that in that case, DataNucleus with Derby embedded is 24.8 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
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
Basic Person Test4.00.613.81.13.90.88
Element Collection Test3.70.314.50.444.10.38
Inheritance Test4.40.514.81.84.61.1
Indexing Test5.20.684.22.24.71.5
Graph (Binary Tree) Test2.70.911.50.472.10.69
Multithreading Testfailed0.64failedfailedfailed0.64
All Tests4.00.613.71.23.90.88

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

The results above show that in general DataNucleus 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 DataNucleus with Derby embedded database (3.9) reveals that in these tests, DataNucleus with Derby embedded is 4.4 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 DataNucleus with Derby embedded database (3.7) reveals that in that case, DataNucleus with Derby embedded is 11.9 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
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
Basic Person Test3.50.701.31.32.41.0
Element Collection Test1.90.171.60.401.70.29
Inheritance Test2.40.411.31.31.90.87
Indexing Test6.61.71.91.94.31.8
Graph (Binary Tree) Test0.810.490.930.460.870.47
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests3.00.691.41.12.20.89

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

The results above show that in general DataNucleus with Derby embedded is 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 DataNucleus with Derby embedded database (2.2) reveals that in these tests, DataNucleus with Derby embedded is 2.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 (0.17) to the normalized speed of DataNucleus with Derby embedded database (1.9) reveals that in that case, DataNucleus with Derby embedded is 11.2 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
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
DataNucleus
Derby embedded
DataNucleus
MySQL server
Basic Person Test11.62.46.13.18.82.7
Element Collection Test11.91.54.40.478.10.99
Inheritance Test5.61.45.52.95.52.1
Indexing Test5.71.46.63.86.22.6
Graph (Binary Tree) Test3.71.24.91.44.31.3
Multithreading Test10.32.47.45.18.83.5
All Tests8.01.75.72.66.92.1

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

A large 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 DataNucleus with Derby embedded database (4.4) reveals that in that case, DataNucleus with Derby embedded is 9.4 times faster than DataNucleus with MySQL server.

Other Head to Head DBMS/JPA Comparisons