Comparison of Hibernate with Derby embedded 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 Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded |
Basic Person Test | 5.9 | 100 | 3.8 | 100 | 4.9 | 100 |
Element Collection Test | 2.9 | 100 | 1.8 | 100 | 2.3 | 100 |
Inheritance Test | 5.3 | 100 | 3.7 | 100 | 4.5 | 100 |
Indexing Test | 7.0 | 100 | 4.8 | 100 | 5.9 | 100 |
Graph (Binary Tree) Test | 1.9 | 88.4 | 1.7 | 100 | 1.8 | 94.2 |
Multithreading Test | 10.5 | 100 | 3.7 | 100 | 7.1 | 100 |
All Tests | 5.6 | 98.1 | 3.3 | 100 | 4.4 | 99.0 |
The results above show that in general ObjectDB embedded is much more efficient than Hibernate with Derby embedded in persisting JPA entity objects to the database. Comparing the normalized speed of Hibernate with Derby embedded database (4.4) to the normalized speed of ObjectDB embedded database (99.0) reveals that in these tests, ObjectDB embedded is 22.5 times faster than Hibernate with Derby embedded.
A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of Hibernate with Derby embedded database (1.7) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 58.8 times faster than Hibernate with Derby embedded.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded |
Basic Person Test | 14.2 | 100 | 16.4 | 100 | 15.3 | 100 |
Element Collection Test | 4.4 | 100 | 4.9 | 100 | 4.6 | 100 |
Inheritance Test | 10.3 | 100 | 18.6 | 100 | 14.4 | 100 |
Indexing Test | 10.0 | 100 | 16.4 | 100 | 13.2 | 100 |
Graph (Binary Tree) Test | 2.6 | 100 | 3.0 | 100 | 2.8 | 100 |
Multithreading Test | 19.3 | 100 | 19.3 | 100 | 19.3 | 100 |
All Tests | 10.1 | 100 | 13.1 | 100 | 11.6 | 100 |
The results above show that in general ObjectDB embedded is much more efficient than Hibernate with Derby embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of Hibernate with Derby embedded database (11.6) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 8.6 times faster than Hibernate with Derby embedded.
A huge performance gap has been detected when using graphs of objects with small retrieval size. Comparing the normalized speed of Hibernate with Derby embedded database (2.6) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 38.5 times faster than Hibernate with Derby embedded.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded |
Basic Person Test | 49.3 | 100 | 6.8 | 100 | 28.1 | 100 |
Element Collection Test | 37.6 | 100 | 2.7 | 100 | 20.1 | 100 |
Inheritance Test | 24.1 | 100 | 7.6 | 100 | 15.9 | 100 |
Indexing Test | 5.3 | 100 | 14.8 | 100 | 10.1 | 100 |
Multithreading Test | 39.7 | 100 | 6.1 | 100 | 22.9 | 100 |
All Tests | 31.2 | 100 | 7.6 | 100 | 19.4 | 100 |
The results above show that in general ObjectDB embedded is much more efficient than Hibernate with Derby embedded in executing the tested JPA queries. Comparing the normalized speed of Hibernate with Derby embedded database (19.4) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 5.2 times faster than Hibernate with Derby embedded.
A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of Hibernate with Derby embedded database (2.7) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 37.0 times faster than Hibernate with Derby embedded.
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded |
Basic Person Test | 4.5 | 100 | 3.2 | 100 | 3.8 | 100 |
Element Collection Test | 3.9 | 100 | 3.1 | 100 | 3.5 | 100 |
Inheritance Test | 4.6 | 100 | 4.5 | 100 | 4.5 | 100 |
Indexing Test | 4.6 | 100 | 5.5 | 100 | 5.1 | 100 |
Graph (Binary Tree) Test | 2.7 | 100 | 1.2 | 100 | 2.0 | 100 |
Multithreading Test | 11.6 | 100 | 2.6 | 100 | 7.1 | 100 |
All Tests | 5.3 | 100 | 3.3 | 100 | 4.3 | 100 |
The results above show that in general ObjectDB embedded is much more efficient than Hibernate with Derby embedded in updating JPA entity objects in the database. Comparing the normalized speed of Hibernate with Derby embedded database (4.3) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 23.3 times faster than Hibernate with Derby embedded.
A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of Hibernate with Derby embedded database (1.2) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 83.3 times faster than Hibernate with Derby embedded.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded |
Basic Person Test | 3.8 | 100 | 4.2 | 100 | 4.0 | 100 |
Element Collection Test | 2.3 | 100 | 1.5 | 100 | 1.9 | 100 |
Inheritance Test | 4.0 | 100 | 4.3 | 100 | 4.2 | 100 |
Indexing Test | 5.5 | 100 | 3.6 | 100 | 4.6 | 100 |
Graph (Binary Tree) Test | 0.74 | 100 | 0.96 | 100 | 0.85 | 100 |
Multithreading Test | 5.6 | 100 | 4.9 | 100 | 5.3 | 100 |
All Tests | 3.7 | 100 | 3.3 | 100 | 3.5 | 100 |
The results above show that in general ObjectDB embedded is much more efficient than Hibernate with Derby embedded in deleting JPA entity objects from the database. Comparing the normalized speed of Hibernate with Derby embedded database (3.5) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 28.6 times faster than Hibernate with Derby embedded.
A huge performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of Hibernate with Derby embedded database (0.74) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 135 times faster than Hibernate with Derby embedded.
Comparison of database storage efficiency (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded |
Basic Person Test | 52.7 | 100 | 52.7 | 100 | 52.7 | 100 |
Element Collection Test | 42.3 | 100 | 42.3 | 100 | 42.3 | 100 |
Inheritance Test | 49.2 | 100 | 49.2 | 100 | 49.2 | 100 |
Indexing Test | 53.0 | 100 | 53.9 | 100 | 53.4 | 100 |
Graph (Binary Tree) Test | 13.1 | 100 | 9.8 | 100 | 11.5 | 100 |
Multithreading Test | 49.3 | 91.1 | 8.8 | 22.0 | 29.0 | 56.6 |
All Tests | 43.3 | 98.5 | 36.1 | 87.0 | 39.7 | 92.8 |
The results above show that in general ObjectDB embedded is more efficient than Hibernate with Derby embedded in using disk space. Comparing the normalized score of Hibernate with Derby embedded database (39.7) to the normalized score of ObjectDB embedded database (92.8) reveals that in these tests, ObjectDB embedded is 2.3 times more efficient than Hibernate with Derby embedded.
A huge gap has been detected when using graphs of objects with large transaction size. Comparing the normalized score of Hibernate with Derby embedded database (9.8) to the normalized score of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 10.2 times more efficient than Hibernate with Derby embedded.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded | Hibernate Derby embedded | ObjectDB embedded |
Basic Person Test | 15.5 | 100 | 6.9 | 100 | 11.2 | 100 |
Element Collection Test | 10.2 | 100 | 2.8 | 100 | 6.5 | 100 |
Inheritance Test | 9.7 | 100 | 7.7 | 100 | 8.7 | 100 |
Indexing Test | 6.5 | 100 | 9.0 | 100 | 7.8 | 100 |
Graph (Binary Tree) Test | 2.0 | 97.1 | 1.7 | 100 | 1.8 | 98.5 |
Multithreading Test | 17.3 | 100 | 7.3 | 100 | 12.3 | 100 |
All Tests | 10.5 | 99.6 | 6.1 | 100 | 8.3 | 99.8 |
The results above show that in general ObjectDB embedded is much more efficient than Hibernate with Derby embedded in performing JPA database operations. Comparing the normalized speed of Hibernate with Derby embedded database (8.3) to the normalized speed of ObjectDB embedded database (99.8) reveals that in these tests, ObjectDB embedded is 12.0 times faster than Hibernate with Derby embedded.
A huge performance gap has been detected when using graphs of objects with large transaction/retrieval size. Comparing the normalized speed of Hibernate with Derby embedded database (1.7) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 58.8 times faster than Hibernate with Derby embedded.
Other Head to Head DBMS/JPA Comparisons
Hibernate with Derby embedded 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 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
- ObjectDB server
ObjectDB embedded 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 server