Comparison of OpenJPA with H2 embedded 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 | |||
---|---|---|---|---|---|---|
  | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server |
Basic Person Test | 17.1 | 35.2 | 5.8 | 74.1 | 11.5 | 54.7 |
Element Collection Test | 10.9 | 38.2 | 4.9 | 57.8 | 7.9 | 48.0 |
Inheritance Test | 14.3 | 32.7 | 5.9 | 72.8 | 10.1 | 52.7 |
Indexing Test | 24.4 | 49.9 | 13.7 | 90.1 | 19.1 | 70.0 |
Graph (Binary Tree) Test | 6.8 | 100 | 6.7 | 89.2 | 6.7 | 94.6 |
Multithreading Test | 34.2 | 76.6 | 10.2 | 99.4 | 22.2 | 88.0 |
All Tests | 17.9 | 55.4 | 7.9 | 80.6 | 12.9 | 68.0 |
The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 embedded in persisting JPA entity objects to the database. Comparing the normalized speed of OpenJPA with H2 embedded database (12.9) to the normalized speed of ObjectDB database server (68.0) reveals that in these tests, ObjectDB server is 5.3 times faster than OpenJPA with H2 embedded.
A huge performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of OpenJPA with H2 embedded database (6.8) to the normalized speed of ObjectDB database server (100) reveals that in that case, ObjectDB server is 14.7 times faster than OpenJPA with H2 embedded.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server |
Basic Person Test | 14.6 | 15.7 | 27.2 | 45.4 | 20.9 | 30.5 |
Element Collection Test | 0.0046 | 19.9 | 4.3 | 49.2 | 2.1 | 34.6 |
Inheritance Test | 0.011 | 13.2 | 7.4 | 49.4 | 3.7 | 31.3 |
Indexing Test | 17.0 | 14.0 | 35.0 | 59.5 | 26.0 | 36.8 |
Graph (Binary Tree) Test | 1.0 | 19.9 | 1.4 | 24.7 | 1.2 | 22.3 |
Multithreading Test | 18.7 | 19.7 | 27.6 | 60.2 | 23.1 | 40.0 |
All Tests | 8.6 | 17.1 | 17.1 | 48.1 | 12.8 | 32.6 |
The results above show that in general ObjectDB server is more efficient than OpenJPA with H2 embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of OpenJPA with H2 embedded database (12.8) to the normalized speed of ObjectDB database server (32.6) reveals that in these tests, ObjectDB server is 2.5 times faster than OpenJPA with H2 embedded.
A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.0046) to the normalized speed of ObjectDB database server (19.9) reveals that in that case, ObjectDB server is 4,326 times faster than OpenJPA with H2 embedded.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server |
Basic Person Test | 5.0 | 38.8 | 1.1 | 25.9 | 3.1 | 32.4 |
Element Collection Test | 1.7 | 39.5 | 1.3 | 33.1 | 1.5 | 36.3 |
Inheritance Test | 2.2 | 34.8 | 1.2 | 34.0 | 1.7 | 34.4 |
Indexing Test | 13.8 | 14.5 | 23.2 | 53.3 | 18.5 | 33.9 |
Multithreading Test | 1.4 | 50.8 | 0.60 | 52.1 | 0.99 | 51.5 |
All Tests | 4.8 | 35.7 | 5.5 | 39.7 | 5.1 | 37.7 |
The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 embedded in executing the tested JPA queries. Comparing the normalized speed of OpenJPA with H2 embedded database (5.1) to the normalized speed of ObjectDB database server (37.7) reveals that in these tests, ObjectDB server is 7.4 times faster than OpenJPA with H2 embedded.
A huge performance gap has been detected when using multithreading with large retrieval size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.60) to the normalized speed of ObjectDB database server (52.1) reveals that in that case, ObjectDB server is 86.8 times faster than OpenJPA with H2 embedded.
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server |
Basic Person Test | 10.0 | 18.3 | 6.0 | 40.9 | 8.0 | 29.6 |
Element Collection Test | 0.011 | 21.1 | 3.8 | 53.7 | 1.9 | 37.4 |
Inheritance Test | 0.046 | 19.9 | 5.0 | 51.9 | 2.5 | 35.9 |
Indexing Test | 8.9 | 17.9 | 7.0 | 52.1 | 8.0 | 35.0 |
Graph (Binary Tree) Test | 2.4 | 42.6 | 1.3 | 24.1 | 1.9 | 33.3 |
Multithreading Test | 16.6 | 68.6 | 4.3 | 68.7 | 10.4 | 68.6 |
All Tests | 6.3 | 31.4 | 4.6 | 48.6 | 5.4 | 40.0 |
The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 embedded in updating JPA entity objects in the database. Comparing the normalized speed of OpenJPA with H2 embedded database (5.4) to the normalized speed of ObjectDB database server (40.0) reveals that in these tests, ObjectDB server is 7.4 times faster than OpenJPA with H2 embedded.
A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.011) to the normalized speed of ObjectDB database server (21.1) reveals that in that case, ObjectDB server is 1,918 times faster than OpenJPA with H2 embedded.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server |
Basic Person Test | 18.3 | 20.2 | 11.1 | 67.7 | 14.7 | 44.0 |
Element Collection Test | 0.012 | 22.9 | 2.9 | 57.6 | 1.4 | 40.2 |
Inheritance Test | 0.030 | 23.1 | 6.6 | 61.6 | 3.3 | 42.3 |
Indexing Test | 23.2 | 34.9 | 9.7 | 55.9 | 16.4 | 45.4 |
Graph (Binary Tree) Test | 1.8 | 19.3 | 2.4 | 27.9 | 2.1 | 23.6 |
Multithreading Test | 31.2 | 38.5 | 17.3 | 50.5 | 24.2 | 44.5 |
All Tests | 12.4 | 26.5 | 8.3 | 53.5 | 10.4 | 40.0 |
The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 embedded in deleting JPA entity objects from the database. Comparing the normalized speed of OpenJPA with H2 embedded database (10.4) to the normalized speed of ObjectDB database server (40.0) reveals that in these tests, ObjectDB server is 3.8 times faster than OpenJPA with H2 embedded.
A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.012) to the normalized speed of ObjectDB database server (22.9) reveals that in that case, ObjectDB server is 1,908 times faster than OpenJPA with H2 embedded.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server | OpenJPA H2 embedded | ObjectDB server |
Basic Person Test | 13.0 | 25.6 | 10.2 | 50.8 | 11.6 | 38.2 |
Element Collection Test | 2.5 | 28.3 | 3.4 | 50.3 | 3.0 | 39.3 |
Inheritance Test | 3.3 | 24.7 | 5.2 | 53.9 | 4.3 | 39.3 |
Indexing Test | 17.5 | 26.2 | 17.7 | 62.2 | 17.6 | 44.2 |
Graph (Binary Tree) Test | 3.0 | 45.4 | 3.0 | 41.5 | 3.0 | 43.5 |
Multithreading Test | 20.4 | 50.8 | 12.0 | 66.2 | 16.2 | 58.5 |
All Tests | 10.2 | 33.1 | 8.8 | 54.6 | 9.5 | 43.9 |
The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 embedded in performing JPA database operations. Comparing the normalized speed of OpenJPA with H2 embedded database (9.5) to the normalized speed of ObjectDB database server (43.9) reveals that in these tests, ObjectDB server is 4.6 times faster than OpenJPA with H2 embedded.
A huge performance gap has been detected when using graphs of objects with small transaction/retrieval size. Comparing the normalized speed of OpenJPA with H2 embedded database (3.0) to the normalized speed of ObjectDB database server (45.4) reveals that in that case, ObjectDB server is 15.1 times faster than OpenJPA with H2 embedded.
Other Head to Head DBMS/JPA Comparisons
OpenJPA with H2 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 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