Compare with

Comparison of OpenJPA with Derby embedded vs ObjectDB 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
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embedded
Basic Person Test4.81002.91003.9100
Element Collection Test2.81001.91002.4100
Inheritance Test4.11002.41003.3100
Indexing Test6.11004.11005.1100
Graph (Binary Tree) Test1.588.41.41001.494.2
Multithreading Test8.71003.31006.0100
All Tests4.798.12.71003.799.0

The results above show that in general ObjectDB embedded is much more efficient than OpenJPA with Derby embedded in persisting JPA entity objects to the database. Comparing the normalized speed of OpenJPA with Derby embedded database (3.7) to the normalized speed of ObjectDB embedded database (99.0) reveals that in these tests, ObjectDB embedded is 26.8 times faster than OpenJPA with Derby embedded.

A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of OpenJPA with Derby embedded database (1.4) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 71.4 times faster than OpenJPA with Derby embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embedded
Basic Person Test14.810022.610018.7100
Element Collection Test0.00311002.31001.2100
Inheritance Test0.0151007.01003.5100
Indexing Test11.710026.510019.1100
Graph (Binary Tree) Test0.931001.21001.1100
Multithreading Test25.210028.610026.9100
All Tests8.810014.710011.7100

The results above show that in general ObjectDB embedded is much more efficient than OpenJPA with Derby embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of OpenJPA with Derby embedded database (11.7) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 8.5 times faster than OpenJPA with Derby embedded.

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with Derby embedded database (0.0031) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 32,258 times faster than OpenJPA with Derby embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embedded
Basic Person Test49.71009.910029.8100
Element Collection Test2.71009.61006.1100
Inheritance Test2.31001.31001.8100
Indexing Test7.010017.110012.1100
Multithreading Test40.910011.710026.3100
All Tests20.51009.910015.2100

The results above show that in general ObjectDB embedded is much more efficient than OpenJPA with Derby embedded in executing the tested JPA queries. Comparing the normalized speed of OpenJPA with Derby embedded database (15.2) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 6.6 times faster than OpenJPA with Derby embedded.

A huge performance gap has been detected when using class inheritance in the object model with large retrieval size. Comparing the normalized speed of OpenJPA with Derby embedded database (1.3) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 76.9 times faster than OpenJPA with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embedded
Basic Person Test5.61005.21005.4100
Element Collection Test0.00901002.21001.1100
Inheritance Test0.0451004.61002.3100
Indexing Test6.11008.71007.4100
Graph (Binary Tree) Test1.61000.911001.3100
Multithreading Test18.31004.510011.4100
All Tests5.31004.41004.8100

The results above show that in general ObjectDB embedded is much more efficient than OpenJPA with Derby embedded in updating JPA entity objects in the database. Comparing the normalized speed of OpenJPA with Derby embedded database (4.8) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 20.8 times faster than OpenJPA with Derby embedded.

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with Derby embedded database (0.0090) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 11,111 times faster than OpenJPA with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embedded
Basic Person Test4.21004.51004.3100
Element Collection Test0.00711001.61000.80100
Inheritance Test0.0351003.01001.5100
Indexing Test5.31003.61004.4100
Graph (Binary Tree) Test0.801000.931000.86100
Multithreading Test5.71006.21006.0100
All Tests2.71003.31003.0100

The results above show that in general ObjectDB embedded is much more efficient than OpenJPA with Derby embedded in deleting JPA entity objects from the database. Comparing the normalized speed of OpenJPA with Derby embedded database (3.0) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 33.3 times faster than OpenJPA with Derby embedded.

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with Derby embedded database (0.0071) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 14,085 times faster than OpenJPA with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embedded
Basic Person Test52.810052.810052.8100
Element Collection Test42.410042.410042.4100
Inheritance Test44.210044.210044.2100
Indexing Test53.110054.010053.5100
Graph (Binary Tree) Test12.81009.610011.2100
Multithreading Test50.791.19.722.030.256.6
All Tests42.798.535.587.039.192.8

The results above show that in general ObjectDB embedded is more efficient than OpenJPA with Derby embedded in using disk space. Comparing the normalized score of OpenJPA with Derby embedded database (39.1) to the normalized score of ObjectDB embedded database (92.8) reveals that in these tests, ObjectDB embedded is 2.4 times more efficient than OpenJPA with Derby embedded.

A huge gap has been detected when using graphs of objects with large transaction size. Comparing the normalized score of OpenJPA with Derby embedded database (9.6) to the normalized score of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 10.4 times more efficient than OpenJPA with Derby embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embedded
Basic Person Test15.81009.010012.4100
Element Collection Test1.11003.51002.3100
Inheritance Test1.31003.71002.5100
Indexing Test7.210012.01009.6100
Graph (Binary Tree) Test1.297.11.11001.298.5
Multithreading Test19.810010.910015.3100
All Tests8.099.66.91007.499.8

The results above show that in general ObjectDB embedded is much more efficient than OpenJPA with Derby embedded in performing JPA database operations. Comparing the normalized speed of OpenJPA with Derby embedded database (7.4) to the normalized speed of ObjectDB embedded database (99.8) reveals that in these tests, ObjectDB embedded is 13.5 times faster than OpenJPA with Derby embedded.

A huge performance gap has been detected when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of OpenJPA with Derby embedded database (1.1) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 90.9 times faster than OpenJPA with Derby embedded.

Other Head to Head DBMS/JPA Comparisons