Comparison of DataNucleus with DB4O 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 | |||
---|---|---|---|---|---|---|
  | DataNucleus DB4O embedded | OpenJPA MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server |
Basic Person Test | 0.059 | 3.9 | 1.3 | 1.6 | 0.69 | 2.7 |
Element Collection Test | 0.045 | 1.6 | 1.0 | 0.68 | 0.52 | 1.1 |
Inheritance Test | 0.051 | 3.6 | 0.85 | 1.4 | 0.45 | 2.5 |
Indexing Test | 0.080 | 5.6 | 2.3 | 2.4 | 1.2 | 4.0 |
Graph (Binary Tree) Test | failed | 0.68 | failed | 0.57 | failed | 0.63 |
Multithreading Test | failed | 7.2 | failed | 2.7 | failed | 4.9 |
All Tests | 0.059 | 3.7 | 1.4 | 1.5 | 0.71 | 2.6 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general OpenJPA with MySQL 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 MySQL database server (2.6) reveals that in these tests, OpenJPA with MySQL server is 3.7 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 size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.051) to the normalized speed of OpenJPA with MySQL database server (3.6) reveals that in that case, OpenJPA with MySQL server is 70.6 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 MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server |
Basic Person Test | 0.0047 | 3.2 | 1.8 | 22.7 | 0.90 | 12.9 |
Element Collection Test | 0.0038 | 0.0038 | 1.5 | 2.9 | 0.77 | 1.4 |
Inheritance Test | 0.0035 | 0.017 | 2.2 | 6.9 | 1.1 | 3.4 |
Indexing Test | 0.0043 | 2.4 | 1.8 | 23.4 | 0.89 | 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.0041 | 1.0 | 1.8 | 12.4 | 0.91 | 6.7 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general OpenJPA with MySQL 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 MySQL database server (6.7) reveals that in these tests, OpenJPA with MySQL server is 7.4 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0047) to the normalized speed of OpenJPA with MySQL database server (3.2) reveals that in that case, OpenJPA with MySQL server is 681 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 MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server |
Basic Person Test | failed | 9.3 | failed | 2.2 | failed | 5.8 |
Element Collection Test | failed | 4.8 | failed | 1.1 | failed | 2.9 |
Inheritance Test | failed | 1.5 | failed | 0.90 | failed | 1.2 |
Indexing Test | failed | 0.31 | failed | 2.1 | failed | 1.2 |
Multithreading Test | failed | 1.9 | failed | 0.99 | failed | 1.4 |
All Tests | failed | 3.6 | failed | 1.5 | failed | 2.5 |
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 DB4O embedded | OpenJPA MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server |
Basic Person Test | 0.012 | 0.74 | 0.76 | 1.6 | 0.39 | 1.2 |
Element Collection Test | 0.012 | 0.014 | 1.1 | 1.7 | 0.53 | 0.87 |
Inheritance Test | 0.011 | 0.048 | 0.81 | 2.0 | 0.41 | 1.0 |
Indexing Test | 0.011 | 0.74 | 1.3 | 3.0 | 0.64 | 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.012 | 0.42 | 0.97 | 1.9 | 0.49 | 1.2 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general OpenJPA with MySQL 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 OpenJPA with MySQL database server (1.2) reveals that in these tests, OpenJPA with MySQL 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 OpenJPA with MySQL database server (0.74) reveals that in that case, OpenJPA with MySQL server is 67.3 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 MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server |
Basic Person Test | 0.011 | 0.98 | 1.5 | 1.7 | 0.74 | 1.4 |
Element Collection Test | 0.010 | 0.0099 | 1.6 | 0.65 | 0.80 | 0.33 |
Inheritance Test | 0.0093 | 0.033 | 1.1 | 1.5 | 0.57 | 0.75 |
Indexing Test | 0.017 | 0.64 | 2.1 | 2.0 | 1.1 | 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.012 | 0.39 | 1.6 | 1.5 | 0.79 | 0.96 |
DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).
The results above show that in general OpenJPA with MySQL server is slightly more efficient than DataNucleus with DB4O embedded in deleting JPA entity objects from the database.
A huge performance gap has been detected when using simple basic entities with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.011) to the normalized speed of OpenJPA with MySQL database server (0.98) reveals that in that case, OpenJPA with MySQL server is 89.1 times faster than DataNucleus with DB4O embedded.
On the other hand, OpenJPA with MySQL server is slower, for instance, when using JPA element collections with large transaction size. Comparing the normalized speed of OpenJPA with MySQL database server (0.65) to the normalized speed of DataNucleus with DB4O embedded database (1.6) reveals that in that case, OpenJPA with MySQL server is 2.5 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 DB4O embedded | OpenJPA MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server | DataNucleus DB4O embedded | OpenJPA MySQL server |
Basic Person Test | 0.022 | 3.6 | 1.3 | 6.0 | 0.68 | 4.8 |
Element Collection Test | 0.018 | 1.3 | 1.3 | 1.4 | 0.66 | 1.3 |
Inheritance Test | 0.019 | 1.0 | 1.2 | 2.5 | 0.63 | 1.8 |
Indexing Test | 0.028 | 1.9 | 1.9 | 6.6 | 0.94 | 4.3 |
Graph (Binary Tree) Test | failed | 0.45 | failed | 0.40 | failed | 0.43 |
Multithreading Test | failed | 2.0 | failed | 5.5 | failed | 3.8 |
All Tests | 0.022 | 1.8 | 1.4 | 3.9 | 0.73 | 2.8 |
The results above show that in general OpenJPA with MySQL 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 MySQL database server (2.8) reveals that in these tests, OpenJPA with MySQL server is 3.8 times faster than DataNucleus with DB4O embedded.
A huge performance gap has been detected when using simple basic entities with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.022) to the normalized speed of OpenJPA with MySQL database server (3.6) reveals that in that case, OpenJPA with MySQL server is 164 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 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