Compare with

Comparison of OpenJPA with Derby server 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 server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embedded
Basic Person Test3.11002.71002.9100
Element Collection Test2.01001.71001.8100
Inheritance Test3.01002.31002.6100
Indexing Test4.71004.11004.4100
Graph (Binary Tree) Test0.7188.40.641000.6794.2
Multithreading Test6.01003.81004.9100
All Tests3.398.12.51002.999.0

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embedded
Basic Person Test0.7810011.61006.2100
Element Collection Test0.00241001.11000.54100
Inheritance Test0.0141005.01002.5100
Indexing Test0.6210013.01006.8100
Graph (Binary Tree) Test0.0651000.391000.23100
Multithreading Test1.610019.010010.3100
All Tests0.511008.41004.4100

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embedded
Basic Person Test29.21005.510017.3100
Element Collection Test2.21001.41001.8100
Inheritance Test2.21001.01001.6100
Indexing Test2.210011.71007.0100
Multithreading Test35.51008.310021.9100
All Tests14.31005.61009.9100

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

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 database server (1.0) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 100 times faster than OpenJPA with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embedded
Basic Person Test1.51004.01002.8100
Element Collection Test0.00811001.91000.94100
Inheritance Test0.0431003.81001.9100
Indexing Test1.81006.81004.3100
Graph (Binary Tree) Test0.161000.271000.22100
Multithreading Test6.91005.01005.9100
All Tests1.71003.61002.7100

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embedded
Basic Person Test1.41003.71002.5100
Element Collection Test0.00821001.41000.71100
Inheritance Test0.0351002.51001.3100
Indexing Test2.31003.51002.9100
Graph (Binary Tree) Test0.131000.351000.24100
Multithreading Test3.61004.01003.8100
All Tests1.31002.61001.9100

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embedded
Basic Person Test7.21005.51006.4100
Element Collection Test0.841001.51001.2100
Inheritance Test1.11002.91002.0100
Indexing Test2.31007.81005.1100
Graph (Binary Tree) Test0.2797.10.411000.3498.5
Multithreading Test10.71008.01009.4100
All Tests3.999.64.51004.299.8

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

A huge performance gap has been detected when using graphs of objects with small transaction/retrieval size. Comparing the normalized speed of OpenJPA with Derby database server (0.27) to the normalized speed of ObjectDB embedded database (97.1) reveals that in that case, ObjectDB embedded is 360 times faster than OpenJPA with Derby server.

Other Head to Head DBMS/JPA Comparisons