Compare with

Comparison of OpenJPA with PostgreSQL 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
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embedded
Basic Person Test5.21004.81005.0100
Element Collection Test2.81002.21002.5100
Inheritance Test4.61003.21003.9100
Indexing Test7.41006.91007.1100
Graph (Binary Tree) Test0.9888.40.811000.8994.2
Multithreading Test23.41009.110016.2100
All Tests7.498.14.51005.999.0

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embedded
Basic Person Test5.810016.110010.9100
Element Collection Test0.0131008.71004.4100
Inheritance Test5.210017.610011.4100
Indexing Test4.810018.710011.8100
Graph (Binary Tree) Test0.271000.351000.31100
Multithreading Test11.910023.310017.6100
All Tests4.710014.11009.4100

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embedded
Basic Person Testfailed100failed100failed100
Element Collection Testfailed100failed100failed100
Inheritance Testfailed100failed100failed100
Indexing Testfailed100failed100failed100
Multithreading Testfailed100failed100failed100
All Testsfailed100failed100failed100

OpenJPA with PostgreSQL server has failed in 10 tests (see exceptions).

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embedded
Basic Person Test4.91003.91004.4100
Element Collection Test0.0331004.61002.3100
Inheritance Test4.81004.91004.9100
Indexing Test5.11006.01005.6100
Graph (Binary Tree) Test0.571000.311000.44100
Multithreading Test22.21007.410014.8100
All Tests6.31004.51005.4100

The results above show that in general ObjectDB embedded is much more efficient than OpenJPA with PostgreSQL server in updating JPA entity objects in the database. Comparing the normalized speed of OpenJPA with PostgreSQL database server (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 PostgreSQL server.

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embedded
Basic Person Test4.61005.31005.0100
Element Collection Test0.0321002.81001.4100
Inheritance Test4.31004.61004.4100
Indexing Test8.01007.11007.5100
Graph (Binary Tree) Test0.531000.551000.54100
Multithreading Test17.41009.110013.3100
All Tests5.81004.91005.4100

The results above show that in general ObjectDB embedded is much more efficient than OpenJPA with PostgreSQL server in deleting JPA entity objects from the database. Comparing the normalized speed of OpenJPA with PostgreSQL database server (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 PostgreSQL server.

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embedded
Basic Person Test5.11007.51006.3100
Element Collection Test0.721004.61002.6100
Inheritance Test4.71007.61006.2100
Indexing Test6.31009.71008.0100
Graph (Binary Tree) Test0.5997.10.501000.5598.5
Multithreading Test18.710012.210015.5100
All Tests6.099.67.01006.599.8

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

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

Other Head to Head DBMS/JPA Comparisons