Comparison of DataNucleus with DB4O embedded vs Hibernate with H2 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server |
Basic Person Test | 0.059 | 4.6 | 1.3 | 3.0 | 0.69 | 3.8 |
Element Collection Test | 0.045 | 3.7 | 1.0 | 1.1 | 0.52 | 2.4 |
Inheritance Test | 0.051 | 6.7 | 0.85 | 3.1 | 0.45 | 4.9 |
Indexing Test | 0.080 | 8.2 | 2.3 | 4.2 | 1.2 | 6.2 |
Graph (Binary Tree) Test | failed | 3.4 | failed | 3.9 | failed | 3.7 |
Multithreading Test | failed | 6.8 | failed | 5.0 | failed | 5.9 |
All Tests | 0.059 | 5.6 | 1.4 | 3.4 | 0.71 | 4.5 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general Hibernate with H2 server is much more efficient than DataNucleus with DB4O embedded in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.71) to the normalized speed of Hibernate with H2 database server (4.5) reveals that in these tests, Hibernate with H2 server is 6.3 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.051) to the normalized speed of Hibernate with H2 database server (6.7) reveals that in that case, Hibernate with H2 server is 131 times faster than DataNucleus with DB4O embedded.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server |
Basic Person Test | 0.0047 | 3.1 | 1.8 | 6.0 | 0.90 | 4.6 |
Element Collection Test | 0.0038 | 1.0 | 1.5 | 1.1 | 0.77 | 1.0 |
Inheritance Test | 0.0035 | 2.9 | 2.2 | 7.6 | 1.1 | 5.2 |
Indexing Test | 0.0043 | 2.6 | 1.8 | 7.0 | 0.89 | 4.8 |
Graph (Binary Tree) Test | failed | 0.42 | failed | 1.1 | failed | 0.78 |
Multithreading Test | failed | 6.5 | failed | 10.5 | failed | 8.5 |
All Tests | 0.0041 | 2.8 | 1.8 | 5.6 | 0.91 | 4.2 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general Hibernate with H2 server is much more efficient than DataNucleus with DB4O embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.91) to the normalized speed of Hibernate with H2 database server (4.2) reveals that in these tests, Hibernate with H2 server is 4.6 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0035) to the normalized speed of Hibernate with H2 database server (2.9) reveals that in that case, Hibernate with H2 server is 829 times faster than DataNucleus with DB4O embedded.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server |
Basic Person Test | failed | 3.7 | failed | 1.0 | failed | 2.3 |
Element Collection Test | failed | 3.7 | failed | 0.63 | failed | 2.2 |
Inheritance Test | failed | 3.2 | failed | 1.4 | failed | 2.3 |
Indexing Test | failed | 1.7 | failed | 5.8 | failed | 3.8 |
Multithreading Test | failed | 1.1 | failed | 0.88 | failed | 1.0 |
All Tests | failed | 2.7 | failed | 1.9 | failed | 2.3 |
DataNucleus with DB4O embedded has failed in 10 tests (see exceptions).
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server |
Basic Person Test | 0.012 | 2.9 | 0.76 | 1.8 | 0.39 | 2.4 |
Element Collection Test | 0.012 | 2.6 | 1.1 | 1.1 | 0.53 | 1.9 |
Inheritance Test | 0.011 | 3.2 | 0.81 | 2.5 | 0.41 | 2.9 |
Indexing Test | 0.011 | 2.9 | 1.3 | 2.7 | 0.64 | 2.8 |
Graph (Binary Tree) Test | failed | 1.2 | failed | 0.43 | failed | 0.79 |
Multithreading Test | failed | 5.6 | failed | 2.4 | failed | 4.0 |
All Tests | 0.012 | 3.1 | 0.97 | 1.8 | 0.49 | 2.5 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general Hibernate with H2 server is much more efficient than DataNucleus with DB4O embedded in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.49) to the normalized speed of Hibernate with H2 database server (2.5) reveals that in these tests, Hibernate with H2 server is 5.1 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.011) to the normalized speed of Hibernate with H2 database server (3.2) reveals that in that case, Hibernate with H2 server is 291 times faster than DataNucleus with DB4O embedded.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server |
Basic Person Test | 0.011 | 3.8 | 1.5 | 2.4 | 0.74 | 3.1 |
Element Collection Test | 0.010 | 1.9 | 1.6 | 1.1 | 0.80 | 1.5 |
Inheritance Test | 0.0093 | 3.7 | 1.1 | 2.5 | 0.57 | 3.1 |
Indexing Test | 0.017 | 7.6 | 2.1 | 3.1 | 1.1 | 5.3 |
Graph (Binary Tree) Test | failed | 0.99 | failed | 0.91 | failed | 0.95 |
Multithreading Test | failed | 6.1 | failed | 7.3 | failed | 6.7 |
All Tests | 0.012 | 4.0 | 1.6 | 2.9 | 0.79 | 3.5 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general Hibernate with H2 server is much more efficient than DataNucleus with DB4O embedded in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.79) to the normalized speed of Hibernate with H2 database server (3.5) reveals that in these tests, Hibernate with H2 server is 4.4 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.017) to the normalized speed of Hibernate with H2 database server (7.6) reveals that in that case, Hibernate with H2 server is 447 times faster than DataNucleus with DB4O embedded.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server | DataNucleus DB4O embedded | Hibernate H2 server |
Basic Person Test | 0.022 | 3.6 | 1.3 | 2.8 | 0.68 | 3.2 |
Element Collection Test | 0.018 | 2.6 | 1.3 | 1.0 | 0.66 | 1.8 |
Inheritance Test | 0.019 | 4.0 | 1.2 | 3.4 | 0.63 | 3.7 |
Indexing Test | 0.028 | 4.6 | 1.9 | 4.5 | 0.94 | 4.6 |
Graph (Binary Tree) Test | failed | 1.5 | failed | 1.6 | failed | 1.6 |
Multithreading Test | failed | 5.2 | failed | 5.2 | failed | 5.2 |
All Tests | 0.022 | 3.7 | 1.4 | 3.2 | 0.73 | 3.4 |
The results above show that in general Hibernate with H2 server is much more efficient than DataNucleus with DB4O embedded in performing JPA database operations. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.73) to the normalized speed of Hibernate with H2 database server (3.4) reveals that in these tests, Hibernate with H2 server is 4.7 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using class inheritance in the object model with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.019) to the normalized speed of Hibernate with H2 database server (4.0) reveals that in that case, Hibernate with H2 server is 211 times faster than DataNucleus with DB4O embedded.
Other Head to Head DBMS/JPA Comparisons
DataNucleus with DB4O 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 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
- ObjectDB server
Hibernate with H2 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 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