Comparison of DataNucleus with PostgreSQL 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded |
Basic Person Test | 4.1 | 0.074 | 2.6 | 0.90 | 3.3 | 0.49 |
Element Collection Test | 0.91 | 0.061 | 0.38 | 0.65 | 0.64 | 0.36 |
Inheritance Test | 3.8 | 0.083 | 2.4 | 0.82 | 3.1 | 0.45 |
Indexing Test | 6.0 | 0.11 | 6.4 | 1.6 | 6.2 | 0.87 |
Graph (Binary Tree) Test | 0.91 | 0.24 | 0.77 | 0.91 | 0.84 | 0.57 |
Multithreading Test | 18.0 | 0.10 | 8.3 | 2.1 | 13.1 | 1.1 |
All Tests | 5.6 | 0.11 | 3.5 | 1.2 | 4.5 | 0.64 |
The results above show that in general DataNucleus with PostgreSQL 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 DataNucleus with PostgreSQL database server (4.5) reveals that in these tests, DataNucleus with PostgreSQL server is 7.0 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 DataNucleus with PostgreSQL database server (18.0) reveals that in that case, DataNucleus with PostgreSQL server is 180 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded |
Basic Person Test | 1.7 | failed | 7.6 | failed | 4.6 | failed |
Element Collection Test | 0.73 | 0.0007 | 0.63 | failed | 0.68 | 0.0007 |
Inheritance Test | 1.5 | failed | 9.3 | failed | 5.4 | failed |
Indexing Test | 1.5 | failed | 9.2 | failed | 5.3 | failed |
Graph (Binary Tree) Test | 2.6 | failed | 12.3 | failed | 7.4 | failed |
Multithreading Test | 3.4 | failed | 10.8 | failed | 7.1 | failed |
All Tests | 1.9 | 0.0007 | 8.3 | failed | 5.1 | 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded |
Basic Person Test | 49.1 | 1.2 | 4.7 | failed | 26.9 | 1.2 |
Element Collection Test | 39.1 | 0.29 | 0.48 | failed | 19.8 | 0.29 |
Inheritance Test | 55.9 | 0.69 | 6.6 | failed | 31.2 | 0.69 |
Indexing Test | 0.048 | 0.0008 | 6.4 | failed | 3.2 | 0.0008 |
Multithreading Test | failed | failed | failed | failed | failed | failed |
All Tests | 36.0 | 0.55 | 4.5 | failed | 20.3 | 0.55 |
DataNucleus with PostgreSQL server has failed in 2 tests (see exceptions). 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded |
Basic Person Test | 2.1 | failed | 0.84 | failed | 1.5 | failed |
Element Collection Test | 1.4 | 0.0016 | 0.64 | failed | 1.0 | 0.0016 |
Inheritance Test | 2.1 | failed | 1.2 | failed | 1.7 | failed |
Indexing Test | 2.2 | failed | 1.5 | failed | 1.8 | failed |
Graph (Binary Tree) Test | 0.65 | failed | 0.20 | failed | 0.42 | failed |
Multithreading Test | 0.46 | failed | failed | failed | 0.46 | failed |
All Tests | 1.5 | 0.0016 | 0.87 | failed | 1.2 | 0.0016 |
DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions). 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded |
Basic Person Test | 3.0 | failed | 1.3 | failed | 2.2 | failed |
Element Collection Test | 1.0 | 0.0006 | 0.39 | failed | 0.69 | 0.0006 |
Inheritance Test | 2.8 | failed | 1.3 | failed | 2.1 | failed |
Indexing Test | 5.4 | failed | 1.9 | failed | 3.7 | failed |
Graph (Binary Tree) Test | 0.38 | failed | 0.37 | failed | 0.37 | failed |
Multithreading Test | 13.8 | failed | failed | failed | 13.8 | failed |
All Tests | 4.4 | 0.0006 | 1.1 | failed | 2.9 | 0.0006 |
DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions). 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded | DataNucleus PostgreSQL server | EclipseLink SQLite embedded |
Basic Person Test | 12.0 | 0.66 | 3.4 | 0.90 | 7.7 | 0.74 |
Element Collection Test | 8.6 | 0.070 | 0.50 | 0.65 | 4.6 | 0.17 |
Inheritance Test | 13.2 | 0.38 | 4.2 | 0.82 | 8.7 | 0.53 |
Indexing Test | 3.0 | 0.058 | 5.1 | 1.6 | 4.0 | 0.58 |
Graph (Binary Tree) Test | 1.1 | 0.24 | 3.4 | 0.91 | 2.3 | 0.57 |
Multithreading Test | 8.9 | 0.10 | 9.5 | 2.1 | 9.1 | 1.1 |
All Tests | 8.0 | 0.22 | 3.8 | 1.2 | 6.0 | 0.52 |
The results above show that in general DataNucleus with PostgreSQL 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 DataNucleus with PostgreSQL database server (6.0) reveals that in these tests, DataNucleus with PostgreSQL server is 11.5 times faster than EclipseLink 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 EclipseLink with SQLite embedded database (0.070) to the normalized speed of DataNucleus with PostgreSQL database server (8.6) reveals that in that case, DataNucleus with PostgreSQL server is 123 times faster than EclipseLink with SQLite embedded.
Other Head to Head DBMS/JPA Comparisons
DataNucleus with PostgreSQL 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
- 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 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