Comparison of DataNucleus with DB4O embedded vs OpenJPA with PostgreSQL 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server |
Basic Person Test | 0.059 | 5.2 | 1.3 | 4.8 | 0.69 | 5.0 |
Element Collection Test | 0.045 | 2.8 | 1.0 | 2.2 | 0.52 | 2.5 |
Inheritance Test | 0.051 | 4.6 | 0.85 | 3.2 | 0.45 | 3.9 |
Indexing Test | 0.080 | 7.4 | 2.3 | 6.9 | 1.2 | 7.1 |
Graph (Binary Tree) Test | failed | 0.98 | failed | 0.81 | failed | 0.89 |
Multithreading Test | failed | 23.4 | failed | 9.1 | failed | 16.2 |
All Tests | 0.059 | 7.4 | 1.4 | 4.5 | 0.71 | 5.9 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general OpenJPA 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 OpenJPA with PostgreSQL database server (5.9) reveals that in these tests, OpenJPA with PostgreSQL server is 8.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 OpenJPA with PostgreSQL database server (7.4) reveals that in that case, OpenJPA with PostgreSQL server is 92.5 times faster 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 DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server |
Basic Person Test | 0.0047 | 5.8 | 1.8 | 16.1 | 0.90 | 10.9 |
Element Collection Test | 0.0038 | 0.013 | 1.5 | 8.7 | 0.77 | 4.4 |
Inheritance Test | 0.0035 | 5.2 | 2.2 | 17.6 | 1.1 | 11.4 |
Indexing Test | 0.0043 | 4.8 | 1.8 | 18.7 | 0.89 | 11.8 |
Graph (Binary Tree) Test | failed | 0.27 | failed | 0.35 | failed | 0.31 |
Multithreading Test | failed | 11.9 | failed | 23.3 | failed | 17.6 |
All Tests | 0.0041 | 4.7 | 1.8 | 14.1 | 0.91 | 9.4 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general OpenJPA 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 OpenJPA with PostgreSQL database server (9.4) reveals that in these tests, OpenJPA with PostgreSQL server is 10.3 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 OpenJPA with PostgreSQL database server (5.2) reveals that in that case, OpenJPA with PostgreSQL server is 1,486 times faster 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 DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server |
Basic Person Test | failed | failed | failed | failed | failed | failed |
Element Collection Test | failed | failed | failed | failed | failed | failed |
Inheritance Test | failed | failed | failed | failed | failed | failed |
Indexing Test | failed | failed | failed | failed | failed | failed |
Multithreading Test | failed | failed | failed | failed | failed | failed |
All Tests | failed | failed | failed | failed | failed | failed |
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | DataNucleus DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server |
Basic Person Test | 0.012 | 4.9 | 0.76 | 3.9 | 0.39 | 4.4 |
Element Collection Test | 0.012 | 0.033 | 1.1 | 4.6 | 0.53 | 2.3 |
Inheritance Test | 0.011 | 4.8 | 0.81 | 4.9 | 0.41 | 4.9 |
Indexing Test | 0.011 | 5.1 | 1.3 | 6.0 | 0.64 | 5.6 |
Graph (Binary Tree) Test | failed | 0.57 | failed | 0.31 | failed | 0.44 |
Multithreading Test | failed | 22.2 | failed | 7.4 | failed | 14.8 |
All Tests | 0.012 | 6.3 | 0.97 | 4.5 | 0.49 | 5.4 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general OpenJPA with PostgreSQL server is much 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 OpenJPA with PostgreSQL database server (5.4) reveals that in these tests, OpenJPA with PostgreSQL server is 11.0 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 OpenJPA with PostgreSQL database server (5.1) reveals that in that case, OpenJPA with PostgreSQL server is 464 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 DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server |
Basic Person Test | 0.011 | 4.6 | 1.5 | 5.3 | 0.74 | 5.0 |
Element Collection Test | 0.010 | 0.032 | 1.6 | 2.8 | 0.80 | 1.4 |
Inheritance Test | 0.0093 | 4.3 | 1.1 | 4.6 | 0.57 | 4.4 |
Indexing Test | 0.017 | 8.0 | 2.1 | 7.1 | 1.1 | 7.5 |
Graph (Binary Tree) Test | failed | 0.53 | failed | 0.55 | failed | 0.54 |
Multithreading Test | failed | 17.4 | failed | 9.1 | failed | 13.3 |
All Tests | 0.012 | 5.8 | 1.6 | 4.9 | 0.79 | 5.4 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general OpenJPA 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 OpenJPA with PostgreSQL database server (5.4) reveals that in these tests, OpenJPA with PostgreSQL server is 6.8 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 OpenJPA with PostgreSQL database server (8.0) reveals that in that case, OpenJPA with PostgreSQL server is 471 times faster 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 DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server | DataNucleus DB4O embedded | OpenJPA PostgreSQL server |
Basic Person Test | 0.022 | 5.1 | 1.3 | 7.5 | 0.68 | 6.3 |
Element Collection Test | 0.018 | 0.72 | 1.3 | 4.6 | 0.66 | 2.6 |
Inheritance Test | 0.019 | 4.7 | 1.2 | 7.6 | 0.63 | 6.2 |
Indexing Test | 0.028 | 6.3 | 1.9 | 9.7 | 0.94 | 8.0 |
Graph (Binary Tree) Test | failed | 0.59 | failed | 0.50 | failed | 0.55 |
Multithreading Test | failed | 18.7 | failed | 12.2 | failed | 15.5 |
All Tests | 0.022 | 6.0 | 1.4 | 7.0 | 0.73 | 6.5 |
The results above show that in general OpenJPA 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 OpenJPA with PostgreSQL database server (6.5) reveals that in these tests, OpenJPA with PostgreSQL server is 8.9 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 OpenJPA with PostgreSQL database server (4.7) reveals that in that case, OpenJPA with PostgreSQL server is 247 times faster than DataNucleus with DB4O embedded.
Other Head to Head DBMS/JPA Comparisons
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
OpenJPA 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
- 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
- ObjectDB embedded
- ObjectDB server