Comparison of Hibernate with Derby embedded vs Hibernate 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 embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded |
Basic Person Test | 5.9 | 0.083 | 3.8 | 1.0 | 4.9 | 0.55 |
Element Collection Test | 2.9 | 0.067 | 1.8 | 0.69 | 2.3 | 0.38 |
Inheritance Test | 5.3 | 0.080 | 3.7 | 0.99 | 4.5 | 0.54 |
Indexing Test | 7.0 | 0.098 | 4.8 | 1.0 | 5.9 | 0.55 |
Graph (Binary Tree) Test | 1.9 | 0.27 | 1.7 | 0.96 | 1.8 | 0.61 |
Multithreading Test | 10.5 | failed | 3.7 | failed | 7.1 | failed |
All Tests | 5.6 | 0.12 | 3.3 | 0.93 | 4.4 | 0.53 |
Hibernate with SQLite embedded has failed in 2 tests (see exceptions).
The results above show that in general Hibernate with Derby embedded is much more efficient than Hibernate with SQLite embedded in persisting JPA entity objects to the database. Comparing the normalized speed of Hibernate with SQLite embedded database (0.53) to the normalized speed of Hibernate with Derby embedded database (4.4) reveals that in these tests, Hibernate with Derby embedded is 8.3 times faster than Hibernate with SQLite embedded.
A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.098) to the normalized speed of Hibernate with Derby embedded database (7.0) reveals that in that case, Hibernate with Derby embedded is 71.4 times faster than Hibernate 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 embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded |
Basic Person Test | 14.2 | 1.8 | 16.4 | 1.3 | 15.3 | 1.5 |
Element Collection Test | 4.4 | 0.0008 | 4.9 | failed | 4.6 | 0.0008 |
Inheritance Test | 10.3 | 2.4 | 18.6 | 1.4 | 14.4 | 1.9 |
Indexing Test | 10.0 | 1.9 | 16.4 | 2.3 | 13.2 | 2.1 |
Graph (Binary Tree) Test | 2.6 | 0.56 | 3.0 | 0.88 | 2.8 | 0.72 |
Multithreading Test | 19.3 | failed | 19.3 | failed | 19.3 | failed |
All Tests | 10.1 | 1.3 | 13.1 | 1.5 | 11.6 | 1.4 |
Hibernate with SQLite embedded has failed in 3 tests (see exceptions).
The results above show that in general Hibernate with Derby embedded is much more efficient than Hibernate with SQLite embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of Hibernate with SQLite embedded database (1.4) to the normalized speed of Hibernate with Derby embedded database (11.6) reveals that in these tests, Hibernate with Derby embedded is 8.3 times faster than Hibernate with SQLite embedded.
A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0008) to the normalized speed of Hibernate with Derby embedded database (4.4) reveals that in that case, Hibernate with Derby embedded is 5,500 times faster than Hibernate with SQLite embedded.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded |
Basic Person Test | 49.3 | 1.1 | 6.8 | 0.22 | 28.1 | 0.65 |
Element Collection Test | 37.6 | 0.39 | 2.7 | failed | 20.1 | 0.39 |
Inheritance Test | 24.1 | 0.53 | 7.6 | 0.28 | 15.9 | 0.40 |
Indexing Test | 5.3 | 0.0011 | 14.8 | 0.43 | 10.1 | 0.21 |
Multithreading Test | 39.7 | failed | 6.1 | failed | 22.9 | failed |
All Tests | 31.2 | 0.50 | 7.6 | 0.31 | 19.4 | 0.42 |
Hibernate with SQLite embedded has failed in 3 tests (see exceptions).
The results above show that in general Hibernate with Derby embedded is much more efficient than Hibernate with SQLite embedded in executing the tested JPA queries. Comparing the normalized speed of Hibernate with SQLite embedded database (0.42) to the normalized speed of Hibernate with Derby embedded database (19.4) reveals that in these tests, Hibernate with Derby embedded is 46.2 times faster than Hibernate with SQLite embedded.
A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0011) to the normalized speed of Hibernate with Derby embedded database (5.3) reveals that in that case, Hibernate with Derby embedded is 4,818 times faster than Hibernate with SQLite embedded.
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded |
Basic Person Test | 4.5 | 0.076 | 3.2 | 0.65 | 3.8 | 0.37 |
Element Collection Test | 3.9 | 0.0022 | 3.1 | failed | 3.5 | 0.0022 |
Inheritance Test | 4.6 | 0.079 | 4.5 | 0.97 | 4.5 | 0.53 |
Indexing Test | 4.6 | 0.057 | 5.5 | 0.54 | 5.1 | 0.30 |
Graph (Binary Tree) Test | 2.7 | 0.26 | 1.2 | 0.42 | 2.0 | 0.34 |
Multithreading Test | 11.6 | failed | 2.6 | failed | 7.1 | failed |
All Tests | 5.3 | 0.094 | 3.3 | 0.65 | 4.3 | 0.34 |
Hibernate with SQLite embedded has failed in 3 tests (see exceptions).
The results above show that in general Hibernate with Derby embedded is much more efficient than Hibernate with SQLite embedded in updating JPA entity objects in the database. Comparing the normalized speed of Hibernate with SQLite embedded database (0.34) to the normalized speed of Hibernate with Derby embedded database (4.3) reveals that in these tests, Hibernate with Derby embedded is 12.6 times faster than Hibernate with SQLite embedded.
A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0022) to the normalized speed of Hibernate with Derby embedded database (3.9) reveals that in that case, Hibernate with Derby embedded is 1,773 times faster than Hibernate with SQLite embedded.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded |
Basic Person Test | 3.8 | 0.061 | 4.2 | 0.91 | 4.0 | 0.49 |
Element Collection Test | 2.3 | 0.0007 | 1.5 | failed | 1.9 | 0.0007 |
Inheritance Test | 4.0 | 0.058 | 4.3 | 0.90 | 4.2 | 0.48 |
Indexing Test | 5.5 | 0.079 | 3.6 | 0.54 | 4.6 | 0.31 |
Graph (Binary Tree) Test | 0.74 | 0.24 | 0.96 | 0.80 | 0.85 | 0.52 |
Multithreading Test | 5.6 | failed | 4.9 | failed | 5.3 | failed |
All Tests | 3.7 | 0.088 | 3.3 | 0.79 | 3.5 | 0.40 |
Hibernate with SQLite embedded has failed in 3 tests (see exceptions).
The results above show that in general Hibernate with Derby embedded is much more efficient than Hibernate with SQLite embedded in deleting JPA entity objects from the database. Comparing the normalized speed of Hibernate with SQLite embedded database (0.40) to the normalized speed of Hibernate with Derby embedded database (3.5) reveals that in these tests, Hibernate with Derby embedded is 8.8 times faster than Hibernate with SQLite embedded.
A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0007) to the normalized speed of Hibernate with Derby embedded database (2.3) reveals that in that case, Hibernate with Derby embedded is 3,286 times faster than Hibernate with SQLite embedded.
Comparison of database storage efficiency (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded |
Basic Person Test | 52.7 | 90.2 | 52.7 | 90.2 | 52.7 | 90.2 |
Element Collection Test | 42.3 | 82.0 | 42.3 | 82.0 | 42.3 | 82.0 |
Inheritance Test | 49.2 | 80.5 | 49.2 | 80.5 | 49.2 | 80.5 |
Indexing Test | 53.0 | 93.4 | 53.9 | 94.8 | 53.4 | 94.1 |
Graph (Binary Tree) Test | 13.1 | 67.9 | 9.8 | 50.9 | 11.5 | 59.4 |
Multithreading Test | 49.3 | failed | 8.8 | failed | 29.0 | failed |
All Tests | 43.3 | 82.8 | 36.1 | 79.7 | 39.7 | 81.2 |
Hibernate with SQLite embedded has failed in 2 tests (see exceptions).
The results above show that in general Hibernate with SQLite embedded is more efficient than Hibernate with Derby embedded in using disk space. Comparing the normalized score of Hibernate with Derby embedded database (39.7) to the normalized score of Hibernate with SQLite embedded database (81.2) reveals that in these tests, Hibernate with SQLite embedded is 2.0 times more efficient than Hibernate with Derby embedded.
A large gap has been detected when using graphs of objects with large transaction size. Comparing the normalized score of Hibernate with Derby embedded database (9.8) to the normalized score of Hibernate with SQLite embedded database (50.9) reveals that in that case, Hibernate with SQLite embedded is 5.2 times more efficient than Hibernate with Derby embedded.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded | Hibernate Derby embedded | Hibernate SQLite embedded |
Basic Person Test | 15.5 | 0.63 | 6.9 | 0.81 | 11.2 | 0.72 |
Element Collection Test | 10.2 | 0.092 | 2.8 | 0.69 | 6.5 | 0.19 |
Inheritance Test | 9.7 | 0.63 | 7.7 | 0.91 | 8.7 | 0.77 |
Indexing Test | 6.5 | 0.42 | 9.0 | 0.96 | 7.8 | 0.69 |
Graph (Binary Tree) Test | 2.0 | 0.33 | 1.7 | 0.77 | 1.8 | 0.55 |
Multithreading Test | 17.3 | failed | 7.3 | failed | 12.3 | failed |
All Tests | 10.5 | 0.42 | 6.1 | 0.86 | 8.3 | 0.62 |
The results above show that in general Hibernate with Derby embedded is much more efficient than Hibernate with SQLite embedded in performing JPA database operations. Comparing the normalized speed of Hibernate with SQLite embedded database (0.62) to the normalized speed of Hibernate with Derby embedded database (8.3) reveals that in these tests, Hibernate with Derby embedded is 13.4 times faster than Hibernate with SQLite embedded.
A huge performance gap has been detected when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.092) to the normalized speed of Hibernate with Derby embedded database (10.2) reveals that in that case, Hibernate with Derby embedded is 111 times faster than Hibernate with SQLite embedded.
Other Head to Head DBMS/JPA Comparisons
Hibernate with Derby 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 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
Hibernate 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 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 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