Compare with

Comparison of Hibernate 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
 Hibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB server
Basic Person Test3.635.21.674.12.654.7
Element Collection Test1.638.20.7257.81.148.0
Inheritance Test3.732.71.672.82.752.7
Indexing Test5.449.92.690.14.070.0
Graph (Binary Tree) Test1.51001.289.21.494.6
Multithreading Test7.476.62.999.45.288.0
All Tests3.955.41.880.62.868.0

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB server
Basic Person Test3.015.711.045.47.030.5
Element Collection Test0.3419.91.249.20.7934.6
Inheritance Test1.313.214.549.47.931.3
Indexing Test2.514.012.859.57.636.8
Graph (Binary Tree) Test0.5519.90.7124.70.6322.3
Multithreading Test0.2319.713.860.27.040.0
All Tests1.317.19.048.15.232.6

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

A huge performance gap has been detected when using multithreading with small retrieval size. Comparing the normalized speed of Hibernate with MySQL database server (0.23) to the normalized speed of ObjectDB database server (19.7) reveals that in that case, ObjectDB server is 85.7 times faster than Hibernate with MySQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB server
Basic Person Test10.038.82.025.96.032.4
Element Collection Test6.739.50.5333.13.636.3
Inheritance Test2.834.81.634.02.234.4
Indexing Test0.4414.52.053.31.233.9
Multithreading Test2.150.80.9852.11.551.5
All Tests4.435.71.439.72.937.7

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

A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of Hibernate with MySQL database server (0.53) to the normalized speed of ObjectDB database server (33.1) reveals that in that case, ObjectDB server is 62.5 times faster than Hibernate with MySQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB server
Basic Person Test0.7318.31.640.91.229.6
Element Collection Test0.3921.11.253.70.7837.4
Inheritance Test0.6119.92.151.91.435.9
Indexing Test0.8117.92.652.11.735.0
Graph (Binary Tree) Test0.6942.60.4024.10.5433.3
Multithreading Test0.6368.63.068.71.868.6
All Tests0.6431.41.848.61.240.0

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

A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of Hibernate with MySQL database server (0.63) to the normalized speed of ObjectDB database server (68.6) reveals that in that case, ObjectDB server is 109 times faster than Hibernate with MySQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB server
Basic Person Test1.120.21.767.71.444.0
Element Collection Test0.2122.90.5357.60.3740.2
Inheritance Test0.6523.11.861.61.242.3
Indexing Test0.8134.92.055.91.445.4
Graph (Binary Tree) Test0.5519.30.6227.90.5823.6
Multithreading Test0.3538.54.150.52.244.5
All Tests0.6126.51.853.51.240.0

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

A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of Hibernate with MySQL database server (0.35) to the normalized speed of ObjectDB database server (38.5) reveals that in that case, ObjectDB server is 110 times faster than Hibernate with MySQL server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB server
Basic Person Test3.725.63.650.83.638.2
Element Collection Test1.828.30.8450.31.339.3
Inheritance Test1.824.74.353.93.139.3
Indexing Test2.026.24.462.23.244.2
Graph (Binary Tree) Test0.8345.40.7341.50.7843.5
Multithreading Test2.150.85.066.23.658.5
All Tests2.133.13.254.62.743.9

The results above show that in general ObjectDB server is much more efficient than Hibernate with MySQL server in performing JPA database operations. Comparing the normalized speed of Hibernate with MySQL database server (2.7) to the normalized speed of ObjectDB database server (43.9) reveals that in these tests, ObjectDB server is 16.3 times faster than Hibernate 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 Hibernate with MySQL database server (0.84) to the normalized speed of ObjectDB database server (50.3) reveals that in that case, ObjectDB server is 59.9 times faster than Hibernate with MySQL server.

Other Head to Head DBMS/JPA Comparisons