Comparison of EclipseLink with Derby server vs OpenJPA with H2 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 | |||
---|---|---|---|---|---|---|
  | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded |
Basic Person Test | 3.8 | 17.1 | 3.1 | 5.8 | 3.4 | 11.5 |
Element Collection Test | 2.2 | 10.9 | 1.5 | 4.9 | 1.8 | 7.9 |
Inheritance Test | 3.9 | 14.3 | 2.9 | 5.9 | 3.4 | 10.1 |
Indexing Test | 5.2 | 24.4 | 4.3 | 13.7 | 4.7 | 19.1 |
Graph (Binary Tree) Test | 1.9 | 6.8 | 1.7 | 6.7 | 1.8 | 6.7 |
Multithreading Test | 6.1 | 34.2 | 3.9 | 10.2 | 5.0 | 22.2 |
All Tests | 3.8 | 17.9 | 2.9 | 7.9 | 3.4 | 12.9 |
The results above show that in general OpenJPA with H2 embedded is much more efficient than EclipseLink with Derby server in persisting JPA entity objects to the database. Comparing the normalized speed of EclipseLink with Derby database server (3.4) to the normalized speed of OpenJPA with H2 embedded database (12.9) reveals that in these tests, OpenJPA with H2 embedded is 3.8 times faster than EclipseLink with Derby server.
A large performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (6.1) to the normalized speed of OpenJPA with H2 embedded database (34.2) reveals that in that case, OpenJPA with H2 embedded is 5.6 times faster than EclipseLink with Derby server.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded |
Basic Person Test | 6.4 | 14.6 | 11.3 | 27.2 | 8.8 | 20.9 |
Element Collection Test | 1.8 | 0.0046 | 2.4 | 4.3 | 2.1 | 2.1 |
Inheritance Test | 3.7 | 0.011 | 12.9 | 7.4 | 8.3 | 3.7 |
Indexing Test | 3.6 | 17.0 | 12.8 | 35.0 | 8.2 | 26.0 |
Graph (Binary Tree) Test | 0.61 | 1.0 | 0.73 | 1.4 | 0.67 | 1.2 |
Multithreading Test | 8.5 | 18.7 | 19.8 | 27.6 | 14.1 | 23.1 |
All Tests | 4.1 | 8.6 | 10.0 | 17.1 | 7.0 | 12.8 |
The results above show that in general OpenJPA with H2 embedded is more efficient than EclipseLink with Derby server in retrieving JPA entity objects from the database.
A large performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (3.6) to the normalized speed of OpenJPA with H2 embedded database (17.0) reveals that in that case, OpenJPA with H2 embedded is 4.7 times faster than EclipseLink with Derby server.
On the other hand, OpenJPA with H2 embedded is slower, for instance, 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 EclipseLink with Derby database server (1.8) reveals that in that case, OpenJPA with H2 embedded is 391 times slower than EclipseLink with Derby server.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded |
Basic Person Test | 45.8 | 5.0 | 5.3 | 1.1 | 25.6 | 3.1 |
Element Collection Test | 35.2 | 1.7 | 0.99 | 1.3 | 18.1 | 1.5 |
Inheritance Test | 23.1 | 2.2 | 5.9 | 1.2 | 14.5 | 1.7 |
Indexing Test | 2.5 | 13.8 | 12.2 | 23.2 | 7.4 | 18.5 |
Multithreading Test | 34.3 | 1.4 | 7.7 | 0.60 | 21.0 | 0.99 |
All Tests | 28.2 | 4.8 | 6.4 | 5.5 | 17.3 | 5.1 |
The results above show that in general EclipseLink with Derby 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 EclipseLink with Derby database server (17.3) reveals that in these tests, EclipseLink with Derby server is 3.4 times faster than OpenJPA with H2 embedded.
A huge performance gap has been detected when using multithreading with small retrieval size. Comparing the normalized speed of OpenJPA with H2 embedded database (1.4) to the normalized speed of EclipseLink with Derby database server (34.3) reveals that in that case, EclipseLink with Derby server is 24.5 times faster than OpenJPA with H2 embedded.
On the other hand, EclipseLink with Derby server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (2.5) to the normalized speed of OpenJPA with H2 embedded database (13.8) reveals that in that case, EclipseLink with Derby server is 5.5 times slower 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 | |||
---|---|---|---|---|---|---|
  | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded |
Basic Person Test | 3.9 | 10.0 | 4.4 | 6.0 | 4.1 | 8.0 |
Element Collection Test | 1.7 | 0.011 | 1.6 | 3.8 | 1.6 | 1.9 |
Inheritance Test | 4.6 | 0.046 | 6.1 | 5.0 | 5.3 | 2.5 |
Indexing Test | 4.5 | 8.9 | 7.6 | 7.0 | 6.1 | 8.0 |
Graph (Binary Tree) Test | 0.70 | 2.4 | 0.42 | 1.3 | 0.56 | 1.9 |
Multithreading Test | 7.3 | 16.6 | 4.8 | 4.3 | 6.0 | 10.4 |
All Tests | 3.8 | 6.3 | 4.2 | 4.6 | 4.0 | 5.4 |
The results above show that in general OpenJPA with H2 embedded is more efficient than EclipseLink with Derby server in updating JPA entity objects in the database.
A large performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (0.70) to the normalized speed of OpenJPA with H2 embedded database (2.4) reveals that in that case, OpenJPA with H2 embedded is 3.4 times faster than EclipseLink with Derby server.
On the other hand, OpenJPA with H2 embedded is slower, for instance, 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 EclipseLink with Derby database server (1.7) reveals that in that case, OpenJPA with H2 embedded is 155 times slower than EclipseLink with Derby server.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded |
Basic Person Test | 2.8 | 18.3 | 3.9 | 11.1 | 3.3 | 14.7 |
Element Collection Test | 1.2 | 0.012 | 0.55 | 2.9 | 0.87 | 1.4 |
Inheritance Test | 3.3 | 0.030 | 3.7 | 6.6 | 3.5 | 3.3 |
Indexing Test | 4.9 | 23.2 | 3.5 | 9.7 | 4.2 | 16.4 |
Graph (Binary Tree) Test | 0.51 | 1.8 | 0.50 | 2.4 | 0.51 | 2.1 |
Multithreading Test | 4.8 | 31.2 | 5.7 | 17.3 | 5.3 | 24.2 |
All Tests | 2.9 | 12.4 | 3.0 | 8.3 | 3.0 | 10.4 |
The results above show that in general OpenJPA with H2 embedded is much more efficient than EclipseLink with Derby server in deleting JPA entity objects from the database. Comparing the normalized speed of EclipseLink with Derby database server (3.0) to the normalized speed of OpenJPA with H2 embedded database (10.4) reveals that in these tests, OpenJPA with H2 embedded is 3.5 times faster than EclipseLink with Derby server.
A large performance gap has been detected when using simple basic entities with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (2.8) to the normalized speed of OpenJPA with H2 embedded database (18.3) reveals that in that case, OpenJPA with H2 embedded is 6.5 times faster than EclipseLink with Derby server.
On the other hand, OpenJPA with H2 embedded is slower, for instance, when using class inheritance in the object model with small transaction size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.030) to the normalized speed of EclipseLink with Derby database server (3.3) reveals that in that case, OpenJPA with H2 embedded is 110 times slower than EclipseLink with Derby server.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded | EclipseLink Derby server | OpenJPA H2 embedded |
Basic Person Test | 12.5 | 13.0 | 5.6 | 10.2 | 9.1 | 11.6 |
Element Collection Test | 8.4 | 2.5 | 1.4 | 3.4 | 4.9 | 3.0 |
Inheritance Test | 7.7 | 3.3 | 6.3 | 5.2 | 7.0 | 4.3 |
Indexing Test | 4.1 | 17.5 | 8.1 | 17.7 | 6.1 | 17.6 |
Graph (Binary Tree) Test | 0.93 | 3.0 | 0.83 | 3.0 | 0.88 | 3.0 |
Multithreading Test | 12.2 | 20.4 | 8.4 | 12.0 | 10.3 | 16.2 |
All Tests | 7.9 | 10.2 | 5.2 | 8.8 | 6.6 | 9.5 |
The results above show that in general OpenJPA with H2 embedded is more efficient than EclipseLink with Derby server in performing JPA database operations.
A large performance gap has been detected when using database indexes with small transaction/retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (4.1) to the normalized speed of OpenJPA with H2 embedded database (17.5) reveals that in that case, OpenJPA with H2 embedded is 4.3 times faster than EclipseLink with Derby server.
On the other hand, OpenJPA with H2 embedded is slower, for instance, when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of OpenJPA with H2 embedded database (2.5) to the normalized speed of EclipseLink with Derby database server (8.4) reveals that in that case, OpenJPA with H2 embedded is 3.4 times slower than EclipseLink with Derby server.
Other Head to Head DBMS/JPA Comparisons
EclipseLink 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 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
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