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 Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server |
Basic Person Test | 3.6 | 35.2 | 1.6 | 74.1 | 2.6 | 54.7 |
Element Collection Test | 1.6 | 38.2 | 0.72 | 57.8 | 1.1 | 48.0 |
Inheritance Test | 3.7 | 32.7 | 1.6 | 72.8 | 2.7 | 52.7 |
Indexing Test | 5.4 | 49.9 | 2.6 | 90.1 | 4.0 | 70.0 |
Graph (Binary Tree) Test | 1.5 | 100 | 1.2 | 89.2 | 1.4 | 94.6 |
Multithreading Test | 7.4 | 76.6 | 2.9 | 99.4 | 5.2 | 88.0 |
All Tests | 3.9 | 55.4 | 1.8 | 80.6 | 2.8 | 68.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 Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server |
Basic Person Test | 3.0 | 15.7 | 11.0 | 45.4 | 7.0 | 30.5 |
Element Collection Test | 0.34 | 19.9 | 1.2 | 49.2 | 0.79 | 34.6 |
Inheritance Test | 1.3 | 13.2 | 14.5 | 49.4 | 7.9 | 31.3 |
Indexing Test | 2.5 | 14.0 | 12.8 | 59.5 | 7.6 | 36.8 |
Graph (Binary Tree) Test | 0.55 | 19.9 | 0.71 | 24.7 | 0.63 | 22.3 |
Multithreading Test | 0.23 | 19.7 | 13.8 | 60.2 | 7.0 | 40.0 |
All Tests | 1.3 | 17.1 | 9.0 | 48.1 | 5.2 | 32.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 Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server |
Basic Person Test | 10.0 | 38.8 | 2.0 | 25.9 | 6.0 | 32.4 |
Element Collection Test | 6.7 | 39.5 | 0.53 | 33.1 | 3.6 | 36.3 |
Inheritance Test | 2.8 | 34.8 | 1.6 | 34.0 | 2.2 | 34.4 |
Indexing Test | 0.44 | 14.5 | 2.0 | 53.3 | 1.2 | 33.9 |
Multithreading Test | 2.1 | 50.8 | 0.98 | 52.1 | 1.5 | 51.5 |
All Tests | 4.4 | 35.7 | 1.4 | 39.7 | 2.9 | 37.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 Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server |
Basic Person Test | 0.73 | 18.3 | 1.6 | 40.9 | 1.2 | 29.6 |
Element Collection Test | 0.39 | 21.1 | 1.2 | 53.7 | 0.78 | 37.4 |
Inheritance Test | 0.61 | 19.9 | 2.1 | 51.9 | 1.4 | 35.9 |
Indexing Test | 0.81 | 17.9 | 2.6 | 52.1 | 1.7 | 35.0 |
Graph (Binary Tree) Test | 0.69 | 42.6 | 0.40 | 24.1 | 0.54 | 33.3 |
Multithreading Test | 0.63 | 68.6 | 3.0 | 68.7 | 1.8 | 68.6 |
All Tests | 0.64 | 31.4 | 1.8 | 48.6 | 1.2 | 40.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 Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server |
Basic Person Test | 1.1 | 20.2 | 1.7 | 67.7 | 1.4 | 44.0 |
Element Collection Test | 0.21 | 22.9 | 0.53 | 57.6 | 0.37 | 40.2 |
Inheritance Test | 0.65 | 23.1 | 1.8 | 61.6 | 1.2 | 42.3 |
Indexing Test | 0.81 | 34.9 | 2.0 | 55.9 | 1.4 | 45.4 |
Graph (Binary Tree) Test | 0.55 | 19.3 | 0.62 | 27.9 | 0.58 | 23.6 |
Multithreading Test | 0.35 | 38.5 | 4.1 | 50.5 | 2.2 | 44.5 |
All Tests | 0.61 | 26.5 | 1.8 | 53.5 | 1.2 | 40.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 Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server | Hibernate MySQL server | ObjectDB server |
Basic Person Test | 3.7 | 25.6 | 3.6 | 50.8 | 3.6 | 38.2 |
Element Collection Test | 1.8 | 28.3 | 0.84 | 50.3 | 1.3 | 39.3 |
Inheritance Test | 1.8 | 24.7 | 4.3 | 53.9 | 3.1 | 39.3 |
Indexing Test | 2.0 | 26.2 | 4.4 | 62.2 | 3.2 | 44.2 |
Graph (Binary Tree) Test | 0.83 | 45.4 | 0.73 | 41.5 | 0.78 | 43.5 |
Multithreading Test | 2.1 | 50.8 | 5.0 | 66.2 | 3.6 | 58.5 |
All Tests | 2.1 | 33.1 | 3.2 | 54.6 | 2.7 | 43.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
Hibernate with MySQL server against:
- Oracle Database 11g
- IBM DB2 10
- Microsoft SQL Server 2008
- DataNucleus with Derby embedded
- DataNucleus with H2 embedded
- DataNucleus with HSQLDB embedded
- DataNucleus with DB4O embedded
- DataNucleus with Derby server
- DataNucleus with H2 server
- DataNucleus with MySQL server
- DataNucleus with PostgreSQL server
- EclipseLink with Derby embedded
- EclipseLink with H2 embedded
- EclipseLink with HSQLDB embedded
- EclipseLink with SQLite embedded
- EclipseLink with Derby server
- EclipseLink with H2 server
- EclipseLink with MySQL server
- EclipseLink with PostgreSQL server
- Hibernate with Derby embedded
- Hibernate with H2 embedded
- Hibernate with HSQLDB embedded
- Hibernate with SQLite embedded
- Hibernate with Derby server
- Hibernate with H2 server
- Hibernate with PostgreSQL server
- OpenJPA with Derby embedded
- OpenJPA with H2 embedded
- OpenJPA with HSQLDB embedded
- OpenJPA with Derby server
- OpenJPA with H2 server
- OpenJPA with MySQL server
- OpenJPA with PostgreSQL server
- ObjectDB embedded
- ObjectDB server
ObjectDB server against:
- Oracle Database 11g
- IBM DB2 10
- Microsoft SQL Server 2008
- DataNucleus with Derby embedded
- DataNucleus with H2 embedded
- DataNucleus with HSQLDB embedded
- DataNucleus with DB4O embedded
- DataNucleus with Derby server
- DataNucleus with H2 server
- DataNucleus with MySQL server
- DataNucleus with PostgreSQL server
- EclipseLink with Derby embedded
- EclipseLink with H2 embedded
- EclipseLink with HSQLDB embedded
- EclipseLink with SQLite embedded
- EclipseLink with Derby server
- EclipseLink with H2 server
- EclipseLink with MySQL server
- EclipseLink with PostgreSQL server
- Hibernate with Derby embedded
- Hibernate with H2 embedded
- Hibernate with HSQLDB embedded
- Hibernate with SQLite embedded
- Hibernate with Derby server
- Hibernate with H2 server
- Hibernate with MySQL server
- Hibernate with PostgreSQL server
- OpenJPA with Derby embedded
- OpenJPA with H2 embedded
- OpenJPA with HSQLDB embedded
- OpenJPA with Derby server
- OpenJPA with H2 server
- OpenJPA with MySQL server
- OpenJPA with PostgreSQL server
- ObjectDB embedded