Compare with

Comparison of ObjectDB embedded vs OpenJPA with HSQLDB 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
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
Basic Person Test10013.31006.910010.1
Element Collection Test1008.61005.31007.0
Inheritance Test10012.21005.81009.0
Indexing Test10016.71009.110012.9
Graph (Binary Tree) Test88.46.11007.394.26.7
Multithreading Test10026.81007.010016.9
All Tests98.113.91006.999.010.4

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
Basic Person Test10021.810030.110025.9
Element Collection Test1000.00681004.51002.2
Inheritance Test1000.00251002.01000.98
Indexing Test10022.110043.610032.9
Graph (Binary Tree) Test1002.11002.11002.1
Multithreading Test10020.910023.510022.2
All Tests10011.110017.610014.4

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
Basic Person Test1002.81000.911001.9
Element Collection Test1001.41000.951001.2
Inheritance Test1002.41001.31001.8
Indexing Test10015.410034.310024.9
Multithreading Test1001.41000.531000.95
All Tests1004.71007.61006.1

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
Basic Person Test10012.01005.31008.6
Element Collection Test1000.0171003.71001.8
Inheritance Test1000.00981002.01000.99
Indexing Test1009.31005.51007.4
Graph (Binary Tree) Test1002.51001.61002.1
Multithreading Test10020.01003.710011.8
All Tests1007.31003.61005.5

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

A huge performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (0.0098) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 10,204 times faster than OpenJPA with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
Basic Person Test10021.310015.710018.5
Element Collection Test1000.0111002.91001.5
Inheritance Test1000.00701003.51001.8
Indexing Test10028.810015.210022.0
Graph (Binary Tree) Test1002.91003.61003.2
Multithreading Test10026.010019.610022.8
All Tests10013.210010.110011.6

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

A huge performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (0.0070) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 14,286 times faster than OpenJPA with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
Basic Person Test10041.410041.410041.4
Element Collection Test10046.910046.910046.9
Inheritance Test10041.410041.410041.4
Indexing Test10048.410049.210048.8
Graph (Binary Tree) Test10028.510021.410025.0
Multithreading Test91.151.922.010.356.631.1
All Tests98.543.187.035.192.839.1

The results above show that in general ObjectDB embedded is more efficient than OpenJPA with HSQLDB embedded in using disk space. Comparing the normalized score of OpenJPA with HSQLDB 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 HSQLDB embedded.

A large gap has been detected when using graphs of objects with large transaction size. Comparing the normalized score of OpenJPA with HSQLDB 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 HSQLDB embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
ObjectDB embeddedOpenJPA
HSQLDB embedded
Basic Person Test10014.310011.810013.0
Element Collection Test1002.01003.51002.7
Inheritance Test1002.91002.91002.9
Indexing Test10018.510021.610020.0
Graph (Binary Tree) Test97.13.41003.798.53.5
Multithreading Test10019.010010.910014.9
All Tests99.610.21009.299.89.7

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

Other Head to Head DBMS/JPA Comparisons