Comparison of OpenJPA with HSQLDB embedded vs EclipseLink with HSQLDB 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 | |||
---|---|---|---|---|---|---|
  | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded |
Basic Person Test | 13.3 | 27.1 | 6.9 | 17.2 | 10.1 | 22.2 |
Element Collection Test | 8.6 | 17.2 | 5.3 | 8.2 | 7.0 | 12.7 |
Inheritance Test | 12.2 | 26.7 | 5.8 | 11.9 | 9.0 | 19.3 |
Indexing Test | 16.7 | 30.6 | 9.1 | 18.6 | 12.9 | 24.6 |
Graph (Binary Tree) Test | 6.1 | 20.0 | 7.3 | 15.9 | 6.7 | 18.0 |
Multithreading Test | 26.8 | 32.5 | 7.0 | 11.4 | 16.9 | 22.0 |
All Tests | 13.9 | 25.7 | 6.9 | 13.9 | 10.4 | 19.8 |
The results above show that in general EclipseLink with HSQLDB embedded is more efficient than OpenJPA with HSQLDB embedded in persisting JPA entity objects to the database.
A large performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (6.1) to the normalized speed of EclipseLink with HSQLDB embedded database (20.0) reveals that in that case, EclipseLink with HSQLDB embedded is 3.3 times faster than OpenJPA with HSQLDB embedded.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded |
Basic Person Test | 21.8 | 24.4 | 30.1 | 36.0 | 25.9 | 30.2 |
Element Collection Test | 0.0068 | 14.9 | 4.5 | 19.1 | 2.2 | 17.0 |
Inheritance Test | 0.0025 | 22.8 | 2.0 | 40.0 | 0.98 | 31.4 |
Indexing Test | 22.1 | 20.7 | 43.6 | 38.7 | 32.9 | 29.7 |
Graph (Binary Tree) Test | 2.1 | 8.7 | 2.1 | 14.2 | 2.1 | 11.4 |
Multithreading Test | 20.9 | 24.2 | 23.5 | 28.0 | 22.2 | 26.1 |
All Tests | 11.1 | 19.3 | 17.6 | 29.3 | 14.4 | 24.3 |
The results above show that in general EclipseLink with HSQLDB embedded is more efficient than OpenJPA with HSQLDB embedded in retrieving JPA entity objects from the database.
A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (0.0025) to the normalized speed of EclipseLink with HSQLDB embedded database (22.8) reveals that in that case, EclipseLink with HSQLDB embedded is 9,120 times faster than OpenJPA with HSQLDB embedded.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded |
Basic Person Test | 2.8 | 2.9 | 0.91 | 0.88 | 1.9 | 1.9 |
Element Collection Test | 1.4 | 3.2 | 0.95 | 1.4 | 1.2 | 2.3 |
Inheritance Test | 2.4 | 2.6 | 1.3 | 1.1 | 1.8 | 1.9 |
Indexing Test | 15.4 | 21.5 | 34.3 | 33.3 | 24.9 | 27.4 |
Multithreading Test | 1.4 | 1.1 | 0.53 | 0.52 | 0.95 | 0.82 |
All Tests | 4.7 | 6.3 | 7.6 | 7.4 | 6.1 | 6.9 |
The results above show that in general EclipseLink with HSQLDB embedded is slightly more efficient than OpenJPA with HSQLDB embedded in executing the tested JPA queries.
A large performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (1.4) to the normalized speed of EclipseLink with HSQLDB embedded database (3.2) reveals that in that case, EclipseLink with HSQLDB embedded is 2.3 times faster than OpenJPA with HSQLDB embedded.
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded |
Basic Person Test | 12.0 | 17.9 | 5.3 | 7.0 | 8.6 | 12.5 |
Element Collection Test | 0.017 | 14.6 | 3.7 | 8.3 | 1.8 | 11.4 |
Inheritance Test | 0.0098 | 16.2 | 2.0 | 9.7 | 0.99 | 13.0 |
Indexing Test | 9.3 | 12.0 | 5.5 | 6.8 | 7.4 | 9.4 |
Graph (Binary Tree) Test | 2.5 | 4.7 | 1.6 | 3.4 | 2.1 | 4.0 |
Multithreading Test | 20.0 | 24.4 | 3.7 | 4.4 | 11.8 | 14.4 |
All Tests | 7.3 | 15.0 | 3.6 | 6.6 | 5.5 | 10.8 |
The results above show that in general EclipseLink with HSQLDB embedded is more efficient than OpenJPA with HSQLDB embedded in updating JPA entity objects in the database.
A huge performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (0.0098) to the normalized speed of EclipseLink with HSQLDB embedded database (16.2) reveals that in that case, EclipseLink with HSQLDB embedded is 1,653 times faster than OpenJPA with HSQLDB embedded.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded |
Basic Person Test | 21.3 | 32.3 | 15.7 | 20.3 | 18.5 | 26.3 |
Element Collection Test | 0.011 | 14.3 | 2.9 | 6.0 | 1.5 | 10.2 |
Inheritance Test | 0.0070 | 29.2 | 3.5 | 23.9 | 1.8 | 26.6 |
Indexing Test | 28.8 | 55.3 | 15.2 | 27.1 | 22.0 | 41.2 |
Graph (Binary Tree) Test | 2.9 | 6.8 | 3.6 | 14.1 | 3.2 | 10.4 |
Multithreading Test | 26.0 | 52.9 | 19.6 | 28.4 | 22.8 | 40.6 |
All Tests | 13.2 | 31.8 | 10.1 | 20.0 | 11.6 | 25.9 |
The results above show that in general EclipseLink with HSQLDB embedded is more efficient than OpenJPA with HSQLDB embedded in deleting JPA entity objects from the database. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (11.6) to the normalized speed of EclipseLink with HSQLDB embedded database (25.9) reveals that in these tests, EclipseLink with HSQLDB embedded is 2.2 times faster than OpenJPA with HSQLDB 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 OpenJPA with HSQLDB embedded database (0.0070) to the normalized speed of EclipseLink with HSQLDB embedded database (29.2) reveals that in that case, EclipseLink with HSQLDB embedded is 4,171 times faster than OpenJPA with HSQLDB embedded.
Comparison of database storage efficiency (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded |
Basic Person Test | 41.4 | 41.4 | 41.4 | 41.4 | 41.4 | 41.4 |
Element Collection Test | 46.9 | 46.9 | 46.9 | 46.9 | 46.9 | 46.9 |
Inheritance Test | 41.4 | 41.4 | 41.4 | 41.4 | 41.4 | 41.4 |
Indexing Test | 48.4 | 48.4 | 49.2 | 49.2 | 48.8 | 48.8 |
Graph (Binary Tree) Test | 28.5 | 28.5 | 21.4 | 21.4 | 25.0 | 25.0 |
Multithreading Test | 51.9 | 51.9 | 10.3 | 10.3 | 31.1 | 31.1 |
All Tests | 43.1 | 43.1 | 35.1 | 35.1 | 39.1 | 39.1 |
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded | OpenJPA HSQLDB embedded | EclipseLink HSQLDB embedded |
Basic Person Test | 14.3 | 20.9 | 11.8 | 16.3 | 13.0 | 18.6 |
Element Collection Test | 2.0 | 12.8 | 3.5 | 8.6 | 2.7 | 10.7 |
Inheritance Test | 2.9 | 19.5 | 2.9 | 17.3 | 2.9 | 18.4 |
Indexing Test | 18.5 | 28.0 | 21.6 | 24.9 | 20.0 | 26.5 |
Graph (Binary Tree) Test | 3.4 | 10.0 | 3.7 | 11.9 | 3.5 | 11.0 |
Multithreading Test | 19.0 | 27.0 | 10.9 | 14.6 | 14.9 | 20.8 |
All Tests | 10.2 | 20.1 | 9.2 | 15.7 | 9.7 | 17.9 |
The results above show that in general EclipseLink with HSQLDB embedded is more efficient than OpenJPA with HSQLDB embedded in performing JPA database operations.
A large performance gap has been detected when using class inheritance in the object model with small transaction/retrieval size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (2.9) to the normalized speed of EclipseLink with HSQLDB embedded database (19.5) reveals that in that case, EclipseLink with HSQLDB embedded is 6.7 times faster than OpenJPA with HSQLDB embedded.
Other Head to Head DBMS/JPA Comparisons
OpenJPA with HSQLDB 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 Derby server
- OpenJPA with H2 server
- OpenJPA with MySQL server
- OpenJPA with PostgreSQL server
- ObjectDB embedded
- ObjectDB server
EclipseLink with HSQLDB 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 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