Compare with

Comparison of OpenJPA with MySQL 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
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embedded
Basic Person Test3.91001.61002.7100
Element Collection Test1.61000.681001.1100
Inheritance Test3.61001.41002.5100
Indexing Test5.61002.41004.0100
Graph (Binary Tree) Test0.6888.40.571000.6394.2
Multithreading Test7.21002.71004.9100
All Tests3.798.11.51002.699.0

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embedded
Basic Person Test3.210022.710012.9100
Element Collection Test0.00381002.91001.4100
Inheritance Test0.0171006.91003.4100
Indexing Test2.410023.410012.9100
Graph (Binary Tree) Test0.271000.351000.31100
Multithreading Test0.1410018.11009.1100
All Tests1.010012.41006.7100

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embedded
Basic Person Test9.31002.21005.8100
Element Collection Test4.81001.11002.9100
Inheritance Test1.51000.901001.2100
Indexing Test0.311002.11001.2100
Multithreading Test1.91000.991001.4100
All Tests3.61001.51002.5100

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

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of OpenJPA with MySQL database server (0.31) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 323 times faster than OpenJPA with MySQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embedded
Basic Person Test0.741001.61001.2100
Element Collection Test0.0141001.71000.87100
Inheritance Test0.0481002.01001.0100
Indexing Test0.741003.01001.9100
Graph (Binary Tree) Test0.451000.251000.35100
Multithreading Test0.551002.91001.7100
All Tests0.421001.91001.2100

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embedded
Basic Person Test0.981001.71001.4100
Element Collection Test0.00991000.651000.33100
Inheritance Test0.0331001.51000.75100
Indexing Test0.641002.01001.3100
Graph (Binary Tree) Test0.411000.431000.42100
Multithreading Test0.271002.91001.6100
All Tests0.391001.51000.96100

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embedded
Basic Person Test3.61006.01004.8100
Element Collection Test1.31001.41001.3100
Inheritance Test1.01002.51001.8100
Indexing Test1.91006.61004.3100
Graph (Binary Tree) Test0.4597.10.401000.4398.5
Multithreading Test2.01005.51003.8100
All Tests1.899.63.91002.899.8

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

Other Head to Head DBMS/JPA Comparisons