Compare with

Comparison of ObjectDB embedded vs OpenJPA with Derby 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
 ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
Basic Person Test1004.81002.91003.9
Element Collection Test1002.81001.91002.4
Inheritance Test1004.11002.41003.3
Indexing Test1006.11004.11005.1
Graph (Binary Tree) Test88.41.51001.494.21.4
Multithreading Test1008.71003.31006.0
All Tests98.14.71002.799.03.7

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
 ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
Basic Person Test10014.810022.610018.7
Element Collection Test1000.00311002.31001.2
Inheritance Test1000.0151007.01003.5
Indexing Test10011.710026.510019.1
Graph (Binary Tree) Test1000.931001.21001.1
Multithreading Test10025.210028.610026.9
All Tests1008.810014.710011.7

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
 ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
Basic Person Test10049.71009.910029.8
Element Collection Test1002.71009.61006.1
Inheritance Test1002.31001.31001.8
Indexing Test1007.010017.110012.1
Multithreading Test10040.910011.710026.3
All Tests10020.51009.910015.2

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
 ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
Basic Person Test1005.61005.21005.4
Element Collection Test1000.00901002.21001.1
Inheritance Test1000.0451004.61002.3
Indexing Test1006.11008.71007.4
Graph (Binary Tree) Test1001.61000.911001.3
Multithreading Test10018.31004.510011.4
All Tests1005.31004.41004.8

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
 ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
Basic Person Test1004.21004.51004.3
Element Collection Test1000.00711001.61000.80
Inheritance Test1000.0351003.01001.5
Indexing Test1005.31003.61004.4
Graph (Binary Tree) Test1000.801000.931000.86
Multithreading Test1005.71006.21006.0
All Tests1002.71003.31003.0

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
 ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
Basic Person Test10052.810052.810052.8
Element Collection Test10042.410042.410042.4
Inheritance Test10044.210044.210044.2
Indexing Test10053.110054.010053.5
Graph (Binary Tree) Test10012.81009.610011.2
Multithreading Test91.150.722.09.756.630.2
All Tests98.542.787.035.592.839.1

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
 ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
ObjectDB embeddedOpenJPA
Derby embedded
Basic Person Test10015.81009.010012.4
Element Collection Test1001.11003.51002.3
Inheritance Test1001.31003.71002.5
Indexing Test1007.210012.01009.6
Graph (Binary Tree) Test97.11.21001.198.51.2
Multithreading Test10019.810010.910015.3
All Tests99.68.01006.999.87.4

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