Compare with

Comparison of ObjectDB server vs Hibernate 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 serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
Basic Person Test35.23.674.11.654.72.6
Element Collection Test38.21.657.80.7248.01.1
Inheritance Test32.73.772.81.652.72.7
Indexing Test49.95.490.12.670.04.0
Graph (Binary Tree) Test1001.589.21.294.61.4
Multithreading Test76.67.499.42.988.05.2
All Tests55.43.980.61.868.02.8

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
 ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
Basic Person Test15.73.045.411.030.57.0
Element Collection Test19.90.3449.21.234.60.79
Inheritance Test13.21.349.414.531.37.9
Indexing Test14.02.559.512.836.87.6
Graph (Binary Tree) Test19.90.5524.70.7122.30.63
Multithreading Test19.70.2360.213.840.07.0
All Tests17.11.348.19.032.65.2

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
 ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
Basic Person Test38.810.025.92.032.46.0
Element Collection Test39.56.733.10.5336.33.6
Inheritance Test34.82.834.01.634.42.2
Indexing Test14.50.4453.32.033.91.2
Multithreading Test50.82.152.10.9851.51.5
All Tests35.74.439.71.437.72.9

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
 ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
Basic Person Test18.30.7340.91.629.61.2
Element Collection Test21.10.3953.71.237.40.78
Inheritance Test19.90.6151.92.135.91.4
Indexing Test17.90.8152.12.635.01.7
Graph (Binary Tree) Test42.60.6924.10.4033.30.54
Multithreading Test68.60.6368.73.068.61.8
All Tests31.40.6448.61.840.01.2

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
 ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
Basic Person Test20.21.167.71.744.01.4
Element Collection Test22.90.2157.60.5340.20.37
Inheritance Test23.10.6561.61.842.31.2
Indexing Test34.90.8155.92.045.41.4
Graph (Binary Tree) Test19.30.5527.90.6223.60.58
Multithreading Test38.50.3550.54.144.52.2
All Tests26.50.6153.51.840.01.2

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
 ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
ObjectDB serverHibernate
MySQL server
Basic Person Test25.63.750.83.638.23.6
Element Collection Test28.31.850.30.8439.31.3
Inheritance Test24.71.853.94.339.33.1
Indexing Test26.22.062.24.444.23.2
Graph (Binary Tree) Test45.40.8341.50.7343.50.78
Multithreading Test50.82.166.25.058.53.6
All Tests33.12.154.63.243.92.7

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