Comparison of EclipseLink with H2 embedded vs DataNucleus 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 | |||
---|---|---|---|---|---|---|
  | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server |
Basic Person Test | 25.1 | 4.1 | 8.9 | 2.6 | 17.0 | 3.3 |
Element Collection Test | 20.4 | 0.91 | 8.0 | 0.38 | 14.2 | 0.64 |
Inheritance Test | 28.7 | 3.8 | 8.7 | 2.4 | 18.7 | 3.1 |
Indexing Test | 37.6 | 6.0 | 14.0 | 6.4 | 25.8 | 6.2 |
Graph (Binary Tree) Test | 17.7 | 0.91 | 14.7 | 0.77 | 16.2 | 0.84 |
Multithreading Test | 30.3 | 18.0 | 11.4 | 8.3 | 20.8 | 13.1 |
All Tests | 26.6 | 5.6 | 10.9 | 3.5 | 18.8 | 4.5 |
The results above show that in general EclipseLink with H2 embedded is much more efficient than DataNucleus with PostgreSQL server in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (4.5) to the normalized speed of EclipseLink with H2 embedded database (18.8) reveals that in these tests, EclipseLink with H2 embedded is 4.2 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.91) to the normalized speed of EclipseLink with H2 embedded database (20.4) reveals that in that case, EclipseLink with H2 embedded is 22.4 times faster than DataNucleus with PostgreSQL server.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server |
Basic Person Test | 30.4 | 1.7 | 29.1 | 7.6 | 29.7 | 4.6 |
Element Collection Test | 19.6 | 0.73 | 27.6 | 0.63 | 23.6 | 0.68 |
Inheritance Test | 33.8 | 1.5 | 39.8 | 9.3 | 36.8 | 5.4 |
Indexing Test | 22.2 | 1.5 | 41.3 | 9.2 | 31.8 | 5.3 |
Graph (Binary Tree) Test | 16.0 | 2.6 | 20.0 | 12.3 | 18.0 | 7.4 |
Multithreading Test | 33.7 | 3.4 | 29.0 | 10.8 | 31.4 | 7.1 |
All Tests | 25.9 | 1.9 | 31.1 | 8.3 | 28.5 | 5.1 |
The results above show that in general EclipseLink with H2 embedded is much more efficient than DataNucleus with PostgreSQL server in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (5.1) to the normalized speed of EclipseLink with H2 embedded database (28.5) reveals that in these tests, EclipseLink with H2 embedded is 5.6 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.63) to the normalized speed of EclipseLink with H2 embedded database (27.6) reveals that in that case, EclipseLink with H2 embedded is 43.8 times faster than DataNucleus with PostgreSQL server.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server |
Basic Person Test | 4.4 | 49.1 | 1.4 | 4.7 | 2.9 | 26.9 |
Element Collection Test | 4.1 | 39.1 | 2.4 | 0.48 | 3.2 | 19.8 |
Inheritance Test | 3.4 | 55.9 | 2.0 | 6.6 | 2.7 | 31.2 |
Indexing Test | 13.0 | 0.048 | 22.8 | 6.4 | 17.9 | 3.2 |
Multithreading Test | 1.0 | failed | 0.67 | failed | 0.85 | failed |
All Tests | 5.2 | 36.0 | 5.9 | 4.5 | 5.5 | 20.3 |
DataNucleus with PostgreSQL server has failed in 2 tests (see exceptions).
The results above show that in general DataNucleus with PostgreSQL server is much more efficient than EclipseLink with H2 embedded in executing the tested JPA queries. Comparing the normalized speed of EclipseLink with H2 embedded database (5.5) to the normalized speed of DataNucleus with PostgreSQL database server (20.3) reveals that in these tests, DataNucleus with PostgreSQL server is 3.7 times faster than EclipseLink with H2 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 EclipseLink with H2 embedded database (3.4) to the normalized speed of DataNucleus with PostgreSQL database server (55.9) reveals that in that case, DataNucleus with PostgreSQL server is 16.4 times faster than EclipseLink with H2 embedded.
On the other hand, DataNucleus with PostgreSQL server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.048) to the normalized speed of EclipseLink with H2 embedded database (13.0) reveals that in that case, DataNucleus with PostgreSQL server is 271 times slower than EclipseLink with H2 embedded.
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server |
Basic Person Test | 16.6 | 2.1 | 7.6 | 0.84 | 12.1 | 1.5 |
Element Collection Test | 15.3 | 1.4 | 10.5 | 0.64 | 12.9 | 1.0 |
Inheritance Test | 15.7 | 2.1 | 9.8 | 1.2 | 12.7 | 1.7 |
Indexing Test | 12.1 | 2.2 | 9.9 | 1.5 | 11.0 | 1.8 |
Graph (Binary Tree) Test | 13.7 | 0.65 | 7.0 | 0.20 | 10.3 | 0.42 |
Multithreading Test | 20.9 | 0.46 | 4.2 | failed | 12.6 | 0.46 |
All Tests | 15.7 | 1.5 | 8.2 | 0.87 | 12.0 | 1.2 |
DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).
The results above show that in general EclipseLink with H2 embedded is much more efficient than DataNucleus with PostgreSQL server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (1.2) to the normalized speed of EclipseLink with H2 embedded database (12.0) reveals that in these tests, EclipseLink with H2 embedded is 10.0 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.46) to the normalized speed of EclipseLink with H2 embedded database (20.9) reveals that in that case, EclipseLink with H2 embedded is 45.4 times faster than DataNucleus with PostgreSQL server.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server |
Basic Person Test | 35.1 | 3.0 | 19.6 | 1.3 | 27.4 | 2.2 |
Element Collection Test | 19.3 | 1.0 | 8.5 | 0.39 | 13.9 | 0.69 |
Inheritance Test | 36.0 | 2.8 | 14.0 | 1.3 | 25.0 | 2.1 |
Indexing Test | 42.5 | 5.4 | 19.2 | 1.9 | 30.9 | 3.7 |
Graph (Binary Tree) Test | 12.2 | 0.38 | 14.4 | 0.37 | 13.3 | 0.37 |
Multithreading Test | 54.4 | 13.8 | 25.8 | failed | 40.1 | 13.8 |
All Tests | 33.3 | 4.4 | 16.9 | 1.1 | 25.1 | 2.9 |
DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).
The results above show that in general EclipseLink with H2 embedded is much more efficient than DataNucleus with PostgreSQL server in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (2.9) to the normalized speed of EclipseLink with H2 embedded database (25.1) reveals that in these tests, EclipseLink with H2 embedded is 8.7 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.37) to the normalized speed of EclipseLink with H2 embedded database (14.4) reveals that in that case, EclipseLink with H2 embedded is 38.9 times faster than DataNucleus with PostgreSQL server.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server | EclipseLink H2 embedded | DataNucleus PostgreSQL server |
Basic Person Test | 22.3 | 12.0 | 13.3 | 3.4 | 17.8 | 7.7 |
Element Collection Test | 15.7 | 8.6 | 11.4 | 0.50 | 13.6 | 4.6 |
Inheritance Test | 23.5 | 13.2 | 14.9 | 4.2 | 19.2 | 8.7 |
Indexing Test | 25.5 | 3.0 | 21.5 | 5.1 | 23.5 | 4.0 |
Graph (Binary Tree) Test | 14.9 | 1.1 | 14.0 | 3.4 | 14.5 | 2.3 |
Multithreading Test | 28.1 | 8.9 | 14.2 | 9.5 | 21.1 | 9.1 |
All Tests | 21.9 | 8.0 | 14.9 | 3.8 | 18.4 | 6.0 |
The results above show that in general EclipseLink with H2 embedded is much more efficient than DataNucleus with PostgreSQL server in performing JPA database operations. Comparing the normalized speed of DataNucleus with PostgreSQL database server (6.0) to the normalized speed of EclipseLink with H2 embedded database (18.4) reveals that in these tests, EclipseLink with H2 embedded is 3.1 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.50) to the normalized speed of EclipseLink with H2 embedded database (11.4) reveals that in that case, EclipseLink with H2 embedded is 22.8 times faster than DataNucleus with PostgreSQL server.
Other Head to Head DBMS/JPA Comparisons
EclipseLink 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 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
DataNucleus 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
- 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