Compare with

Comparison of OpenJPA 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
 OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test4.80.0592.91.33.90.69
Element Collection Test2.80.0451.91.02.40.52
Inheritance Test4.10.0512.40.853.30.45
Indexing Test6.10.0804.12.35.11.2
Graph (Binary Tree) Test1.5failed1.4failed1.4failed
Multithreading Test8.7failed3.3failed6.0failed
All Tests4.70.0592.71.43.70.71

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

The results above show that in general OpenJPA 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 OpenJPA with Derby embedded database (3.7) reveals that in these tests, OpenJPA with Derby embedded is 5.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.059) to the normalized speed of OpenJPA with Derby embedded database (4.8) reveals that in that case, OpenJPA with Derby embedded is 81.4 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
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test14.80.004722.61.818.70.90
Element Collection Test0.00310.00382.31.51.20.77
Inheritance Test0.0150.00357.02.23.51.1
Indexing Test11.70.004326.51.819.10.89
Graph (Binary Tree) Test0.93failed1.2failed1.1failed
Multithreading Test25.2failed28.6failed26.9failed
All Tests8.80.004114.71.811.70.91

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

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

A huge performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0047) to the normalized speed of OpenJPA with Derby embedded database (14.8) reveals that in that case, OpenJPA with Derby embedded is 3,149 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
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test49.7failed9.9failed29.8failed
Element Collection Test2.7failed9.6failed6.1failed
Inheritance Test2.3failed1.3failed1.8failed
Indexing Test7.0failed17.1failed12.1failed
Multithreading Test40.9failed11.7failed26.3failed
All Tests20.5failed9.9failed15.2failed

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
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test5.60.0125.20.765.40.39
Element Collection Test0.00900.0122.21.11.10.53
Inheritance Test0.0450.0114.60.812.30.41
Indexing Test6.10.0118.71.37.40.64
Graph (Binary Tree) Test1.6failed0.91failed1.3failed
Multithreading Test18.3failed4.5failed11.4failed
All Tests5.30.0124.40.974.80.49

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

The results above show that in general OpenJPA 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 OpenJPA with Derby embedded database (4.8) reveals that in these tests, OpenJPA with Derby embedded is 9.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.011) to the normalized speed of OpenJPA with Derby embedded database (6.1) reveals that in that case, OpenJPA with Derby embedded is 555 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
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test4.20.0114.51.54.30.74
Element Collection Test0.00710.0101.61.60.800.80
Inheritance Test0.0350.00933.01.11.50.57
Indexing Test5.30.0173.62.14.41.1
Graph (Binary Tree) Test0.80failed0.93failed0.86failed
Multithreading Test5.7failed6.2failed6.0failed
All Tests2.70.0123.31.63.00.79

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

The results above show that in general OpenJPA 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 OpenJPA with Derby embedded database (3.0) reveals that in these tests, OpenJPA with Derby embedded is 3.8 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 Derby embedded database (4.2) reveals that in that case, OpenJPA with Derby embedded is 382 times faster than DataNucleus with DB4O embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test52.835.152.835.452.835.2
Element Collection Test42.429.542.429.942.429.7
Inheritance Test44.233.444.233.544.233.4
Indexing Test53.141.054.041.953.541.5
Graph (Binary Tree) Test12.8failed9.6failed11.2failed
Multithreading Test50.7failed9.7failed30.2failed
All Tests42.734.835.535.239.135.0

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

The results above show that in general OpenJPA 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
 OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
OpenJPA
Derby embedded
DataNucleus
DB4O embedded
Basic Person Test15.80.0229.01.312.40.68
Element Collection Test1.10.0183.51.32.30.66
Inheritance Test1.30.0193.71.22.50.63
Indexing Test7.20.02812.01.99.60.94
Graph (Binary Tree) Test1.2failed1.1failed1.2failed
Multithreading Test19.8failed10.9failed15.3failed
All Tests8.00.0226.91.47.40.73

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

Other Head to Head DBMS/JPA Comparisons