Compare with

Comparison of DataNucleus with Derby server vs OpenJPA with Derby 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
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
Basic Person Test2.83.12.32.72.62.9
Element Collection Test0.712.00.351.70.531.8
Inheritance Test2.73.02.02.32.32.6
Indexing Test4.54.74.04.14.34.4
Graph (Binary Tree) Test0.620.710.530.640.570.67
Multithreading Test4.96.03.43.84.14.9
All Tests2.73.32.12.52.42.9

The results above show that in general OpenJPA with Derby server is slightly more efficient than DataNucleus with Derby 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 Derby database server (0.35) to the normalized speed of OpenJPA with Derby database server (1.7) reveals that in that case, OpenJPA with Derby server is 4.9 times faster than DataNucleus with Derby server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
Basic Person Test0.560.786.311.63.46.2
Element Collection Test0.360.00240.931.10.640.54
Inheritance Test0.450.0146.85.03.62.5
Indexing Test0.500.627.113.03.86.8
Graph (Binary Tree) Test0.220.0656.60.393.40.23
Multithreading Test1.21.610.019.05.610.3
All Tests0.550.516.38.43.44.4

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
Basic Person Test37.729.23.65.520.717.3
Element Collection Test25.92.21.41.413.61.8
Inheritance Test6.52.21.81.04.21.6
Indexing Test0.0302.24.911.72.57.0
Multithreading Testfailed35.5failed8.3failed21.9
All Tests17.514.32.95.610.29.9

DataNucleus with Derby server has failed in 2 tests (see exceptions).

The results above show that in general DataNucleus with Derby server is slightly more efficient than OpenJPA with Derby server in executing the tested JPA queries.

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with Derby database server (2.2) to the normalized speed of DataNucleus with Derby database server (25.9) reveals that in that case, DataNucleus with Derby server is 11.8 times faster than OpenJPA with Derby server.

On the other hand, DataNucleus with Derby server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.030) to the normalized speed of OpenJPA with Derby database server (2.2) reveals that in that case, DataNucleus with Derby server is 73.3 times slower than OpenJPA with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
Basic Person Test1.11.50.854.00.992.8
Element Collection Test0.810.00810.621.90.710.94
Inheritance Test1.20.0431.33.81.21.9
Indexing Test1.21.81.56.81.34.3
Graph (Binary Tree) Test0.290.160.410.270.350.22
Multithreading Testfailed6.9failed5.0failed5.9
All Tests0.931.70.923.60.922.7

DataNucleus with Derby server has failed in 2 tests (see exceptions).

The results above show that in general OpenJPA with Derby server is more efficient than DataNucleus with Derby server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with Derby database server (0.92) to the normalized speed of OpenJPA with Derby database server (2.7) reveals that in these tests, OpenJPA with Derby server is 2.9 times faster than DataNucleus with Derby server.

A large performance gap has been detected when using simple basic entities with large transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.85) to the normalized speed of OpenJPA with Derby database server (4.0) reveals that in that case, OpenJPA with Derby server is 4.7 times faster than DataNucleus with Derby server.

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
Basic Person Test1.31.41.33.71.32.5
Element Collection Test0.610.00820.331.40.470.71
Inheritance Test1.00.0351.32.51.21.3
Indexing Test2.32.31.93.52.12.9
Graph (Binary Tree) Test0.260.130.460.350.360.24
Multithreading Testfailed3.6failed4.0failed3.8
All Tests1.11.31.12.61.11.9

DataNucleus with Derby server has failed in 2 tests (see exceptions).

The results above show that in general OpenJPA with Derby server is more efficient than DataNucleus with Derby 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 Derby database server (0.33) to the normalized speed of OpenJPA with Derby database server (1.4) reveals that in that case, OpenJPA with Derby server is 4.2 times faster than DataNucleus with Derby server.

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
DataNucleus
Derby server
OpenJPA
Derby server
Basic Person Test8.77.22.95.55.86.4
Element Collection Test5.70.840.721.53.21.2
Inheritance Test2.41.12.62.92.52.0
Indexing Test1.72.33.97.82.85.1
Graph (Binary Tree) Test0.350.272.00.411.20.34
Multithreading Test3.010.76.78.04.99.4
All Tests3.83.92.84.53.34.2

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

A large performance gap has been detected when using multithreading with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (3.0) to the normalized speed of OpenJPA with Derby database server (10.7) reveals that in that case, OpenJPA with Derby server is 3.6 times faster than DataNucleus with Derby server.

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

Other Head to Head DBMS/JPA Comparisons