Compare with

Comparison of DataNucleus 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
 DataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embedded
Basic Person Test2.61001.41002.0100
Element Collection Test1.01000.481000.76100
Inheritance Test2.51001.31001.9100
Indexing Test4.01002.51003.3100
Graph (Binary Tree) Test1.188.40.991001.194.2
Multithreading Test6.21002.51004.4100
All Tests2.998.11.51002.299.0

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embedded
Basic Person Test0.961009.31005.1100
Element Collection Test0.181000.771000.47100
Inheritance Test0.551008.51004.5100
Indexing Test0.821009.71005.3100
Graph (Binary Tree) Test2.11003.51002.8100
Multithreading Test0.271007.81004.0100
All Tests0.811006.61003.7100

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embedded
Basic Person Test7.21002.21004.7100
Element Collection Test5.81000.271003.1100
Inheritance Test2.91001.71002.3100
Indexing Test0.00841002.51001.2100
Multithreading Testfailed100failed100failed100
All Tests4.01001.71002.8100

DataNucleus with MySQL server has failed in 2 tests (see exceptions).

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embedded
Basic Person Test0.611001.11000.88100
Element Collection Test0.311000.441000.38100
Inheritance Test0.511001.81001.1100
Indexing Test0.681002.21001.5100
Graph (Binary Tree) Test0.911000.471000.69100
Multithreading Test0.64100failed1000.64100
All Tests0.611001.21000.88100

DataNucleus with MySQL server has failed in 1 tests (see exceptions).

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

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of DataNucleus 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 DataNucleus with MySQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embedded
Basic Person Test0.701001.31001.0100
Element Collection Test0.171000.401000.29100
Inheritance Test0.411001.31000.87100
Indexing Test1.71001.91001.8100
Graph (Binary Tree) Test0.491000.461000.47100
Multithreading Testfailed100failed100failed100
All Tests0.691001.11000.89100

DataNucleus with MySQL server has failed in 2 tests (see exceptions).

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embeddedDataNucleus
MySQL server
ObjectDB embedded
Basic Person Test2.41003.11002.7100
Element Collection Test1.51000.471000.99100
Inheritance Test1.41002.91002.1100
Indexing Test1.41003.81002.6100
Graph (Binary Tree) Test1.297.11.41001.398.5
Multithreading Test2.41005.11003.5100
All Tests1.799.62.61002.199.8

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

A huge performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (0.47) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 213 times faster than DataNucleus with MySQL server.

Other Head to Head DBMS/JPA Comparisons