Compare with

Comparison of EclipseLink with HSQLDB 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
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test27.10.05917.21.322.20.69
Element Collection Test17.20.0458.21.012.70.52
Inheritance Test26.70.05111.90.8519.30.45
Indexing Test30.60.08018.62.324.61.2
Graph (Binary Tree) Test20.0failed15.9failed18.0failed
Multithreading Test32.5failed11.4failed22.0failed
All Tests25.70.05913.91.419.80.71

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

The results above show that in general EclipseLink with HSQLDB 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 HSQLDB embedded database (19.8) reveals that in these tests, EclipseLink with HSQLDB embedded is 27.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 transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.051) to the normalized speed of EclipseLink with HSQLDB embedded database (26.7) reveals that in that case, EclipseLink with HSQLDB embedded is 524 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
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test24.40.004736.01.830.20.90
Element Collection Test14.90.003819.11.517.00.77
Inheritance Test22.80.003540.02.231.41.1
Indexing Test20.70.004338.71.829.70.89
Graph (Binary Tree) Test8.7failed14.2failed11.4failed
Multithreading Test24.2failed28.0failed26.1failed
All Tests19.30.004129.31.824.30.91

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

The results above show that in general EclipseLink with HSQLDB 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 HSQLDB embedded database (24.3) reveals that in these tests, EclipseLink with HSQLDB embedded is 26.7 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 HSQLDB embedded database (22.8) reveals that in that case, EclipseLink with HSQLDB embedded is 6,514 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
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test2.9failed0.88failed1.9failed
Element Collection Test3.2failed1.4failed2.3failed
Inheritance Test2.6failed1.1failed1.9failed
Indexing Test21.5failed33.3failed27.4failed
Multithreading Test1.1failed0.52failed0.82failed
All Tests6.3failed7.4failed6.9failed

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
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test17.90.0127.00.7612.50.39
Element Collection Test14.60.0128.31.111.40.53
Inheritance Test16.20.0119.70.8113.00.41
Indexing Test12.00.0116.81.39.40.64
Graph (Binary Tree) Test4.7failed3.4failed4.0failed
Multithreading Test24.4failed4.4failed14.4failed
All Tests15.00.0126.60.9710.80.49

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

The results above show that in general EclipseLink with HSQLDB 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 HSQLDB embedded database (10.8) reveals that in these tests, EclipseLink with HSQLDB embedded is 22.0 times faster than DataNucleus with DB4O embedded.

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.012) to the normalized speed of EclipseLink with HSQLDB embedded database (17.9) reveals that in that case, EclipseLink with HSQLDB embedded is 1,492 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
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test32.30.01120.31.526.30.74
Element Collection Test14.30.0106.01.610.20.80
Inheritance Test29.20.009323.91.126.60.57
Indexing Test55.30.01727.12.141.21.1
Graph (Binary Tree) Test6.8failed14.1failed10.4failed
Multithreading Test52.9failed28.4failed40.6failed
All Tests31.80.01220.01.625.90.79

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

The results above show that in general EclipseLink with HSQLDB 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 HSQLDB embedded database (25.9) reveals that in these tests, EclipseLink with HSQLDB embedded is 32.8 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 HSQLDB embedded database (55.3) reveals that in that case, EclipseLink with HSQLDB embedded is 3,253 times faster than DataNucleus with DB4O embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test41.435.141.435.441.435.2
Element Collection Test46.929.546.929.946.929.7
Inheritance Test41.433.441.433.541.433.4
Indexing Test48.441.049.241.948.841.5
Graph (Binary Tree) Test28.5failed21.4failed25.0failed
Multithreading Test51.9failed10.3failed31.1failed
All Tests43.134.835.135.239.135.0

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

The results above show that in general EclipseLink with HSQLDB 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
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
EclipseLink
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test20.90.02216.31.318.60.68
Element Collection Test12.80.0188.61.310.70.66
Inheritance Test19.50.01917.31.218.40.63
Indexing Test28.00.02824.91.926.50.94
Graph (Binary Tree) Test10.0failed11.9failed11.0failed
Multithreading Test27.0failed14.6failed20.8failed
All Tests20.10.02215.71.417.90.73

The results above show that in general EclipseLink with HSQLDB 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 HSQLDB embedded database (17.9) reveals that in these tests, EclipseLink with HSQLDB embedded is 24.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/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.019) to the normalized speed of EclipseLink with HSQLDB embedded database (19.5) reveals that in that case, EclipseLink with HSQLDB embedded is 1,026 times faster than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons