Compare with

Comparison of ObjectDB embedded vs OpenJPA with PostgreSQL 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
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
Basic Person Test1005.21004.81005.0
Element Collection Test1002.81002.21002.5
Inheritance Test1004.61003.21003.9
Indexing Test1007.41006.91007.1
Graph (Binary Tree) Test88.40.981000.8194.20.89
Multithreading Test10023.41009.110016.2
All Tests98.17.41004.599.05.9

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
 ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
Basic Person Test1005.810016.110010.9
Element Collection Test1000.0131008.71004.4
Inheritance Test1005.210017.610011.4
Indexing Test1004.810018.710011.8
Graph (Binary Tree) Test1000.271000.351000.31
Multithreading Test10011.910023.310017.6
All Tests1004.710014.11009.4

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
 ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
Basic Person Test100failed100failed100failed
Element Collection Test100failed100failed100failed
Inheritance Test100failed100failed100failed
Indexing Test100failed100failed100failed
Multithreading Test100failed100failed100failed
All Tests100failed100failed100failed

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
 ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
Basic Person Test1004.91003.91004.4
Element Collection Test1000.0331004.61002.3
Inheritance Test1004.81004.91004.9
Indexing Test1005.11006.01005.6
Graph (Binary Tree) Test1000.571000.311000.44
Multithreading Test10022.21007.410014.8
All Tests1006.31004.51005.4

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
 ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
Basic Person Test1004.61005.31005.0
Element Collection Test1000.0321002.81001.4
Inheritance Test1004.31004.61004.4
Indexing Test1008.01007.11007.5
Graph (Binary Tree) Test1000.531000.551000.54
Multithreading Test10017.41009.110013.3
All Tests1005.81004.91005.4

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
 ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
ObjectDB embeddedOpenJPA
PostgreSQL server
Basic Person Test1005.11007.51006.3
Element Collection Test1000.721004.61002.6
Inheritance Test1004.71007.61006.2
Indexing Test1006.31009.71008.0
Graph (Binary Tree) Test97.10.591000.5098.50.55
Multithreading Test10018.710012.210015.5
All Tests99.66.01007.099.86.5

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