Compare with

Comparison of EclipseLink with Derby embedded vs OpenJPA with Derby embedded

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
 EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
Basic Person Test5.54.83.72.94.63.9
Element Collection Test3.02.81.71.92.42.4
Inheritance Test5.34.13.52.44.43.3
Indexing Test6.96.14.64.15.85.1
Graph (Binary Tree) Test2.01.51.91.41.91.4
Multithreading Test9.38.74.13.36.76.0
All Tests5.34.73.22.74.33.7

The results above show that in general EclipseLink with Derby embedded is slightly more efficient than OpenJPA with Derby embedded in persisting JPA entity objects to the database.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
Basic Person Test16.414.858.722.637.518.7
Element Collection Test7.50.003113.32.310.41.2
Inheritance Test17.10.01558.97.038.03.5
Indexing Test14.211.767.426.540.819.1
Graph (Binary Tree) Test2.80.935.71.24.21.1
Multithreading Test28.025.248.728.638.426.9
All Tests14.38.842.114.728.211.7

The results above show that in general EclipseLink with Derby embedded is more efficient than OpenJPA with Derby embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of OpenJPA with Derby embedded database (11.7) to the normalized speed of EclipseLink with Derby embedded database (28.2) reveals that in these tests, EclipseLink with Derby embedded is 2.4 times faster than OpenJPA with Derby embedded.

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with Derby embedded database (0.0031) to the normalized speed of EclipseLink with Derby embedded database (7.5) reveals that in that case, EclipseLink with Derby embedded is 2,419 times faster than OpenJPA with Derby embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
Basic Person Test53.449.713.89.933.629.8
Element Collection Test37.92.74.49.621.26.1
Inheritance Test37.42.315.01.326.21.8
Indexing Test7.67.049.317.128.412.1
Multithreading Test41.240.96.111.723.626.3
All Tests35.520.517.79.926.615.2

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

A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of OpenJPA with Derby embedded database (2.3) to the normalized speed of EclipseLink with Derby embedded database (37.4) reveals that in that case, EclipseLink with Derby embedded is 16.3 times faster than OpenJPA with Derby embedded.

On the other hand, EclipseLink with Derby embedded is slower, for instance, when using JPA element collections with large retrieval size. Comparing the normalized speed of EclipseLink with Derby embedded database (4.4) to the normalized speed of OpenJPA with Derby embedded database (9.6) reveals that in that case, EclipseLink with Derby embedded is 2.2 times slower than OpenJPA with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
Basic Person Test6.45.66.75.26.55.4
Element Collection Test5.40.00906.22.25.81.1
Inheritance Test6.50.0459.24.67.82.3
Indexing Test7.36.111.18.79.27.4
Graph (Binary Tree) Test2.81.61.70.912.21.3
Multithreading Test21.318.35.04.513.111.4
All Tests8.35.36.64.47.54.8

The results above show that in general EclipseLink with Derby embedded is more efficient than OpenJPA with Derby embedded in updating JPA entity objects in the database.

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with Derby embedded database (0.0090) to the normalized speed of EclipseLink with Derby embedded database (5.4) reveals that in that case, EclipseLink with Derby embedded is 600 times faster than OpenJPA with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
Basic Person Test4.64.24.74.54.64.3
Element Collection Test2.50.00711.41.61.90.80
Inheritance Test3.90.0354.53.04.21.5
Indexing Test6.25.33.83.65.04.4
Graph (Binary Tree) Test1.10.801.00.931.10.86
Multithreading Test6.25.75.86.26.06.0
All Tests4.12.73.53.33.83.0

The results above show that in general EclipseLink with Derby embedded is slightly more efficient than OpenJPA with Derby embedded in deleting JPA entity objects from the database.

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with Derby embedded database (0.0071) to the normalized speed of EclipseLink with Derby embedded database (2.5) reveals that in that case, EclipseLink with Derby embedded is 352 times faster than OpenJPA with Derby embedded.

Comparison of database storage efficiency (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
Basic Person Test51.152.851.052.851.152.8
Element Collection Test38.542.439.442.438.942.4
Inheritance Test48.044.247.944.248.044.2
Indexing Test51.653.152.354.052.053.5
Graph (Binary Tree) Test13.412.811.79.612.611.2
Multithreading Test52.650.78.49.730.530.2
All Tests42.542.735.135.538.839.1

The results above show that in general OpenJPA with Derby embedded is slightly more efficient than EclipseLink with Derby embedded in using disk space.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
EclipseLink
Derby embedded
OpenJPA
Derby embedded
Basic Person Test17.315.817.59.017.412.4
Element Collection Test11.31.15.43.58.32.3
Inheritance Test14.01.318.23.716.12.5
Indexing Test8.47.227.212.017.89.6
Graph (Binary Tree) Test2.21.22.61.12.41.2
Multithreading Test21.219.813.910.917.615.3
All Tests12.78.014.56.913.67.4

The results above show that in general EclipseLink with Derby embedded is more efficient than OpenJPA with Derby embedded in performing JPA database operations.

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 OpenJPA with Derby embedded database (1.3) to the normalized speed of EclipseLink with Derby embedded database (14.0) reveals that in that case, EclipseLink with Derby embedded is 10.8 times faster than OpenJPA with Derby embedded.

Other Head to Head DBMS/JPA Comparisons