Comparison of EclipseLink with SQLite embedded vs OpenJPA with MySQL 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 MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server |
Basic Person Test | 0.074 | 3.9 | 0.90 | 1.6 | 0.49 | 2.7 |
Element Collection Test | 0.061 | 1.6 | 0.65 | 0.68 | 0.36 | 1.1 |
Inheritance Test | 0.083 | 3.6 | 0.82 | 1.4 | 0.45 | 2.5 |
Indexing Test | 0.11 | 5.6 | 1.6 | 2.4 | 0.87 | 4.0 |
Graph (Binary Tree) Test | 0.24 | 0.68 | 0.91 | 0.57 | 0.57 | 0.63 |
Multithreading Test | 0.10 | 7.2 | 2.1 | 2.7 | 1.1 | 4.9 |
All Tests | 0.11 | 3.7 | 1.2 | 1.5 | 0.64 | 2.6 |
The results above show that in general OpenJPA with MySQL 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 MySQL database server (2.6) reveals that in these tests, OpenJPA with MySQL server is 4.1 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 MySQL database server (7.2) reveals that in that case, OpenJPA with MySQL server is 72.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 MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server |
Basic Person Test | failed | 3.2 | failed | 22.7 | failed | 12.9 |
Element Collection Test | 0.0007 | 0.0038 | failed | 2.9 | 0.0007 | 1.4 |
Inheritance Test | failed | 0.017 | failed | 6.9 | failed | 3.4 |
Indexing Test | failed | 2.4 | failed | 23.4 | failed | 12.9 |
Graph (Binary Tree) Test | failed | 0.27 | failed | 0.35 | failed | 0.31 |
Multithreading Test | failed | 0.14 | failed | 18.1 | failed | 9.1 |
All Tests | 0.0007 | 1.0 | failed | 12.4 | 0.0007 | 6.7 |
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 MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server |
Basic Person Test | 1.2 | 9.3 | failed | 2.2 | 1.2 | 5.8 |
Element Collection Test | 0.29 | 4.8 | failed | 1.1 | 0.29 | 2.9 |
Inheritance Test | 0.69 | 1.5 | failed | 0.90 | 0.69 | 1.2 |
Indexing Test | 0.0008 | 0.31 | failed | 2.1 | 0.0008 | 1.2 |
Multithreading Test | failed | 1.9 | failed | 0.99 | failed | 1.4 |
All Tests | 0.55 | 3.6 | failed | 1.5 | 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 MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server |
Basic Person Test | failed | 0.74 | failed | 1.6 | failed | 1.2 |
Element Collection Test | 0.0016 | 0.014 | failed | 1.7 | 0.0016 | 0.87 |
Inheritance Test | failed | 0.048 | failed | 2.0 | failed | 1.0 |
Indexing Test | failed | 0.74 | failed | 3.0 | failed | 1.9 |
Graph (Binary Tree) Test | failed | 0.45 | failed | 0.25 | failed | 0.35 |
Multithreading Test | failed | 0.55 | failed | 2.9 | failed | 1.7 |
All Tests | 0.0016 | 0.42 | failed | 1.9 | 0.0016 | 1.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 MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server |
Basic Person Test | failed | 0.98 | failed | 1.7 | failed | 1.4 |
Element Collection Test | 0.0006 | 0.0099 | failed | 0.65 | 0.0006 | 0.33 |
Inheritance Test | failed | 0.033 | failed | 1.5 | failed | 0.75 |
Indexing Test | failed | 0.64 | failed | 2.0 | failed | 1.3 |
Graph (Binary Tree) Test | failed | 0.41 | failed | 0.43 | failed | 0.42 |
Multithreading Test | failed | 0.27 | failed | 2.9 | failed | 1.6 |
All Tests | 0.0006 | 0.39 | failed | 1.5 | 0.0006 | 0.96 |
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 MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server | EclipseLink SQLite embedded | OpenJPA MySQL server |
Basic Person Test | 0.66 | 3.6 | 0.90 | 6.0 | 0.74 | 4.8 |
Element Collection Test | 0.070 | 1.3 | 0.65 | 1.4 | 0.17 | 1.3 |
Inheritance Test | 0.38 | 1.0 | 0.82 | 2.5 | 0.53 | 1.8 |
Indexing Test | 0.058 | 1.9 | 1.6 | 6.6 | 0.58 | 4.3 |
Graph (Binary Tree) Test | 0.24 | 0.45 | 0.91 | 0.40 | 0.57 | 0.43 |
Multithreading Test | 0.10 | 2.0 | 2.1 | 5.5 | 1.1 | 3.8 |
All Tests | 0.22 | 1.8 | 1.2 | 3.9 | 0.52 | 2.8 |
The results above show that in general OpenJPA with MySQL 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 MySQL database server (2.8) reveals that in these tests, OpenJPA with MySQL server is 5.4 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 MySQL database server (1.9) reveals that in that case, OpenJPA with MySQL server is 32.8 times faster than EclipseLink with SQLite embedded.
On the other hand, OpenJPA with MySQL server is slower, for instance, when using graphs of objects with large transaction/retrieval size. Comparing the normalized speed of OpenJPA with MySQL database server (0.40) to the normalized speed of EclipseLink with SQLite embedded database (0.91) reveals that in that case, OpenJPA with MySQL server is 2.3 times slower 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 MySQL 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 H2 server
- OpenJPA with PostgreSQL server
- ObjectDB embedded
- ObjectDB server