Compare with

Comparison of EclipseLink with MySQL server vs DataNucleus with DB4O 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
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
Basic Person Test3.60.0591.51.32.60.69
Element Collection Test1.50.0450.691.01.10.52
Inheritance Test3.50.0511.40.852.40.45
Indexing Test5.30.0802.52.33.91.2
Graph (Binary Tree) Test1.7failed1.3failed1.5failed
Multithreading Test7.2failed2.4failed4.8failed
All Tests3.80.0591.61.42.70.71

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

The results above show that in general EclipseLink with MySQL server is much more efficient than DataNucleus with DB4O embedded in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.71) to the normalized speed of EclipseLink with MySQL database server (2.7) reveals that in these tests, EclipseLink with MySQL server is 3.8 times faster than DataNucleus with DB4O embedded.

A huge performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.051) to the normalized speed of EclipseLink with MySQL database server (3.5) reveals that in that case, EclipseLink with MySQL server is 68.6 times faster than DataNucleus with DB4O embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
Basic Person Test0.430.004715.51.88.00.90
Element Collection Test0.160.00381.41.50.780.77
Inheritance Test0.390.003517.62.29.01.1
Indexing Test0.430.004316.61.88.50.89
Graph (Binary Tree) Test0.53failed0.76failed0.65failed
Multithreading Test0.19failed11.0failed5.6failed
All Tests0.350.004110.51.85.40.91

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

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

A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0035) to the normalized speed of EclipseLink with MySQL database server (0.39) reveals that in that case, EclipseLink with MySQL server is 111 times faster than DataNucleus with DB4O embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
Basic Person Test1.5failed0.44failed0.95failed
Element Collection Test1.4failed0.43failed0.92failed
Inheritance Test1.1failed0.61failed0.86failed
Indexing Test0.26failed0.52failed0.39failed
Multithreading Test1.9failed0.72failed1.3failed
All Tests1.2failed0.54failed0.88failed

DataNucleus with DB4O embedded has failed in 10 tests (see exceptions).

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
Basic Person Test0.390.0121.80.761.10.39
Element Collection Test0.230.0121.41.10.830.53
Inheritance Test0.420.0112.60.811.50.41
Indexing Test0.460.0113.11.31.80.64
Graph (Binary Tree) Test0.67failed0.41failed0.54failed
Multithreading Test0.48failed2.6failed1.5failed
All Tests0.440.0122.00.971.20.49

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

The results above show that in general EclipseLink with MySQL server is more efficient than DataNucleus with DB4O embedded in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.49) to the normalized speed of EclipseLink with MySQL database server (1.2) reveals that in these tests, EclipseLink with MySQL server is 2.4 times faster than DataNucleus with DB4O embedded.

A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.011) to the normalized speed of EclipseLink with MySQL database server (0.46) reveals that in that case, EclipseLink with MySQL server is 41.8 times faster than DataNucleus with DB4O embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
Basic Person Test0.350.0111.71.51.00.74
Element Collection Test0.110.0100.511.60.310.80
Inheritance Test0.290.00931.61.10.940.57
Indexing Test0.460.0171.92.11.21.1
Graph (Binary Tree) Test0.54failed0.49failed0.51failed
Multithreading Test0.31failed3.6failed1.9failed
All Tests0.340.0121.61.60.980.79

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

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

A huge performance gap has been detected when using simple basic entities with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.011) to the normalized speed of EclipseLink with MySQL database server (0.35) reveals that in that case, EclipseLink with MySQL server is 31.8 times faster than DataNucleus with DB4O embedded.

On the other hand, EclipseLink with MySQL server is slower, for instance, when using JPA element collections with large transaction size. Comparing the normalized speed of EclipseLink with MySQL database server (0.51) to the normalized speed of DataNucleus with DB4O embedded database (1.6) reveals that in that case, EclipseLink with MySQL server is 3.1 times slower than DataNucleus with DB4O embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
EclipseLink
MySQL server
DataNucleus
DB4O embedded
Basic Person Test1.30.0224.21.32.70.68
Element Collection Test0.690.0180.891.30.790.66
Inheritance Test1.10.0194.81.22.90.63
Indexing Test1.40.0284.91.93.20.94
Graph (Binary Tree) Test0.85failed0.73failed0.79failed
Multithreading Test2.0failed4.0failed3.0failed
All Tests1.20.0223.31.42.30.73

The results above show that in general EclipseLink with MySQL server is much more efficient than DataNucleus with DB4O embedded in performing JPA database operations. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.73) to the normalized speed of EclipseLink with MySQL database server (2.3) reveals that in these tests, EclipseLink with MySQL server is 3.2 times faster than DataNucleus with DB4O embedded.

A huge performance gap has been detected when using simple basic entities with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.022) to the normalized speed of EclipseLink with MySQL database server (1.3) reveals that in that case, EclipseLink with MySQL server is 59.1 times faster than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons