Comparison of Hibernate 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 | |||
---|---|---|---|---|---|---|
  | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded |
Basic Person Test | 3.8 | 0.074 | 3.0 | 0.90 | 3.4 | 0.49 |
Element Collection Test | 2.0 | 0.061 | 1.3 | 0.65 | 1.7 | 0.36 |
Inheritance Test | 3.4 | 0.083 | 3.0 | 0.82 | 3.2 | 0.45 |
Indexing Test | 4.8 | 0.11 | 4.1 | 1.6 | 4.4 | 0.87 |
Graph (Binary Tree) Test | 1.8 | 0.24 | 1.6 | 0.91 | 1.7 | 0.57 |
Multithreading Test | 6.9 | 0.10 | 3.9 | 2.1 | 5.4 | 1.1 |
All Tests | 3.8 | 0.11 | 2.8 | 1.2 | 3.3 | 0.64 |
The results above show that in general Hibernate 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 Hibernate with Derby database server (3.3) reveals that in these tests, Hibernate with Derby server is 5.2 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 Hibernate with Derby database server (6.9) reveals that in that case, Hibernate with Derby server is 69.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 | |||
---|---|---|---|---|---|---|
  | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded |
Basic Person Test | 3.8 | failed | 8.4 | failed | 6.1 | failed |
Element Collection Test | 1.0 | 0.0007 | 1.0 | failed | 1.0 | 0.0007 |
Inheritance Test | 3.5 | failed | 9.7 | failed | 6.6 | failed |
Indexing Test | 3.2 | failed | 9.5 | failed | 6.4 | failed |
Graph (Binary Tree) Test | 0.91 | failed | 1.2 | failed | 1.1 | failed |
Multithreading Test | 7.8 | failed | 13.4 | failed | 10.6 | failed |
All Tests | 3.4 | 0.0007 | 7.2 | failed | 5.3 | 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 | |||
---|---|---|---|---|---|---|
  | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded |
Basic Person Test | 34.0 | 1.2 | 4.1 | failed | 19.1 | 1.2 |
Element Collection Test | 33.8 | 0.29 | 0.64 | failed | 17.2 | 0.29 |
Inheritance Test | 20.5 | 0.69 | 5.0 | failed | 12.8 | 0.69 |
Indexing Test | 2.0 | 0.0008 | 9.2 | failed | 5.6 | 0.0008 |
Multithreading Test | 36.2 | failed | 5.1 | failed | 20.6 | failed |
All Tests | 25.3 | 0.55 | 4.8 | failed | 15.1 | 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 | |||
---|---|---|---|---|---|---|
  | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded |
Basic Person Test | 2.9 | failed | 2.5 | failed | 2.7 | failed |
Element Collection Test | 2.3 | 0.0016 | 1.5 | failed | 1.9 | 0.0016 |
Inheritance Test | 2.9 | failed | 3.5 | failed | 3.2 | failed |
Indexing Test | 3.0 | failed | 4.2 | failed | 3.6 | failed |
Graph (Binary Tree) Test | 1.2 | failed | 0.58 | failed | 0.91 | failed |
Multithreading Test | 6.8 | failed | 2.5 | failed | 4.6 | failed |
All Tests | 3.2 | 0.0016 | 2.5 | failed | 2.8 | 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 | |||
---|---|---|---|---|---|---|
  | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded |
Basic Person Test | 2.9 | failed | 3.5 | failed | 3.2 | failed |
Element Collection Test | 1.7 | 0.0006 | 0.87 | failed | 1.3 | 0.0006 |
Inheritance Test | 2.9 | failed | 3.6 | failed | 3.2 | failed |
Indexing Test | 3.7 | failed | 3.6 | failed | 3.7 | failed |
Graph (Binary Tree) Test | 0.69 | failed | 0.70 | failed | 0.70 | failed |
Multithreading Test | 6.2 | failed | 5.1 | failed | 5.6 | failed |
All Tests | 3.0 | 0.0006 | 2.9 | failed | 3.0 | 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 | |||
---|---|---|---|---|---|---|
  | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded | Hibernate Derby server | EclipseLink SQLite embedded |
Basic Person Test | 9.5 | 0.66 | 4.3 | 0.90 | 6.9 | 0.74 |
Element Collection Test | 8.2 | 0.070 | 1.1 | 0.65 | 4.6 | 0.17 |
Inheritance Test | 6.6 | 0.38 | 5.0 | 0.82 | 5.8 | 0.53 |
Indexing Test | 3.3 | 0.058 | 6.1 | 1.6 | 4.7 | 0.58 |
Graph (Binary Tree) Test | 1.2 | 0.24 | 1.0 | 0.91 | 1.1 | 0.57 |
Multithreading Test | 12.8 | 0.10 | 6.0 | 2.1 | 9.4 | 1.1 |
All Tests | 7.1 | 0.22 | 4.0 | 1.2 | 5.6 | 0.52 |
The results above show that in general Hibernate 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 Hibernate with Derby database server (5.6) reveals that in these tests, Hibernate with Derby server is 10.8 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 Hibernate with Derby database server (12.8) reveals that in that case, Hibernate with Derby server is 128 times faster than EclipseLink with SQLite embedded.
Other Head to Head DBMS/JPA Comparisons
Hibernate 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 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 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