Compare with

Comparison of OpenJPA with HSQLDB embedded vs EclipseLink with HSQLDB 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
 OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
Basic Person Test13.327.16.917.210.122.2
Element Collection Test8.617.25.38.27.012.7
Inheritance Test12.226.75.811.99.019.3
Indexing Test16.730.69.118.612.924.6
Graph (Binary Tree) Test6.120.07.315.96.718.0
Multithreading Test26.832.57.011.416.922.0
All Tests13.925.76.913.910.419.8

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

A large performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (6.1) to the normalized speed of EclipseLink with HSQLDB embedded database (20.0) reveals that in that case, EclipseLink with HSQLDB embedded is 3.3 times faster than OpenJPA with HSQLDB embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
Basic Person Test21.824.430.136.025.930.2
Element Collection Test0.006814.94.519.12.217.0
Inheritance Test0.002522.82.040.00.9831.4
Indexing Test22.120.743.638.732.929.7
Graph (Binary Tree) Test2.18.72.114.22.111.4
Multithreading Test20.924.223.528.022.226.1
All Tests11.119.317.629.314.424.3

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

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 HSQLDB embedded database (0.0025) to the normalized speed of EclipseLink with HSQLDB embedded database (22.8) reveals that in that case, EclipseLink with HSQLDB embedded is 9,120 times faster than OpenJPA with HSQLDB embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
Basic Person Test2.82.90.910.881.91.9
Element Collection Test1.43.20.951.41.22.3
Inheritance Test2.42.61.31.11.81.9
Indexing Test15.421.534.333.324.927.4
Multithreading Test1.41.10.530.520.950.82
All Tests4.76.37.67.46.16.9

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

A large performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (1.4) to the normalized speed of EclipseLink with HSQLDB embedded database (3.2) reveals that in that case, EclipseLink with HSQLDB embedded is 2.3 times faster than OpenJPA with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
Basic Person Test12.017.95.37.08.612.5
Element Collection Test0.01714.63.78.31.811.4
Inheritance Test0.009816.22.09.70.9913.0
Indexing Test9.312.05.56.87.49.4
Graph (Binary Tree) Test2.54.71.63.42.14.0
Multithreading Test20.024.43.74.411.814.4
All Tests7.315.03.66.65.510.8

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

A huge performance gap has been detected when using class inheritance in the object model with small transaction size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (0.0098) to the normalized speed of EclipseLink with HSQLDB embedded database (16.2) reveals that in that case, EclipseLink with HSQLDB embedded is 1,653 times faster than OpenJPA with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
Basic Person Test21.332.315.720.318.526.3
Element Collection Test0.01114.32.96.01.510.2
Inheritance Test0.007029.23.523.91.826.6
Indexing Test28.855.315.227.122.041.2
Graph (Binary Tree) Test2.96.83.614.13.210.4
Multithreading Test26.052.919.628.422.840.6
All Tests13.231.810.120.011.625.9

The results above show that in general EclipseLink with HSQLDB embedded is more efficient than OpenJPA with HSQLDB embedded in deleting JPA entity objects from the database. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (11.6) to the normalized speed of EclipseLink with HSQLDB embedded database (25.9) reveals that in these tests, EclipseLink with HSQLDB embedded is 2.2 times faster than OpenJPA with HSQLDB 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 OpenJPA with HSQLDB embedded database (0.0070) to the normalized speed of EclipseLink with HSQLDB embedded database (29.2) reveals that in that case, EclipseLink with HSQLDB embedded is 4,171 times faster than OpenJPA with HSQLDB embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
Basic Person Test41.441.441.441.441.441.4
Element Collection Test46.946.946.946.946.946.9
Inheritance Test41.441.441.441.441.441.4
Indexing Test48.448.449.249.248.848.8
Graph (Binary Tree) Test28.528.521.421.425.025.0
Multithreading Test51.951.910.310.331.131.1
All Tests43.143.135.135.139.139.1

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
OpenJPA
HSQLDB embedded
EclipseLink
HSQLDB embedded
Basic Person Test14.320.911.816.313.018.6
Element Collection Test2.012.83.58.62.710.7
Inheritance Test2.919.52.917.32.918.4
Indexing Test18.528.021.624.920.026.5
Graph (Binary Tree) Test3.410.03.711.93.511.0
Multithreading Test19.027.010.914.614.920.8
All Tests10.220.19.215.79.717.9

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

A large 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 HSQLDB embedded database (2.9) to the normalized speed of EclipseLink with HSQLDB embedded database (19.5) reveals that in that case, EclipseLink with HSQLDB embedded is 6.7 times faster than OpenJPA with HSQLDB embedded.

Other Head to Head DBMS/JPA Comparisons