Compare with

Comparison of ObjectDB embedded vs OpenJPA with Derby server

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
 ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
Basic Person Test1003.11002.71002.9
Element Collection Test1002.01001.71001.8
Inheritance Test1003.01002.31002.6
Indexing Test1004.71004.11004.4
Graph (Binary Tree) Test88.40.711000.6494.20.67
Multithreading Test1006.01003.81004.9
All Tests98.13.31002.599.02.9

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
 ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
Basic Person Test1000.7810011.61006.2
Element Collection Test1000.00241001.11000.54
Inheritance Test1000.0141005.01002.5
Indexing Test1000.6210013.01006.8
Graph (Binary Tree) Test1000.0651000.391000.23
Multithreading Test1001.610019.010010.3
All Tests1000.511008.41004.4

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
 ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
Basic Person Test10029.21005.510017.3
Element Collection Test1002.21001.41001.8
Inheritance Test1002.21001.01001.6
Indexing Test1002.210011.71007.0
Multithreading Test10035.51008.310021.9
All Tests10014.31005.61009.9

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
 ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
Basic Person Test1001.51004.01002.8
Element Collection Test1000.00811001.91000.94
Inheritance Test1000.0431003.81001.9
Indexing Test1001.81006.81004.3
Graph (Binary Tree) Test1000.161000.271000.22
Multithreading Test1006.91005.01005.9
All Tests1001.71003.61002.7

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
 ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
Basic Person Test1001.41003.71002.5
Element Collection Test1000.00821001.41000.71
Inheritance Test1000.0351002.51001.3
Indexing Test1002.31003.51002.9
Graph (Binary Tree) Test1000.131000.351000.24
Multithreading Test1003.61004.01003.8
All Tests1001.31002.61001.9

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
 ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
ObjectDB embeddedOpenJPA
Derby server
Basic Person Test1007.21005.51006.4
Element Collection Test1000.841001.51001.2
Inheritance Test1001.11002.91002.0
Indexing Test1002.31007.81005.1
Graph (Binary Tree) Test97.10.271000.4198.50.34
Multithreading Test10010.71008.01009.4
All Tests99.63.91004.599.84.2

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