Compare with

Comparison of EclipseLink with PostgreSQL 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
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
Basic Person Test7.30.0594.21.35.80.69
Element Collection Test3.10.0451.91.02.50.52
Inheritance Test6.90.0515.00.855.90.45
Indexing Test10.00.0806.82.38.41.2
Graph (Binary Tree) Test3.5failed3.3failed3.4failed
Multithreading Test31.8failed14.5failed23.1failed
All Tests10.40.0596.01.48.20.71

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

The results above show that in general EclipseLink with PostgreSQL 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 PostgreSQL database server (8.2) reveals that in these tests, EclipseLink with PostgreSQL server is 11.5 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 PostgreSQL database server (6.9) reveals that in that case, EclipseLink with PostgreSQL server is 135 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
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
Basic Person Test6.80.004717.21.812.00.90
Element Collection Test0.0260.00380.0201.50.0230.77
Inheritance Test6.00.003519.72.212.91.1
Indexing Test5.60.004319.51.812.60.89
Graph (Binary Tree) Test0.47failed0.61failed0.54failed
Multithreading Test13.5failed27.8failed20.6failed
All Tests5.40.004114.11.89.80.91

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

The results above show that in general EclipseLink with PostgreSQL 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 PostgreSQL database server (9.8) reveals that in these tests, EclipseLink with PostgreSQL server is 10.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 retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0035) to the normalized speed of EclipseLink with PostgreSQL database server (6.0) reveals that in that case, EclipseLink with PostgreSQL server is 1,714 times faster than DataNucleus with DB4O embedded.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.020) to the normalized speed of DataNucleus with DB4O embedded database (1.5) reveals that in that case, EclipseLink with PostgreSQL server is 75.0 times slower than DataNucleus with DB4O embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
Basic Person Test55.5failed7.8failed31.6failed
Element Collection Test15.4failed0.028failed7.7failed
Inheritance Test54.9failed11.5failed33.2failed
Indexing Test0.077failed10.0failed5.1failed
Multithreading Test55.3failed12.0failed33.7failed
All Tests36.2failed8.3failed22.3failed

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
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
Basic Person Test6.20.0124.10.765.10.39
Element Collection Test0.0800.0120.0281.10.0540.53
Inheritance Test6.40.0116.10.816.20.41
Indexing Test6.50.0117.01.36.80.64
Graph (Binary Tree) Test0.90failed0.50failed0.70failed
Multithreading Test36.0failed9.1failed22.5failed
All Tests9.30.0124.50.976.90.49

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

The results above show that in general EclipseLink with PostgreSQL server 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 PostgreSQL database server (6.9) reveals that in these tests, EclipseLink with PostgreSQL server is 14.1 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 PostgreSQL database server (6.5) reveals that in that case, EclipseLink with PostgreSQL server is 591 times faster than DataNucleus with DB4O embedded.

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
Basic Person Test5.70.0115.71.55.70.74
Element Collection Test0.0250.010stopped1.60.0120.80
Inheritance Test5.50.00935.41.15.40.57
Indexing Test10.40.01710.02.110.21.1
Graph (Binary Tree) Test0.016failed0.013failed0.015failed
Multithreading Test26.3failed16.8failed21.6failed
All Tests8.00.0126.31.67.20.79

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

The results above show that in general EclipseLink with PostgreSQL server 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 PostgreSQL database server (7.2) reveals that in these tests, EclipseLink with PostgreSQL server is 9.1 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.017) to the normalized speed of EclipseLink with PostgreSQL database server (10.4) reveals that in that case, EclipseLink with PostgreSQL server is 612 times faster than DataNucleus with DB4O embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
EclipseLink
PostgreSQL server
DataNucleus
DB4O embedded
Basic Person Test16.30.0227.81.312.10.68
Element Collection Test3.70.0180.401.32.10.66
Inheritance Test15.90.0199.51.212.70.63
Indexing Test6.50.02810.71.98.60.94
Graph (Binary Tree) Test1.2failed1.1failed1.2failed
Multithreading Test32.6failed16.0failed24.3failed
All Tests13.10.0227.81.410.50.73

The results above show that in general EclipseLink with PostgreSQL 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 PostgreSQL database server (10.5) reveals that in these tests, EclipseLink with PostgreSQL server is 14.4 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/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.019) to the normalized speed of EclipseLink with PostgreSQL database server (15.9) reveals that in that case, EclipseLink with PostgreSQL server is 837 times faster than DataNucleus with DB4O embedded.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.40) to the normalized speed of DataNucleus with DB4O embedded database (1.3) reveals that in that case, EclipseLink with PostgreSQL server is 3.2 times slower than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons