Compare with

Comparison of ObjectDB embedded vs OpenJPA with H2 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
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
Basic Person Test10017.11005.810011.5
Element Collection Test10010.91004.91007.9
Inheritance Test10014.31005.910010.1
Indexing Test10024.410013.710019.1
Graph (Binary Tree) Test88.46.81006.794.26.7
Multithreading Test10034.210010.210022.2
All Tests98.117.91007.999.012.9

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
Basic Person Test10014.610027.210020.9
Element Collection Test1000.00461004.31002.1
Inheritance Test1000.0111007.41003.7
Indexing Test10017.010035.010026.0
Graph (Binary Tree) Test1001.01001.41001.2
Multithreading Test10018.710027.610023.1
All Tests1008.610017.110012.8

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
Basic Person Test1005.01001.11003.1
Element Collection Test1001.71001.31001.5
Inheritance Test1002.21001.21001.7
Indexing Test10013.810023.210018.5
Multithreading Test1001.41000.601000.99
All Tests1004.81005.51005.1

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

A huge performance gap has been detected when using multithreading with large retrieval size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.60) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 167 times faster than OpenJPA with H2 embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
Basic Person Test10010.01006.01008.0
Element Collection Test1000.0111003.81001.9
Inheritance Test1000.0461005.01002.5
Indexing Test1008.91007.01008.0
Graph (Binary Tree) Test1002.41001.31001.9
Multithreading Test10016.61004.310010.4
All Tests1006.31004.61005.4

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
Basic Person Test10018.310011.110014.7
Element Collection Test1000.0121002.91001.4
Inheritance Test1000.0301006.61003.3
Indexing Test10023.21009.710016.4
Graph (Binary Tree) Test1001.81002.41002.1
Multithreading Test10031.210017.310024.2
All Tests10012.41008.310010.4

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
Basic Person Test10027.010027.010027.0
Element Collection Test10030.610030.610030.6
Inheritance Test10027.010027.010027.0
Indexing Test10031.610032.110031.9
Graph (Binary Tree) Test10028.510021.410024.9
Multithreading Test91.133.922.09.256.621.5
All Tests98.529.887.024.592.827.2

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
ObjectDB embeddedOpenJPA
H2 embedded
Basic Person Test10013.010010.210011.6
Element Collection Test1002.51003.41003.0
Inheritance Test1003.31005.21004.3
Indexing Test10017.510017.710017.6
Graph (Binary Tree) Test97.13.01003.098.53.0
Multithreading Test10020.410012.010016.2
All Tests99.610.21008.899.89.5

The results above show that in general ObjectDB embedded is much more efficient than OpenJPA with H2 embedded in performing JPA database operations. Comparing the normalized speed of OpenJPA with H2 embedded database (9.5) to the normalized speed of ObjectDB embedded database (99.8) reveals that in these tests, ObjectDB embedded is 10.5 times faster than OpenJPA with H2 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 H2 embedded database (2.5) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 40.0 times faster than OpenJPA with H2 embedded.

Other Head to Head DBMS/JPA Comparisons