Comparison of DataNucleus with PostgreSQL server vs DataNucleus with DB4O 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 | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded |
Basic Person Test | 4.1 | 0.059 | 2.6 | 1.3 | 3.3 | 0.69 |
Element Collection Test | 0.91 | 0.045 | 0.38 | 1.0 | 0.64 | 0.52 |
Inheritance Test | 3.8 | 0.051 | 2.4 | 0.85 | 3.1 | 0.45 |
Indexing Test | 6.0 | 0.080 | 6.4 | 2.3 | 6.2 | 1.2 |
Graph (Binary Tree) Test | 0.91 | failed | 0.77 | failed | 0.84 | failed |
Multithreading Test | 18.0 | failed | 8.3 | failed | 13.1 | failed |
All Tests | 5.6 | 0.059 | 3.5 | 1.4 | 4.5 | 0.71 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general DataNucleus with PostgreSQL server is much more efficient than DataNucleus with DB4O embedded in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.71) to the normalized speed of DataNucleus with PostgreSQL database server (4.5) reveals that in these tests, DataNucleus with PostgreSQL server is 6.3 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.080) to the normalized speed of DataNucleus with PostgreSQL database server (6.0) reveals that in that case, DataNucleus with PostgreSQL server is 75.0 times faster than DataNucleus with DB4O embedded.
On the other hand, DataNucleus with PostgreSQL server is slower, for instance, 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 DataNucleus with DB4O embedded database (1.0) reveals that in that case, DataNucleus with PostgreSQL server is 2.6 times slower than DataNucleus with DB4O embedded.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded |
Basic Person Test | 1.7 | 0.0047 | 7.6 | 1.8 | 4.6 | 0.90 |
Element Collection Test | 0.73 | 0.0038 | 0.63 | 1.5 | 0.68 | 0.77 |
Inheritance Test | 1.5 | 0.0035 | 9.3 | 2.2 | 5.4 | 1.1 |
Indexing Test | 1.5 | 0.0043 | 9.2 | 1.8 | 5.3 | 0.89 |
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.0041 | 8.3 | 1.8 | 5.1 | 0.91 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general DataNucleus with PostgreSQL server is much more efficient than DataNucleus with DB4O embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.91) to the normalized speed of DataNucleus with PostgreSQL database server (5.1) reveals that in these tests, DataNucleus with PostgreSQL server is 5.6 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0035) to the normalized speed of DataNucleus with PostgreSQL database server (1.5) reveals that in that case, DataNucleus with PostgreSQL server is 429 times faster than DataNucleus with DB4O embedded.
On the other hand, DataNucleus with PostgreSQL server is slower, for instance, 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 DataNucleus with DB4O embedded database (1.5) reveals that in that case, DataNucleus with PostgreSQL server is 2.4 times slower than DataNucleus with DB4O embedded.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded |
Basic Person Test | 49.1 | failed | 4.7 | failed | 26.9 | failed |
Element Collection Test | 39.1 | failed | 0.48 | failed | 19.8 | failed |
Inheritance Test | 55.9 | failed | 6.6 | failed | 31.2 | failed |
Indexing Test | 0.048 | failed | 6.4 | failed | 3.2 | failed |
Multithreading Test | failed | failed | failed | failed | failed | failed |
All Tests | 36.0 | failed | 4.5 | failed | 20.3 | failed |
DataNucleus with PostgreSQL server has failed in 2 tests (see exceptions). DataNucleus with DB4O embedded has failed in 10 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 | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded |
Basic Person Test | 2.1 | 0.012 | 0.84 | 0.76 | 1.5 | 0.39 |
Element Collection Test | 1.4 | 0.012 | 0.64 | 1.1 | 1.0 | 0.53 |
Inheritance Test | 2.1 | 0.011 | 1.2 | 0.81 | 1.7 | 0.41 |
Indexing Test | 2.2 | 0.011 | 1.5 | 1.3 | 1.8 | 0.64 |
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.012 | 0.87 | 0.97 | 1.2 | 0.49 |
DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions). DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general DataNucleus with PostgreSQL server is more efficient than DataNucleus with DB4O embedded in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.49) to the normalized speed of DataNucleus with PostgreSQL database server (1.2) reveals that in these tests, DataNucleus with PostgreSQL server is 2.4 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.011) to the normalized speed of DataNucleus with PostgreSQL database server (2.2) reveals that in that case, DataNucleus with PostgreSQL server is 200 times faster than DataNucleus with DB4O embedded.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded |
Basic Person Test | 3.0 | 0.011 | 1.3 | 1.5 | 2.2 | 0.74 |
Element Collection Test | 1.0 | 0.010 | 0.39 | 1.6 | 0.69 | 0.80 |
Inheritance Test | 2.8 | 0.0093 | 1.3 | 1.1 | 2.1 | 0.57 |
Indexing Test | 5.4 | 0.017 | 1.9 | 2.1 | 3.7 | 1.1 |
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.012 | 1.1 | 1.6 | 2.9 | 0.79 |
DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions). DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general DataNucleus with PostgreSQL server is much more efficient than DataNucleus with DB4O embedded in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.79) to the normalized speed of DataNucleus with PostgreSQL database server (2.9) reveals that in these tests, DataNucleus with PostgreSQL server is 3.7 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.017) to the normalized speed of DataNucleus with PostgreSQL database server (5.4) reveals that in that case, DataNucleus with PostgreSQL server is 318 times faster than DataNucleus with DB4O embedded.
On the other hand, DataNucleus with PostgreSQL server is slower, for instance, when using JPA element collections with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.39) to the normalized speed of DataNucleus with DB4O embedded database (1.6) reveals that in that case, DataNucleus with PostgreSQL server is 4.1 times slower than DataNucleus with DB4O embedded.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded | DataNucleus PostgreSQL server | DataNucleus DB4O embedded |
Basic Person Test | 12.0 | 0.022 | 3.4 | 1.3 | 7.7 | 0.68 |
Element Collection Test | 8.6 | 0.018 | 0.50 | 1.3 | 4.6 | 0.66 |
Inheritance Test | 13.2 | 0.019 | 4.2 | 1.2 | 8.7 | 0.63 |
Indexing Test | 3.0 | 0.028 | 5.1 | 1.9 | 4.0 | 0.94 |
Graph (Binary Tree) Test | 1.1 | failed | 3.4 | failed | 2.3 | failed |
Multithreading Test | 8.9 | failed | 9.5 | failed | 9.1 | failed |
All Tests | 8.0 | 0.022 | 3.8 | 1.4 | 6.0 | 0.73 |
The results above show that in general DataNucleus with PostgreSQL server is much more efficient than DataNucleus with DB4O embedded in performing JPA database operations. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.73) to the normalized speed of DataNucleus with PostgreSQL database server (6.0) reveals that in these tests, DataNucleus with PostgreSQL server is 8.2 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using class inheritance in the object model with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.019) to the normalized speed of DataNucleus with PostgreSQL database server (13.2) reveals that in that case, DataNucleus with PostgreSQL server is 695 times faster than DataNucleus with DB4O embedded.
On the other hand, DataNucleus with PostgreSQL server is slower, for instance, 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 DataNucleus with DB4O embedded database (1.3) reveals that in that case, DataNucleus with PostgreSQL server is 2.6 times slower than DataNucleus with DB4O 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
DataNucleus with DB4O 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 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 embedded
- ObjectDB server