Comparison of OpenJPA with Derby server vs EclipseLink with SQLite 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 | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded |
Basic Person Test | 3.1 | 0.074 | 2.7 | 0.90 | 2.9 | 0.49 |
Element Collection Test | 2.0 | 0.061 | 1.7 | 0.65 | 1.8 | 0.36 |
Inheritance Test | 3.0 | 0.083 | 2.3 | 0.82 | 2.6 | 0.45 |
Indexing Test | 4.7 | 0.11 | 4.1 | 1.6 | 4.4 | 0.87 |
Graph (Binary Tree) Test | 0.71 | 0.24 | 0.64 | 0.91 | 0.67 | 0.57 |
Multithreading Test | 6.0 | 0.10 | 3.8 | 2.1 | 4.9 | 1.1 |
All Tests | 3.3 | 0.11 | 2.5 | 1.2 | 2.9 | 0.64 |
The results above show that in general OpenJPA with Derby server is much more efficient than EclipseLink with SQLite embedded in persisting JPA entity objects to the database. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.64) to the normalized speed of OpenJPA with Derby database server (2.9) reveals that in these tests, OpenJPA with Derby server is 4.5 times faster than EclipseLink with SQLite embedded.
A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.10) to the normalized speed of OpenJPA with Derby database server (6.0) reveals that in that case, OpenJPA with Derby server is 60.0 times faster than EclipseLink with SQLite embedded.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded |
Basic Person Test | 0.78 | failed | 11.6 | failed | 6.2 | failed |
Element Collection Test | 0.0024 | 0.0007 | 1.1 | failed | 0.54 | 0.0007 |
Inheritance Test | 0.014 | failed | 5.0 | failed | 2.5 | failed |
Indexing Test | 0.62 | failed | 13.0 | failed | 6.8 | failed |
Graph (Binary Tree) Test | 0.065 | failed | 0.39 | failed | 0.23 | failed |
Multithreading Test | 1.6 | failed | 19.0 | failed | 10.3 | failed |
All Tests | 0.51 | 0.0007 | 8.4 | failed | 4.4 | 0.0007 |
EclipseLink with SQLite embedded has failed in 11 tests (see exceptions).
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded |
Basic Person Test | 29.2 | 1.2 | 5.5 | failed | 17.3 | 1.2 |
Element Collection Test | 2.2 | 0.29 | 1.4 | failed | 1.8 | 0.29 |
Inheritance Test | 2.2 | 0.69 | 1.0 | failed | 1.6 | 0.69 |
Indexing Test | 2.2 | 0.0008 | 11.7 | failed | 7.0 | 0.0008 |
Multithreading Test | 35.5 | failed | 8.3 | failed | 21.9 | failed |
All Tests | 14.3 | 0.55 | 5.6 | failed | 9.9 | 0.55 |
EclipseLink with SQLite embedded has failed in 6 tests (see exceptions).
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded |
Basic Person Test | 1.5 | failed | 4.0 | failed | 2.8 | failed |
Element Collection Test | 0.0081 | 0.0016 | 1.9 | failed | 0.94 | 0.0016 |
Inheritance Test | 0.043 | failed | 3.8 | failed | 1.9 | failed |
Indexing Test | 1.8 | failed | 6.8 | failed | 4.3 | failed |
Graph (Binary Tree) Test | 0.16 | failed | 0.27 | failed | 0.22 | failed |
Multithreading Test | 6.9 | failed | 5.0 | failed | 5.9 | failed |
All Tests | 1.7 | 0.0016 | 3.6 | failed | 2.7 | 0.0016 |
EclipseLink with SQLite embedded has failed in 11 tests (see exceptions).
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded |
Basic Person Test | 1.4 | failed | 3.7 | failed | 2.5 | failed |
Element Collection Test | 0.0082 | 0.0006 | 1.4 | failed | 0.71 | 0.0006 |
Inheritance Test | 0.035 | failed | 2.5 | failed | 1.3 | failed |
Indexing Test | 2.3 | failed | 3.5 | failed | 2.9 | failed |
Graph (Binary Tree) Test | 0.13 | failed | 0.35 | failed | 0.24 | failed |
Multithreading Test | 3.6 | failed | 4.0 | failed | 3.8 | failed |
All Tests | 1.3 | 0.0006 | 2.6 | failed | 1.9 | 0.0006 |
EclipseLink with SQLite embedded has failed in 11 tests (see exceptions).
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded | OpenJPA Derby server | EclipseLink SQLite embedded |
Basic Person Test | 7.2 | 0.66 | 5.5 | 0.90 | 6.4 | 0.74 |
Element Collection Test | 0.84 | 0.070 | 1.5 | 0.65 | 1.2 | 0.17 |
Inheritance Test | 1.1 | 0.38 | 2.9 | 0.82 | 2.0 | 0.53 |
Indexing Test | 2.3 | 0.058 | 7.8 | 1.6 | 5.1 | 0.58 |
Graph (Binary Tree) Test | 0.27 | 0.24 | 0.41 | 0.91 | 0.34 | 0.57 |
Multithreading Test | 10.7 | 0.10 | 8.0 | 2.1 | 9.4 | 1.1 |
All Tests | 3.9 | 0.22 | 4.5 | 1.2 | 4.2 | 0.52 |
The results above show that in general OpenJPA with Derby server is much more efficient than EclipseLink with SQLite embedded in performing JPA database operations. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.52) to the normalized speed of OpenJPA with Derby database server (4.2) reveals that in these tests, OpenJPA with Derby server is 8.1 times faster than EclipseLink with SQLite embedded.
A huge performance gap has been detected when using multithreading with small transaction/retrieval size. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.10) to the normalized speed of OpenJPA with Derby database server (10.7) reveals that in that case, OpenJPA with Derby server is 107 times faster than EclipseLink with SQLite embedded.
On the other hand, OpenJPA with Derby server is slower, for instance, when using graphs of objects with large transaction/retrieval size. Comparing the normalized speed of OpenJPA with Derby database server (0.41) to the normalized speed of EclipseLink with SQLite embedded database (0.91) reveals that in that case, OpenJPA with Derby server is 2.2 times slower than EclipseLink with SQLite embedded.
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
EclipseLink with SQLite 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 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