Compare with

Comparison of OpenJPA with H2 server vs EclipseLink with H2 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
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
Basic Person Test3.75.62.22.52.94.0
Element Collection Test2.64.21.51.52.12.8
Inheritance Test4.56.62.02.13.24.4
Indexing Test7.39.73.64.15.46.9
Graph (Binary Tree) Test1.14.70.843.50.974.1
Multithreading Test7.710.24.24.05.97.1
All Tests4.56.82.42.93.44.9

The results above show that in general EclipseLink with H2 server is more efficient than OpenJPA with H2 server 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 H2 database server (1.1) to the normalized speed of EclipseLink with H2 database server (4.7) reveals that in that case, EclipseLink with H2 server is 4.3 times faster than OpenJPA with H2 server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
Basic Person Test2.95.57.68.25.26.8
Element Collection Test0.00223.21.94.20.933.7
Inheritance Test0.0134.74.010.12.07.4
Indexing Test4.14.48.89.46.56.9
Graph (Binary Tree) Test0.381.10.491.90.441.5
Multithreading Test5.912.214.015.910.014.0
All Tests2.25.26.18.34.26.7

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

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with H2 database server (0.0022) to the normalized speed of EclipseLink with H2 database server (3.2) reveals that in that case, EclipseLink with H2 server is 1,455 times faster than OpenJPA with H2 server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
Basic Person Test3.73.81.01.12.42.5
Element Collection Test2.04.11.21.11.62.6
Inheritance Test2.83.21.11.32.02.3
Indexing Test3.83.07.58.05.75.5
Multithreading Test0.981.11.01.01.01.1
All Tests2.73.02.42.52.52.8

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
Basic Person Test3.04.52.02.22.53.4
Element Collection Test0.00783.81.92.40.943.1
Inheritance Test0.0344.42.83.01.43.7
Indexing Test2.84.23.23.13.03.7
Graph (Binary Tree) Test0.791.40.430.790.611.1
Multithreading Test7.07.82.52.54.85.1
All Tests2.34.32.12.32.23.3

The results above show that in general EclipseLink with H2 server is more efficient than OpenJPA with H2 server 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 H2 database server (0.0078) to the normalized speed of EclipseLink with H2 database server (3.8) reveals that in that case, EclipseLink with H2 server is 487 times faster than OpenJPA with H2 server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
Basic Person Test3.26.42.23.12.74.8
Element Collection Test0.00603.00.881.30.442.2
Inheritance Test0.0305.63.12.81.64.2
Indexing Test6.510.33.63.85.17.0
Graph (Binary Tree) Test0.731.50.751.30.741.4
Multithreading Test7.67.05.24.96.46.0
All Tests3.05.62.62.92.84.3

The results above show that in general EclipseLink with H2 server is more efficient than OpenJPA with H2 server 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 H2 database server (0.0060) to the normalized speed of EclipseLink with H2 database server (3.0) reveals that in that case, EclipseLink with H2 server is 500 times faster than OpenJPA with H2 server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
OpenJPA
H2 server
EclipseLink
H2 server
Basic Person Test3.35.23.03.43.14.3
Element Collection Test0.933.61.52.11.22.9
Inheritance Test1.54.92.63.92.04.4
Indexing Test4.96.35.45.75.16.0
Graph (Binary Tree) Test0.752.10.631.90.692.0
Multithreading Test5.97.75.45.75.66.7
All Tests2.95.13.23.83.04.5

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

A large performance gap has been detected when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of OpenJPA with H2 database server (0.93) to the normalized speed of EclipseLink with H2 database server (3.6) reveals that in that case, EclipseLink with H2 server is 3.9 times faster than OpenJPA with H2 server.

Other Head to Head DBMS/JPA Comparisons