Compare with

Comparison of DataNucleus with MySQL server vs ObjectDB 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
 DataNucleus
MySQL server
ObjectDB serverDataNucleus
MySQL server
ObjectDB serverDataNucleus
MySQL server
ObjectDB server
Basic Person Test2.635.21.474.12.054.7
Element Collection Test1.038.20.4857.80.7648.0
Inheritance Test2.532.71.372.81.952.7
Indexing Test4.049.92.590.13.370.0
Graph (Binary Tree) Test1.11000.9989.21.194.6
Multithreading Test6.276.62.599.44.488.0
All Tests2.955.41.580.62.268.0

The results above show that in general ObjectDB server 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 database server (68.0) reveals that in these tests, ObjectDB server is 30.9 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 database server (57.8) reveals that in that case, ObjectDB server is 120 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 serverDataNucleus
MySQL server
ObjectDB serverDataNucleus
MySQL server
ObjectDB server
Basic Person Test0.9615.79.345.45.130.5
Element Collection Test0.1819.90.7749.20.4734.6
Inheritance Test0.5513.28.549.44.531.3
Indexing Test0.8214.09.759.55.336.8
Graph (Binary Tree) Test2.119.93.524.72.822.3
Multithreading Test0.2719.77.860.24.040.0
All Tests0.8117.16.648.13.732.6

The results above show that in general ObjectDB server 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 database server (32.6) reveals that in these tests, ObjectDB server is 8.8 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 database server (19.9) reveals that in that case, ObjectDB server is 111 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 serverDataNucleus
MySQL server
ObjectDB serverDataNucleus
MySQL server
ObjectDB server
Basic Person Test7.238.82.225.94.732.4
Element Collection Test5.839.50.2733.13.136.3
Inheritance Test2.934.81.734.02.334.4
Indexing Test0.008414.52.553.31.233.9
Multithreading Testfailed50.8failed52.1failed51.5
All Tests4.035.71.739.72.837.7

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

The results above show that in general ObjectDB server 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 database server (37.7) reveals that in these tests, ObjectDB server is 13.5 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 database server (14.5) reveals that in that case, ObjectDB server is 1,726 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 serverDataNucleus
MySQL server
ObjectDB serverDataNucleus
MySQL server
ObjectDB server
Basic Person Test0.6118.31.140.90.8829.6
Element Collection Test0.3121.10.4453.70.3837.4
Inheritance Test0.5119.91.851.91.135.9
Indexing Test0.6817.92.252.11.535.0
Graph (Binary Tree) Test0.9142.60.4724.10.6933.3
Multithreading Test0.6468.6failed68.70.6468.6
All Tests0.6131.41.248.60.8840.0

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

The results above show that in general ObjectDB server 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 database server (40.0) reveals that in these tests, ObjectDB server is 45.5 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.44) to the normalized speed of ObjectDB database server (53.7) reveals that in that case, ObjectDB server is 122 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 serverDataNucleus
MySQL server
ObjectDB serverDataNucleus
MySQL server
ObjectDB server
Basic Person Test0.7020.21.367.71.044.0
Element Collection Test0.1722.90.4057.60.2940.2
Inheritance Test0.4123.11.361.60.8742.3
Indexing Test1.734.91.955.91.845.4
Graph (Binary Tree) Test0.4919.30.4627.90.4723.6
Multithreading Testfailed38.5failed50.5failed44.5
All Tests0.6926.51.153.50.8940.0

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

The results above show that in general ObjectDB server 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 database server (40.0) reveals that in these tests, ObjectDB server is 44.9 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.40) to the normalized speed of ObjectDB database server (57.6) reveals that in that case, ObjectDB server is 144 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 serverDataNucleus
MySQL server
ObjectDB serverDataNucleus
MySQL server
ObjectDB server
Basic Person Test2.425.63.150.82.738.2
Element Collection Test1.528.30.4750.30.9939.3
Inheritance Test1.424.72.953.92.139.3
Indexing Test1.426.23.862.22.644.2
Graph (Binary Tree) Test1.245.41.441.51.343.5
Multithreading Test2.450.85.166.23.558.5
All Tests1.733.12.654.62.143.9

The results above show that in general ObjectDB server 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 database server (43.9) reveals that in these tests, ObjectDB server is 20.9 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 database server (50.3) reveals that in that case, ObjectDB server is 107 times faster than DataNucleus with MySQL server.

Other Head to Head DBMS/JPA Comparisons