Comparison of DataNucleus with PostgreSQL server vs ObjectDB 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 | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded |
Basic Person Test | 4.1 | 100 | 2.6 | 100 | 3.3 | 100 |
Element Collection Test | 0.91 | 100 | 0.38 | 100 | 0.64 | 100 |
Inheritance Test | 3.8 | 100 | 2.4 | 100 | 3.1 | 100 |
Indexing Test | 6.0 | 100 | 6.4 | 100 | 6.2 | 100 |
Graph (Binary Tree) Test | 0.91 | 88.4 | 0.77 | 100 | 0.84 | 94.2 |
Multithreading Test | 18.0 | 100 | 8.3 | 100 | 13.1 | 100 |
All Tests | 5.6 | 98.1 | 3.5 | 100 | 4.5 | 99.0 |
The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (4.5) to the normalized speed of ObjectDB embedded database (99.0) reveals that in these tests, ObjectDB embedded is 22.0 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using JPA element collections with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.38) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 263 times faster than DataNucleus with PostgreSQL server.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded |
Basic Person Test | 1.7 | 100 | 7.6 | 100 | 4.6 | 100 |
Element Collection Test | 0.73 | 100 | 0.63 | 100 | 0.68 | 100 |
Inheritance Test | 1.5 | 100 | 9.3 | 100 | 5.4 | 100 |
Indexing Test | 1.5 | 100 | 9.2 | 100 | 5.3 | 100 |
Graph (Binary Tree) Test | 2.6 | 100 | 12.3 | 100 | 7.4 | 100 |
Multithreading Test | 3.4 | 100 | 10.8 | 100 | 7.1 | 100 |
All Tests | 1.9 | 100 | 8.3 | 100 | 5.1 | 100 |
The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (5.1) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 19.6 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.63) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 159 times faster than DataNucleus with PostgreSQL server.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded |
Basic Person Test | 49.1 | 100 | 4.7 | 100 | 26.9 | 100 |
Element Collection Test | 39.1 | 100 | 0.48 | 100 | 19.8 | 100 |
Inheritance Test | 55.9 | 100 | 6.6 | 100 | 31.2 | 100 |
Indexing Test | 0.048 | 100 | 6.4 | 100 | 3.2 | 100 |
Multithreading Test | failed | 100 | failed | 100 | failed | 100 |
All Tests | 36.0 | 100 | 4.5 | 100 | 20.3 | 100 |
DataNucleus with PostgreSQL server has failed in 2 tests (see exceptions).
The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in executing the tested JPA queries. Comparing the normalized speed of DataNucleus with PostgreSQL database server (20.3) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 4.9 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.048) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 2,083 times faster than DataNucleus with PostgreSQL server.
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded |
Basic Person Test | 2.1 | 100 | 0.84 | 100 | 1.5 | 100 |
Element Collection Test | 1.4 | 100 | 0.64 | 100 | 1.0 | 100 |
Inheritance Test | 2.1 | 100 | 1.2 | 100 | 1.7 | 100 |
Indexing Test | 2.2 | 100 | 1.5 | 100 | 1.8 | 100 |
Graph (Binary Tree) Test | 0.65 | 100 | 0.20 | 100 | 0.42 | 100 |
Multithreading Test | 0.46 | 100 | failed | 100 | 0.46 | 100 |
All Tests | 1.5 | 100 | 0.87 | 100 | 1.2 | 100 |
DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).
The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (1.2) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 83.3 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.20) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 500 times faster than DataNucleus with PostgreSQL server.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded |
Basic Person Test | 3.0 | 100 | 1.3 | 100 | 2.2 | 100 |
Element Collection Test | 1.0 | 100 | 0.39 | 100 | 0.69 | 100 |
Inheritance Test | 2.8 | 100 | 1.3 | 100 | 2.1 | 100 |
Indexing Test | 5.4 | 100 | 1.9 | 100 | 3.7 | 100 |
Graph (Binary Tree) Test | 0.38 | 100 | 0.37 | 100 | 0.37 | 100 |
Multithreading Test | 13.8 | 100 | failed | 100 | 13.8 | 100 |
All Tests | 4.4 | 100 | 1.1 | 100 | 2.9 | 100 |
DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).
The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (2.9) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 34.5 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.37) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 270 times faster than DataNucleus with PostgreSQL server.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded | DataNucleus PostgreSQL server | ObjectDB embedded |
Basic Person Test | 12.0 | 100 | 3.4 | 100 | 7.7 | 100 |
Element Collection Test | 8.6 | 100 | 0.50 | 100 | 4.6 | 100 |
Inheritance Test | 13.2 | 100 | 4.2 | 100 | 8.7 | 100 |
Indexing Test | 3.0 | 100 | 5.1 | 100 | 4.0 | 100 |
Graph (Binary Tree) Test | 1.1 | 97.1 | 3.4 | 100 | 2.3 | 98.5 |
Multithreading Test | 8.9 | 100 | 9.5 | 100 | 9.1 | 100 |
All Tests | 8.0 | 99.6 | 3.8 | 100 | 6.0 | 99.8 |
The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in performing JPA database operations. Comparing the normalized speed of DataNucleus with PostgreSQL database server (6.0) to the normalized speed of ObjectDB embedded database (99.8) reveals that in these tests, ObjectDB embedded is 16.6 times faster than DataNucleus with PostgreSQL server.
A huge performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.50) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 200 times faster than DataNucleus with PostgreSQL server.
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
ObjectDB 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 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 server