Comparison of EclipseLink with SQLite embedded vs OpenJPA with H2 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 SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server |
Basic Person Test | 0.074 | 3.7 | 0.90 | 2.2 | 0.49 | 2.9 |
Element Collection Test | 0.061 | 2.6 | 0.65 | 1.5 | 0.36 | 2.1 |
Inheritance Test | 0.083 | 4.5 | 0.82 | 2.0 | 0.45 | 3.2 |
Indexing Test | 0.11 | 7.3 | 1.6 | 3.6 | 0.87 | 5.4 |
Graph (Binary Tree) Test | 0.24 | 1.1 | 0.91 | 0.84 | 0.57 | 0.97 |
Multithreading Test | 0.10 | 7.7 | 2.1 | 4.2 | 1.1 | 5.9 |
All Tests | 0.11 | 4.5 | 1.2 | 2.4 | 0.64 | 3.4 |
The results above show that in general OpenJPA with H2 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 H2 database server (3.4) reveals that in these tests, OpenJPA with H2 server is 5.3 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 H2 database server (7.7) reveals that in that case, OpenJPA with H2 server is 77.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 | |||
---|---|---|---|---|---|---|
  | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server |
Basic Person Test | failed | 2.9 | failed | 7.6 | failed | 5.2 |
Element Collection Test | 0.0007 | 0.0022 | failed | 1.9 | 0.0007 | 0.93 |
Inheritance Test | failed | 0.013 | failed | 4.0 | failed | 2.0 |
Indexing Test | failed | 4.1 | failed | 8.8 | failed | 6.5 |
Graph (Binary Tree) Test | failed | 0.38 | failed | 0.49 | failed | 0.44 |
Multithreading Test | failed | 5.9 | failed | 14.0 | failed | 10.0 |
All Tests | 0.0007 | 2.2 | failed | 6.1 | 0.0007 | 4.2 |
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 | |||
---|---|---|---|---|---|---|
  | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server |
Basic Person Test | 1.2 | 3.7 | failed | 1.0 | 1.2 | 2.4 |
Element Collection Test | 0.29 | 2.0 | failed | 1.2 | 0.29 | 1.6 |
Inheritance Test | 0.69 | 2.8 | failed | 1.1 | 0.69 | 2.0 |
Indexing Test | 0.0008 | 3.8 | failed | 7.5 | 0.0008 | 5.7 |
Multithreading Test | failed | 0.98 | failed | 1.0 | failed | 1.0 |
All Tests | 0.55 | 2.7 | failed | 2.4 | 0.55 | 2.5 |
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 | |||
---|---|---|---|---|---|---|
  | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server |
Basic Person Test | failed | 3.0 | failed | 2.0 | failed | 2.5 |
Element Collection Test | 0.0016 | 0.0078 | failed | 1.9 | 0.0016 | 0.94 |
Inheritance Test | failed | 0.034 | failed | 2.8 | failed | 1.4 |
Indexing Test | failed | 2.8 | failed | 3.2 | failed | 3.0 |
Graph (Binary Tree) Test | failed | 0.79 | failed | 0.43 | failed | 0.61 |
Multithreading Test | failed | 7.0 | failed | 2.5 | failed | 4.8 |
All Tests | 0.0016 | 2.3 | failed | 2.1 | 0.0016 | 2.2 |
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 | |||
---|---|---|---|---|---|---|
  | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server |
Basic Person Test | failed | 3.2 | failed | 2.2 | failed | 2.7 |
Element Collection Test | 0.0006 | 0.0060 | failed | 0.88 | 0.0006 | 0.44 |
Inheritance Test | failed | 0.030 | failed | 3.1 | failed | 1.6 |
Indexing Test | failed | 6.5 | failed | 3.6 | failed | 5.1 |
Graph (Binary Tree) Test | failed | 0.73 | failed | 0.75 | failed | 0.74 |
Multithreading Test | failed | 7.6 | failed | 5.2 | failed | 6.4 |
All Tests | 0.0006 | 3.0 | failed | 2.6 | 0.0006 | 2.8 |
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 | |||
---|---|---|---|---|---|---|
  | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server | EclipseLink SQLite embedded | OpenJPA H2 server |
Basic Person Test | 0.66 | 3.3 | 0.90 | 3.0 | 0.74 | 3.1 |
Element Collection Test | 0.070 | 0.93 | 0.65 | 1.5 | 0.17 | 1.2 |
Inheritance Test | 0.38 | 1.5 | 0.82 | 2.6 | 0.53 | 2.0 |
Indexing Test | 0.058 | 4.9 | 1.6 | 5.4 | 0.58 | 5.1 |
Graph (Binary Tree) Test | 0.24 | 0.75 | 0.91 | 0.63 | 0.57 | 0.69 |
Multithreading Test | 0.10 | 5.9 | 2.1 | 5.4 | 1.1 | 5.6 |
All Tests | 0.22 | 2.9 | 1.2 | 3.2 | 0.52 | 3.0 |
The results above show that in general OpenJPA with H2 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 H2 database server (3.0) reveals that in these tests, OpenJPA with H2 server is 5.8 times faster than EclipseLink with SQLite embedded.
A huge performance gap has been detected when using database indexes with small transaction/retrieval size. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.058) to the normalized speed of OpenJPA with H2 database server (4.9) reveals that in that case, OpenJPA with H2 server is 84.5 times faster than EclipseLink with SQLite embedded.
Other Head to Head DBMS/JPA Comparisons
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
OpenJPA with H2 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 Derby server
- OpenJPA with MySQL server
- OpenJPA with PostgreSQL server
- ObjectDB embedded
- ObjectDB server