Compare with

Comparison of EclipseLink with Derby embedded 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
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test5.50.0593.71.34.60.69
Element Collection Test3.00.0451.71.02.40.52
Inheritance Test5.30.0513.50.854.40.45
Indexing Test6.90.0804.62.35.81.2
Graph (Binary Tree) Test2.0failed1.9failed1.9failed
Multithreading Test9.3failed4.1failed6.7failed
All Tests5.30.0593.21.44.30.71

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

The results above show that in general EclipseLink with Derby embedded 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 Derby embedded database (4.3) reveals that in these tests, EclipseLink with Derby embedded is 6.1 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 Derby embedded database (5.3) reveals that in that case, EclipseLink with Derby embedded is 104 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
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test16.40.004758.71.837.50.90
Element Collection Test7.50.003813.31.510.40.77
Inheritance Test17.10.003558.92.238.01.1
Indexing Test14.20.004367.41.840.80.89
Graph (Binary Tree) Test2.8failed5.7failed4.2failed
Multithreading Test28.0failed48.7failed38.4failed
All Tests14.30.004142.11.828.20.91

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

The results above show that in general EclipseLink with Derby embedded 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 Derby embedded database (28.2) reveals that in these tests, EclipseLink with Derby embedded is 31.0 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 Derby embedded database (17.1) reveals that in that case, EclipseLink with Derby embedded is 4,886 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
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test53.4failed13.8failed33.6failed
Element Collection Test37.9failed4.4failed21.2failed
Inheritance Test37.4failed15.0failed26.2failed
Indexing Test7.6failed49.3failed28.4failed
Multithreading Test41.2failed6.1failed23.6failed
All Tests35.5failed17.7failed26.6failed

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
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test6.40.0126.70.766.50.39
Element Collection Test5.40.0126.21.15.80.53
Inheritance Test6.50.0119.20.817.80.41
Indexing Test7.30.01111.11.39.20.64
Graph (Binary Tree) Test2.8failed1.7failed2.2failed
Multithreading Test21.3failed5.0failed13.1failed
All Tests8.30.0126.60.977.50.49

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

The results above show that in general EclipseLink with Derby embedded is much 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 Derby embedded database (7.5) reveals that in these tests, EclipseLink with Derby embedded is 15.3 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 Derby embedded database (7.3) reveals that in that case, EclipseLink with Derby embedded is 664 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
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test4.60.0114.71.54.60.74
Element Collection Test2.50.0101.41.61.90.80
Inheritance Test3.90.00934.51.14.20.57
Indexing Test6.20.0173.82.15.01.1
Graph (Binary Tree) Test1.1failed1.0failed1.1failed
Multithreading Test6.2failed5.8failed6.0failed
All Tests4.10.0123.51.63.80.79

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

The results above show that in general EclipseLink with Derby embedded is much more efficient than DataNucleus with DB4O embedded in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.79) to the normalized speed of EclipseLink with Derby embedded database (3.8) reveals that in these tests, EclipseLink with Derby embedded is 4.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.0093) to the normalized speed of EclipseLink with Derby embedded database (3.9) reveals that in that case, EclipseLink with Derby embedded is 419 times faster than DataNucleus with DB4O embedded.

Comparison of database storage efficiency (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test51.135.151.035.451.135.2
Element Collection Test38.529.539.429.938.929.7
Inheritance Test48.033.447.933.548.033.4
Indexing Test51.641.052.341.952.041.5
Graph (Binary Tree) Test13.4failed11.7failed12.6failed
Multithreading Test52.6failed8.4failed30.5failed
All Tests42.534.835.135.238.835.0

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

The results above show that in general EclipseLink with Derby embedded is slightly more efficient than DataNucleus with DB4O embedded in using disk space.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
EclipseLink
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test17.30.02217.51.317.40.68
Element Collection Test11.30.0185.41.38.30.66
Inheritance Test14.00.01918.21.216.10.63
Indexing Test8.40.02827.21.917.80.94
Graph (Binary Tree) Test2.2failed2.6failed2.4failed
Multithreading Test21.2failed13.9failed17.6failed
All Tests12.70.02214.51.413.60.73

The results above show that in general EclipseLink with Derby embedded 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 Derby embedded database (13.6) reveals that in these tests, EclipseLink with Derby embedded is 18.6 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 Derby embedded database (17.3) reveals that in that case, EclipseLink with Derby embedded is 786 times faster than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons