Compare with

Comparison of EclipseLink with MySQL server vs DataNucleus 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
 EclipseLink
MySQL server
DataNucleus
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
Basic Person Test3.64.61.52.82.63.7
Element Collection Test1.52.40.691.61.12.0
Inheritance Test3.54.61.42.72.43.7
Indexing Test5.37.62.54.83.96.2
Graph (Binary Tree) Test1.71.61.31.41.51.5
Multithreading Test7.28.62.43.34.85.9
All Tests3.84.91.62.82.73.8

The results above show that in general DataNucleus with Derby embedded is more efficient than EclipseLink 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 EclipseLink with MySQL database server (0.69) to the normalized speed of DataNucleus with Derby embedded database (1.6) reveals that in that case, DataNucleus with Derby embedded is 2.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
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
Basic Person Test0.436.815.514.98.010.9
Element Collection Test0.165.41.47.60.786.5
Inheritance Test0.398.817.614.89.011.8
Indexing Test0.439.216.614.18.511.6
Graph (Binary Tree) Test0.539.90.7615.80.6512.9
Multithreading Test0.1911.911.011.55.611.7
All Tests0.358.710.513.15.410.9

The results above show that in general DataNucleus with Derby embedded is more efficient than EclipseLink with MySQL server in retrieving JPA entity objects from the database. Comparing the normalized speed of EclipseLink with MySQL database server (5.4) to the normalized speed of DataNucleus with Derby embedded database (10.9) reveals that in these tests, DataNucleus with Derby embedded is 2.0 times faster than EclipseLink with MySQL server.

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 Derby embedded database (11.9) reveals that in that case, DataNucleus with Derby embedded is 62.6 times faster 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
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
Basic Person Test1.539.10.447.50.9523.3
Element Collection Test1.446.00.436.70.9226.3
Inheritance Test1.17.70.613.80.865.7
Indexing Test0.260.0530.528.00.394.0
Multithreading Test1.9failed0.72failed1.3failed
All Tests1.223.20.546.50.8814.8

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

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

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of EclipseLink with MySQL database server (1.4) to the normalized speed of DataNucleus with Derby embedded database (46.0) reveals that in that case, DataNucleus with Derby embedded is 32.9 times faster than EclipseLink with MySQL server.

On the other hand, DataNucleus with Derby embedded is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with Derby embedded database (0.053) to the normalized speed of EclipseLink with MySQL database server (0.26) reveals that in that case, DataNucleus with Derby embedded is 4.9 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
 EclipseLink
MySQL server
DataNucleus
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
Basic Person Test0.394.01.83.81.13.9
Element Collection Test0.233.71.44.50.834.1
Inheritance Test0.424.42.64.81.54.6
Indexing Test0.465.23.14.21.84.7
Graph (Binary Tree) Test0.672.70.411.50.542.1
Multithreading Test0.48failed2.6failed1.5failed
All Tests0.444.02.03.71.23.9

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

The results above show that in general DataNucleus with Derby 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 Derby embedded database (3.9) reveals that in these tests, DataNucleus with Derby embedded is 3.2 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 Derby embedded database (3.7) reveals that in that case, DataNucleus with Derby embedded is 16.1 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
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
Basic Person Test0.353.51.71.31.02.4
Element Collection Test0.111.90.511.60.311.7
Inheritance Test0.292.41.61.30.941.9
Indexing Test0.466.61.91.91.24.3
Graph (Binary Tree) Test0.540.810.490.930.510.87
Multithreading Test0.31failed3.6failed1.9failed
All Tests0.343.01.61.40.982.2

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

The results above show that in general DataNucleus with Derby embedded is 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 Derby embedded database (2.2) reveals that in these tests, DataNucleus with Derby embedded is 2.2 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.11) to the normalized speed of DataNucleus with Derby embedded database (1.9) reveals that in that case, DataNucleus with Derby embedded is 17.3 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
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
EclipseLink
MySQL server
DataNucleus
Derby embedded
Basic Person Test1.311.64.26.12.78.8
Element Collection Test0.6911.90.894.40.798.1
Inheritance Test1.15.64.85.52.95.5
Indexing Test1.45.74.96.63.26.2
Graph (Binary Tree) Test0.853.70.734.90.794.3
Multithreading Test2.010.34.07.43.08.8
All Tests1.28.03.35.72.36.9

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

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

Other Head to Head DBMS/JPA Comparisons