Comparison of OpenJPA with Derby server vs DataNucleus 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 Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded |
Basic Person Test | 3.1 | 14.2 | 2.7 | 4.8 | 2.9 | 9.5 |
Element Collection Test | 2.0 | 6.6 | 1.7 | 2.1 | 1.8 | 4.3 |
Inheritance Test | 3.0 | 13.6 | 2.3 | 4.6 | 2.6 | 9.1 |
Indexing Test | 4.7 | 24.6 | 4.1 | 11.1 | 4.4 | 17.8 |
Graph (Binary Tree) Test | 0.71 | 6.8 | 0.64 | 4.5 | 0.67 | 5.7 |
Multithreading Test | 6.0 | 38.5 | 3.8 | 8.5 | 4.9 | 23.5 |
All Tests | 3.3 | 17.4 | 2.5 | 5.9 | 2.9 | 11.7 |
The results above show that in general DataNucleus with HSQLDB embedded is much more efficient than OpenJPA with Derby server in persisting JPA entity objects to the database. Comparing the normalized speed of OpenJPA with Derby database server (2.9) to the normalized speed of DataNucleus with HSQLDB embedded database (11.7) reveals that in these tests, DataNucleus with HSQLDB embedded is 4.0 times faster than OpenJPA with Derby server.
A large performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of OpenJPA with Derby database server (0.71) to the normalized speed of DataNucleus with HSQLDB embedded database (6.8) reveals that in that case, DataNucleus with HSQLDB embedded is 9.6 times faster than OpenJPA with Derby server.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded |
Basic Person Test | 0.78 | 6.6 | 11.6 | 10.2 | 6.2 | 8.4 |
Element Collection Test | 0.0024 | 3.6 | 1.1 | 8.1 | 0.54 | 5.8 |
Inheritance Test | 0.014 | 5.7 | 5.0 | 8.8 | 2.5 | 7.2 |
Indexing Test | 0.62 | 5.1 | 13.0 | 9.5 | 6.8 | 7.3 |
Graph (Binary Tree) Test | 0.065 | 7.2 | 0.39 | 9.3 | 0.23 | 8.3 |
Multithreading Test | 1.6 | 8.1 | 19.0 | 9.5 | 10.3 | 8.8 |
All Tests | 0.51 | 6.0 | 8.4 | 9.2 | 4.4 | 7.6 |
The results above show that in general DataNucleus with HSQLDB embedded is more efficient than OpenJPA with Derby server in retrieving JPA entity objects from the database.
A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with Derby database server (0.0024) to the normalized speed of DataNucleus with HSQLDB embedded database (3.6) reveals that in that case, DataNucleus with HSQLDB embedded is 1,500 times faster than OpenJPA with Derby server.
On the other hand, DataNucleus with HSQLDB embedded is slower, for instance, when using multithreading with large retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (9.5) to the normalized speed of OpenJPA with Derby database server (19.0) reveals that in that case, DataNucleus with HSQLDB embedded is 2.0 times slower than OpenJPA with Derby server.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded |
Basic Person Test | 29.2 | 1.4 | 5.5 | 0.48 | 17.3 | 0.95 |
Element Collection Test | 2.2 | 1.3 | 1.4 | 0.67 | 1.8 | 1.0 |
Inheritance Test | 2.2 | 1.6 | 1.0 | 0.61 | 1.6 | 1.1 |
Indexing Test | 2.2 | 0.0016 | 11.7 | 0.63 | 7.0 | 0.32 |
Multithreading Test | 35.5 | 0.40 | 8.3 | failed | 21.9 | 0.40 |
All Tests | 14.3 | 0.96 | 5.6 | 0.60 | 9.9 | 0.80 |
DataNucleus with HSQLDB embedded has failed in 1 tests (see exceptions).
The results above show that in general OpenJPA with Derby server is much more efficient than DataNucleus with HSQLDB embedded in executing the tested JPA queries. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (0.80) to the normalized speed of OpenJPA with Derby database server (9.9) reveals that in these tests, OpenJPA with Derby server is 12.4 times faster than DataNucleus with HSQLDB embedded.
A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (0.0016) to the normalized speed of OpenJPA with Derby database server (2.2) reveals that in that case, OpenJPA with Derby server is 1,375 times faster than DataNucleus with HSQLDB embedded.
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded |
Basic Person Test | 1.5 | 11.5 | 4.0 | 2.7 | 2.8 | 7.1 |
Element Collection Test | 0.0081 | 6.9 | 1.9 | 2.7 | 0.94 | 4.8 |
Inheritance Test | 0.043 | 10.3 | 3.8 | 3.6 | 1.9 | 6.9 |
Indexing Test | 1.8 | 11.4 | 6.8 | 4.4 | 4.3 | 7.9 |
Graph (Binary Tree) Test | 0.16 | 3.5 | 0.27 | 1.5 | 0.22 | 2.5 |
Multithreading Test | 6.9 | failed | 5.0 | failed | 5.9 | failed |
All Tests | 1.7 | 8.7 | 3.6 | 3.0 | 2.7 | 5.8 |
DataNucleus with HSQLDB embedded has failed in 2 tests (see exceptions).
The results above show that in general DataNucleus with HSQLDB embedded is more efficient than OpenJPA with Derby server in updating JPA entity objects in the database. Comparing the normalized speed of OpenJPA with Derby database server (2.7) to the normalized speed of DataNucleus with HSQLDB embedded database (5.8) reveals that in these tests, DataNucleus with HSQLDB embedded is 2.1 times faster than OpenJPA with Derby server.
A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with Derby database server (0.0081) to the normalized speed of DataNucleus with HSQLDB embedded database (6.9) reveals that in that case, DataNucleus with HSQLDB embedded is 852 times faster than OpenJPA with Derby server.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded |
Basic Person Test | 1.4 | 4.2 | 3.7 | 1.3 | 2.5 | 2.8 |
Element Collection Test | 0.0082 | 4.9 | 1.4 | 1.6 | 0.71 | 3.2 |
Inheritance Test | 0.035 | 4.0 | 2.5 | 1.3 | 1.3 | 2.7 |
Indexing Test | 2.3 | 7.5 | 3.5 | 1.9 | 2.9 | 4.7 |
Graph (Binary Tree) Test | 0.13 | 2.9 | 0.35 | 2.0 | 0.24 | 2.5 |
Multithreading Test | 3.6 | 40.1 | 4.0 | 13.7 | 3.8 | 26.9 |
All Tests | 1.3 | 10.6 | 2.6 | 3.7 | 1.9 | 7.1 |
The results above show that in general DataNucleus with HSQLDB embedded is much more efficient than OpenJPA with Derby server in deleting JPA entity objects from the database. Comparing the normalized speed of OpenJPA with Derby database server (1.9) to the normalized speed of DataNucleus with HSQLDB embedded database (7.1) reveals that in these tests, DataNucleus with HSQLDB embedded is 3.7 times faster than OpenJPA with Derby server.
A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with Derby database server (0.0082) to the normalized speed of DataNucleus with HSQLDB embedded database (4.9) reveals that in that case, DataNucleus with HSQLDB embedded is 598 times faster than OpenJPA with Derby server.
On the other hand, DataNucleus with HSQLDB embedded is slower, for instance, when using simple basic entities with large transaction size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (1.3) to the normalized speed of OpenJPA with Derby database server (3.7) reveals that in that case, DataNucleus with HSQLDB embedded is 2.8 times slower than OpenJPA with Derby server.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded | OpenJPA Derby server | DataNucleus HSQLDB embedded |
Basic Person Test | 7.2 | 7.6 | 5.5 | 3.9 | 6.4 | 5.7 |
Element Collection Test | 0.84 | 4.7 | 1.5 | 3.0 | 1.2 | 3.8 |
Inheritance Test | 1.1 | 7.1 | 2.9 | 3.8 | 2.0 | 5.4 |
Indexing Test | 2.3 | 9.7 | 7.8 | 5.5 | 5.1 | 7.6 |
Graph (Binary Tree) Test | 0.27 | 5.1 | 0.41 | 4.3 | 0.34 | 4.7 |
Multithreading Test | 10.7 | 21.8 | 8.0 | 10.6 | 9.4 | 17.0 |
All Tests | 3.9 | 9.0 | 4.5 | 4.8 | 4.2 | 7.0 |
The results above show that in general DataNucleus with HSQLDB embedded is more efficient than OpenJPA with Derby server in performing JPA database operations.
A huge performance gap has been detected when using graphs of objects with small transaction/retrieval size. Comparing the normalized speed of OpenJPA with Derby database server (0.27) to the normalized speed of DataNucleus with HSQLDB embedded database (5.1) reveals that in that case, DataNucleus with HSQLDB embedded is 18.9 times faster than OpenJPA with Derby server.
Other Head to Head DBMS/JPA Comparisons
OpenJPA with Derby 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 H2 server
- OpenJPA with MySQL server
- OpenJPA with PostgreSQL server
- ObjectDB embedded
- ObjectDB server
DataNucleus with HSQLDB embedded against:
- Oracle Database 11g
- IBM DB2 10
- Microsoft SQL Server 2008
- DataNucleus with Derby embedded
- DataNucleus with H2 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
- ObjectDB server