Compare with

Comparison of OpenJPA 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
 OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test13.30.0596.91.310.10.69
Element Collection Test8.60.0455.31.07.00.52
Inheritance Test12.20.0515.80.859.00.45
Indexing Test16.70.0809.12.312.91.2
Graph (Binary Tree) Test6.1failed7.3failed6.7failed
Multithreading Test26.8failed7.0failed16.9failed
All Tests13.90.0596.91.410.40.71

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

The results above show that in general OpenJPA 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 OpenJPA with HSQLDB embedded database (10.4) reveals that in these tests, OpenJPA with HSQLDB embedded is 14.6 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 OpenJPA with HSQLDB embedded database (12.2) reveals that in that case, OpenJPA with HSQLDB embedded is 239 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
 OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test21.80.004730.11.825.90.90
Element Collection Test0.00680.00384.51.52.20.77
Inheritance Test0.00250.00352.02.20.981.1
Indexing Test22.10.004343.61.832.90.89
Graph (Binary Tree) Test2.1failed2.1failed2.1failed
Multithreading Test20.9failed23.5failed22.2failed
All Tests11.10.004117.61.814.40.91

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

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

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0043) to the normalized speed of OpenJPA with HSQLDB embedded database (22.1) reveals that in that case, OpenJPA with HSQLDB embedded is 5,140 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
 OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test2.8failed0.91failed1.9failed
Element Collection Test1.4failed0.95failed1.2failed
Inheritance Test2.4failed1.3failed1.8failed
Indexing Test15.4failed34.3failed24.9failed
Multithreading Test1.4failed0.53failed0.95failed
All Tests4.7failed7.6failed6.1failed

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
 OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test12.00.0125.30.768.60.39
Element Collection Test0.0170.0123.71.11.80.53
Inheritance Test0.00980.0112.00.810.990.41
Indexing Test9.30.0115.51.37.40.64
Graph (Binary Tree) Test2.5failed1.6failed2.1failed
Multithreading Test20.0failed3.7failed11.8failed
All Tests7.30.0123.60.975.50.49

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

The results above show that in general OpenJPA 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 OpenJPA with HSQLDB embedded database (5.5) reveals that in these tests, OpenJPA with HSQLDB embedded is 11.2 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 OpenJPA with HSQLDB embedded database (12.0) reveals that in that case, OpenJPA with HSQLDB embedded is 1,000 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
 OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test21.30.01115.71.518.50.74
Element Collection Test0.0110.0102.91.61.50.80
Inheritance Test0.00700.00933.51.11.80.57
Indexing Test28.80.01715.22.122.01.1
Graph (Binary Tree) Test2.9failed3.6failed3.2failed
Multithreading Test26.0failed19.6failed22.8failed
All Tests13.20.01210.11.611.60.79

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

The results above show that in general OpenJPA 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 OpenJPA with HSQLDB embedded database (11.6) reveals that in these tests, OpenJPA with HSQLDB embedded is 14.7 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.011) to the normalized speed of OpenJPA with HSQLDB embedded database (21.3) reveals that in that case, OpenJPA with HSQLDB embedded is 1,936 times faster than DataNucleus with DB4O embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
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 OpenJPA 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
 OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
OpenJPA
HSQLDB embedded
DataNucleus
DB4O embedded
Basic Person Test14.30.02211.81.313.00.68
Element Collection Test2.00.0183.51.32.70.66
Inheritance Test2.90.0192.91.22.90.63
Indexing Test18.50.02821.61.920.00.94
Graph (Binary Tree) Test3.4failed3.7failed3.5failed
Multithreading Test19.0failed10.9failed14.9failed
All Tests10.20.0229.21.49.70.73

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

A huge performance gap has been detected when using database indexes with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.028) to the normalized speed of OpenJPA with HSQLDB embedded database (18.5) reveals that in that case, OpenJPA with HSQLDB embedded is 661 times faster than DataNucleus with DB4O embedded.

Other Head to Head DBMS/JPA Comparisons