Compare with

Comparison of ObjectDB embedded vs OpenJPA with MySQL 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
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
Basic Person Test1003.91001.61002.7
Element Collection Test1001.61000.681001.1
Inheritance Test1003.61001.41002.5
Indexing Test1005.61002.41004.0
Graph (Binary Tree) Test88.40.681000.5794.20.63
Multithreading Test1007.21002.71004.9
All Tests98.13.71001.599.02.6

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
 ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
Basic Person Test1003.210022.710012.9
Element Collection Test1000.00381002.91001.4
Inheritance Test1000.0171006.91003.4
Indexing Test1002.410023.410012.9
Graph (Binary Tree) Test1000.271000.351000.31
Multithreading Test1000.1410018.11009.1
All Tests1001.010012.41006.7

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
 ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
Basic Person Test1009.31002.21005.8
Element Collection Test1004.81001.11002.9
Inheritance Test1001.51000.901001.2
Indexing Test1000.311002.11001.2
Multithreading Test1001.91000.991001.4
All Tests1003.61001.51002.5

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
 ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
Basic Person Test1000.741001.61001.2
Element Collection Test1000.0141001.71000.87
Inheritance Test1000.0481002.01001.0
Indexing Test1000.741003.01001.9
Graph (Binary Tree) Test1000.451000.251000.35
Multithreading Test1000.551002.91001.7
All Tests1000.421001.91001.2

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
 ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
Basic Person Test1000.981001.71001.4
Element Collection Test1000.00991000.651000.33
Inheritance Test1000.0331001.51000.75
Indexing Test1000.641002.01001.3
Graph (Binary Tree) Test1000.411000.431000.42
Multithreading Test1000.271002.91001.6
All Tests1000.391001.51000.96

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
 ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
ObjectDB embeddedOpenJPA
MySQL server
Basic Person Test1003.61006.01004.8
Element Collection Test1001.31001.41001.3
Inheritance Test1001.01002.51001.8
Indexing Test1001.91006.61004.3
Graph (Binary Tree) Test97.10.451000.4098.50.43
Multithreading Test1002.01005.51003.8
All Tests99.61.81003.999.82.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