Compare with

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 EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
Basic Person Test0.0595.21.34.80.695.0
Element Collection Test0.0452.81.02.20.522.5
Inheritance Test0.0514.60.853.20.453.9
Indexing Test0.0807.42.36.91.27.1
Graph (Binary Tree) Testfailed0.98failed0.81failed0.89
Multithreading Testfailed23.4failed9.1failed16.2
All Tests0.0597.41.44.50.715.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 EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
Basic Person Test0.00475.81.816.10.9010.9
Element Collection Test0.00380.0131.58.70.774.4
Inheritance Test0.00355.22.217.61.111.4
Indexing Test0.00434.81.818.70.8911.8
Graph (Binary Tree) Testfailed0.27failed0.35failed0.31
Multithreading Testfailed11.9failed23.3failed17.6
All Tests0.00414.71.814.10.919.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 EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
Basic Person Testfailedfailedfailedfailedfailedfailed
Element Collection Testfailedfailedfailedfailedfailedfailed
Inheritance Testfailedfailedfailedfailedfailedfailed
Indexing Testfailedfailedfailedfailedfailedfailed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Testsfailedfailedfailedfailedfailedfailed

Speed comparison of JPA database update operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
Basic Person Test0.0124.90.763.90.394.4
Element Collection Test0.0120.0331.14.60.532.3
Inheritance Test0.0114.80.814.90.414.9
Indexing Test0.0115.11.36.00.645.6
Graph (Binary Tree) Testfailed0.57failed0.31failed0.44
Multithreading Testfailed22.2failed7.4failed14.8
All Tests0.0126.30.974.50.495.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 EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
Basic Person Test0.0114.61.55.30.745.0
Element Collection Test0.0100.0321.62.80.801.4
Inheritance Test0.00934.31.14.60.574.4
Indexing Test0.0178.02.17.11.17.5
Graph (Binary Tree) Testfailed0.53failed0.55failed0.54
Multithreading Testfailed17.4failed9.1failed13.3
All Tests0.0125.81.64.90.795.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 SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
DataNucleus
DB4O embedded
OpenJPA
PostgreSQL server
Basic Person Test0.0225.11.37.50.686.3
Element Collection Test0.0180.721.34.60.662.6
Inheritance Test0.0194.71.27.60.636.2
Indexing Test0.0286.31.99.70.948.0
Graph (Binary Tree) Testfailed0.59failed0.50failed0.55
Multithreading Testfailed18.7failed12.2failed15.5
All Tests0.0226.01.47.00.736.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