Comparison of DataNucleus with HSQLDB embedded vs EclipseLink with PostgreSQL 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 HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server |
Basic Person Test | 14.2 | 7.3 | 4.8 | 4.2 | 9.5 | 5.8 |
Element Collection Test | 6.6 | 3.1 | 2.1 | 1.9 | 4.3 | 2.5 |
Inheritance Test | 13.6 | 6.9 | 4.6 | 5.0 | 9.1 | 5.9 |
Indexing Test | 24.6 | 10.0 | 11.1 | 6.8 | 17.8 | 8.4 |
Graph (Binary Tree) Test | 6.8 | 3.5 | 4.5 | 3.3 | 5.7 | 3.4 |
Multithreading Test | 38.5 | 31.8 | 8.5 | 14.5 | 23.5 | 23.1 |
All Tests | 17.4 | 10.4 | 5.9 | 6.0 | 11.7 | 8.2 |
The results above show that in general DataNucleus with HSQLDB embedded is more efficient than EclipseLink with PostgreSQL server in persisting JPA entity objects to the database.
A large performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (10.0) to the normalized speed of DataNucleus with HSQLDB embedded database (24.6) reveals that in that case, DataNucleus with HSQLDB embedded is 2.5 times faster than EclipseLink with PostgreSQL server.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server |
Basic Person Test | 6.6 | 6.8 | 10.2 | 17.2 | 8.4 | 12.0 |
Element Collection Test | 3.6 | 0.026 | 8.1 | 0.020 | 5.8 | 0.023 |
Inheritance Test | 5.7 | 6.0 | 8.8 | 19.7 | 7.2 | 12.9 |
Indexing Test | 5.1 | 5.6 | 9.5 | 19.5 | 7.3 | 12.6 |
Graph (Binary Tree) Test | 7.2 | 0.47 | 9.3 | 0.61 | 8.3 | 0.54 |
Multithreading Test | 8.1 | 13.5 | 9.5 | 27.8 | 8.8 | 20.6 |
All Tests | 6.0 | 5.4 | 9.2 | 14.1 | 7.6 | 9.8 |
The results above show that in general EclipseLink with PostgreSQL server is slightly more efficient than DataNucleus with HSQLDB embedded in retrieving JPA entity objects from the database.
A large performance gap has been detected when using multithreading with large retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (9.5) to the normalized speed of EclipseLink with PostgreSQL database server (27.8) reveals that in that case, EclipseLink with PostgreSQL server is 2.9 times faster than DataNucleus with HSQLDB embedded.
On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.020) to the normalized speed of DataNucleus with HSQLDB embedded database (8.1) reveals that in that case, EclipseLink with PostgreSQL server is 405 times slower than DataNucleus with HSQLDB embedded.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server |
Basic Person Test | 1.4 | 55.5 | 0.48 | 7.8 | 0.95 | 31.6 |
Element Collection Test | 1.3 | 15.4 | 0.67 | 0.028 | 1.0 | 7.7 |
Inheritance Test | 1.6 | 54.9 | 0.61 | 11.5 | 1.1 | 33.2 |
Indexing Test | 0.0016 | 0.077 | 0.63 | 10.0 | 0.32 | 5.1 |
Multithreading Test | 0.40 | 55.3 | failed | 12.0 | 0.40 | 33.7 |
All Tests | 0.96 | 36.2 | 0.60 | 8.3 | 0.80 | 22.3 |
DataNucleus with HSQLDB embedded has failed in 1 tests (see exceptions).
The results above show that in general EclipseLink with PostgreSQL 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 EclipseLink with PostgreSQL database server (22.3) reveals that in these tests, EclipseLink with PostgreSQL server is 27.9 times faster than DataNucleus with HSQLDB embedded.
A huge performance gap has been detected when using multithreading with small retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (0.40) to the normalized speed of EclipseLink with PostgreSQL database server (55.3) reveals that in that case, EclipseLink with PostgreSQL server is 138 times faster than DataNucleus with HSQLDB embedded.
On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.028) to the normalized speed of DataNucleus with HSQLDB embedded database (0.67) reveals that in that case, EclipseLink with PostgreSQL server is 23.9 times slower 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server |
Basic Person Test | 11.5 | 6.2 | 2.7 | 4.1 | 7.1 | 5.1 |
Element Collection Test | 6.9 | 0.080 | 2.7 | 0.028 | 4.8 | 0.054 |
Inheritance Test | 10.3 | 6.4 | 3.6 | 6.1 | 6.9 | 6.2 |
Indexing Test | 11.4 | 6.5 | 4.4 | 7.0 | 7.9 | 6.8 |
Graph (Binary Tree) Test | 3.5 | 0.90 | 1.5 | 0.50 | 2.5 | 0.70 |
Multithreading Test | failed | 36.0 | failed | 9.1 | failed | 22.5 |
All Tests | 8.7 | 9.3 | 3.0 | 4.5 | 5.8 | 6.9 |
DataNucleus with HSQLDB embedded has failed in 2 tests (see exceptions).
The results above show that in general EclipseLink with PostgreSQL server is slightly more efficient than DataNucleus with HSQLDB embedded in updating JPA entity objects in the database.
On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large transaction size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.028) to the normalized speed of DataNucleus with HSQLDB embedded database (2.7) reveals that in that case, EclipseLink with PostgreSQL server is 96.4 times slower than DataNucleus with HSQLDB embedded.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server |
Basic Person Test | 4.2 | 5.7 | 1.3 | 5.7 | 2.8 | 5.7 |
Element Collection Test | 4.9 | 0.025 | 1.6 | stopped | 3.2 | 0.012 |
Inheritance Test | 4.0 | 5.5 | 1.3 | 5.4 | 2.7 | 5.4 |
Indexing Test | 7.5 | 10.4 | 1.9 | 10.0 | 4.7 | 10.2 |
Graph (Binary Tree) Test | 2.9 | 0.016 | 2.0 | 0.013 | 2.5 | 0.015 |
Multithreading Test | 40.1 | 26.3 | 13.7 | 16.8 | 26.9 | 21.6 |
All Tests | 10.6 | 8.0 | 3.7 | 6.3 | 7.1 | 7.2 |
The results above show that in general EclipseLink with PostgreSQL server is slightly more efficient than DataNucleus with HSQLDB embedded in deleting JPA entity objects from the database.
A large performance gap has been detected when using database indexes with large transaction size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (1.9) to the normalized speed of EclipseLink with PostgreSQL database server (10.0) reveals that in that case, EclipseLink with PostgreSQL server is 5.3 times faster than DataNucleus with HSQLDB embedded.
On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with small transaction size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.025) to the normalized speed of DataNucleus with HSQLDB embedded database (4.9) reveals that in that case, EclipseLink with PostgreSQL server is 196 times slower than DataNucleus with HSQLDB embedded.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server | DataNucleus HSQLDB embedded | EclipseLink PostgreSQL server |
Basic Person Test | 7.6 | 16.3 | 3.9 | 7.8 | 5.7 | 12.1 |
Element Collection Test | 4.7 | 3.7 | 3.0 | 0.40 | 3.8 | 2.1 |
Inheritance Test | 7.1 | 15.9 | 3.8 | 9.5 | 5.4 | 12.7 |
Indexing Test | 9.7 | 6.5 | 5.5 | 10.7 | 7.6 | 8.6 |
Graph (Binary Tree) Test | 5.1 | 1.2 | 4.3 | 1.1 | 4.7 | 1.2 |
Multithreading Test | 21.8 | 32.6 | 10.6 | 16.0 | 17.0 | 24.3 |
All Tests | 9.0 | 13.1 | 4.8 | 7.8 | 7.0 | 10.5 |
The results above show that in general EclipseLink with PostgreSQL server is more efficient than DataNucleus with HSQLDB embedded in performing JPA database operations.
A large performance gap has been detected when using class inheritance in the object model with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with HSQLDB embedded database (3.8) to the normalized speed of EclipseLink with PostgreSQL database server (9.5) reveals that in that case, EclipseLink with PostgreSQL server is 2.5 times faster than DataNucleus with HSQLDB embedded.
On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.40) to the normalized speed of DataNucleus with HSQLDB embedded database (3.0) reveals that in that case, EclipseLink with PostgreSQL server is 7.5 times slower than DataNucleus with HSQLDB embedded.
Other Head to Head DBMS/JPA Comparisons
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
EclipseLink with PostgreSQL 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
- 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