Compare with

Comparison of OpenJPA with PostgreSQL server vs DataNucleus 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
 OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
Basic Person Test5.24.14.82.65.03.3
Element Collection Test2.80.912.20.382.50.64
Inheritance Test4.63.83.22.43.93.1
Indexing Test7.46.06.96.47.16.2
Graph (Binary Tree) Test0.980.910.810.770.890.84
Multithreading Test23.418.09.18.316.213.1
All Tests7.45.64.53.55.94.5

The results above show that in general OpenJPA with PostgreSQL server is more efficient than DataNucleus with PostgreSQL server in persisting JPA entity objects to the database.

A large 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 OpenJPA with PostgreSQL database server (2.2) reveals that in that case, OpenJPA with PostgreSQL server is 5.8 times faster than DataNucleus with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
Basic Person Test5.81.716.17.610.94.6
Element Collection Test0.0130.738.70.634.40.68
Inheritance Test5.21.517.69.311.45.4
Indexing Test4.81.518.79.211.85.3
Graph (Binary Tree) Test0.272.60.3512.30.317.4
Multithreading Test11.93.423.310.817.67.1
All Tests4.71.914.18.39.45.1

The results above show that in general OpenJPA with PostgreSQL server is more efficient than DataNucleus with PostgreSQL server in retrieving JPA entity objects from the database.

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 OpenJPA with PostgreSQL database server (8.7) reveals that in that case, OpenJPA with PostgreSQL server is 13.8 times faster than DataNucleus with PostgreSQL server.

On the other hand, OpenJPA with PostgreSQL server is slower, for instance, when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with PostgreSQL database server (0.013) to the normalized speed of DataNucleus with PostgreSQL database server (0.73) reveals that in that case, OpenJPA with PostgreSQL server is 56.2 times slower than DataNucleus with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
Basic Person Testfailed49.1failed4.7failed26.9
Element Collection Testfailed39.1failed0.48failed19.8
Inheritance Testfailed55.9failed6.6failed31.2
Indexing Testfailed0.048failed6.4failed3.2
Multithreading Testfailedfailedfailedfailedfailedfailed
All Testsfailed36.0failed4.5failed20.3

OpenJPA with PostgreSQL server has failed in 10 tests (see exceptions). DataNucleus with PostgreSQL server has failed in 2 tests (see exceptions).

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
Basic Person Test4.92.13.90.844.41.5
Element Collection Test0.0331.44.60.642.31.0
Inheritance Test4.82.14.91.24.91.7
Indexing Test5.12.26.01.55.61.8
Graph (Binary Tree) Test0.570.650.310.200.440.42
Multithreading Test22.20.467.4failed14.80.46
All Tests6.31.54.50.875.41.2

DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).

The results above show that in general OpenJPA with PostgreSQL server 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 OpenJPA with PostgreSQL database server (5.4) reveals that in these tests, OpenJPA with PostgreSQL server is 4.5 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.46) to the normalized speed of OpenJPA with PostgreSQL database server (22.2) reveals that in that case, OpenJPA with PostgreSQL server is 48.3 times faster than DataNucleus with PostgreSQL server.

On the other hand, OpenJPA with PostgreSQL server is slower, for instance, when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with PostgreSQL database server (0.033) to the normalized speed of DataNucleus with PostgreSQL database server (1.4) reveals that in that case, OpenJPA with PostgreSQL server is 42.4 times slower than DataNucleus with PostgreSQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
Basic Person Test4.63.05.31.35.02.2
Element Collection Test0.0321.02.80.391.40.69
Inheritance Test4.32.84.61.34.42.1
Indexing Test8.05.47.11.97.53.7
Graph (Binary Tree) Test0.530.380.550.370.540.37
Multithreading Test17.413.89.1failed13.313.8
All Tests5.84.44.91.15.42.9

DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).

The results above show that in general OpenJPA with PostgreSQL server is more efficient than DataNucleus with PostgreSQL server in deleting JPA entity objects from the database.

A large 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.39) to the normalized speed of OpenJPA with PostgreSQL database server (2.8) reveals that in that case, OpenJPA with PostgreSQL server is 7.2 times faster than DataNucleus with PostgreSQL server.

On the other hand, OpenJPA with PostgreSQL server is slower, for instance, when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with PostgreSQL database server (0.032) to the normalized speed of DataNucleus with PostgreSQL database server (1.0) reveals that in that case, OpenJPA with PostgreSQL server is 31.2 times slower than DataNucleus with PostgreSQL server.

Comparison of JPA/Database speed - the averages (normalized score, higher is better)

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
OpenJPA
PostgreSQL server
DataNucleus
PostgreSQL server
Basic Person Test5.112.07.53.46.37.7
Element Collection Test0.728.64.60.502.64.6
Inheritance Test4.713.27.64.26.28.7
Indexing Test6.33.09.75.18.04.0
Graph (Binary Tree) Test0.591.10.503.40.552.3
Multithreading Test18.78.912.29.515.59.1
All Tests6.08.07.03.86.56.0

The results above show that in general OpenJPA with PostgreSQL server is slightly more efficient than DataNucleus with PostgreSQL server in performing JPA database operations.

A large 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 OpenJPA with PostgreSQL database server (4.6) reveals that in that case, OpenJPA with PostgreSQL server is 9.2 times faster than DataNucleus with PostgreSQL server.

On the other hand, OpenJPA with PostgreSQL server is slower, for instance, when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of OpenJPA with PostgreSQL database server (0.72) to the normalized speed of DataNucleus with PostgreSQL database server (8.6) reveals that in that case, OpenJPA with PostgreSQL server is 11.9 times slower than DataNucleus with PostgreSQL server.

Other Head to Head DBMS/JPA Comparisons