Compare with

Comparison of OpenJPA with H2 server vs ObjectDB 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
ObjectDB serverOpenJPA
H2 server
ObjectDB serverOpenJPA
H2 server
ObjectDB server
Basic Person Test3.735.22.274.12.954.7
Element Collection Test2.638.21.557.82.148.0
Inheritance Test4.532.72.072.83.252.7
Indexing Test7.349.93.690.15.470.0
Graph (Binary Tree) Test1.11000.8489.20.9794.6
Multithreading Test7.776.64.299.45.988.0
All Tests4.555.42.480.63.468.0

The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 server in persisting JPA entity objects to the database. Comparing the normalized speed of OpenJPA with H2 database server (3.4) to the normalized speed of ObjectDB database server (68.0) reveals that in these tests, ObjectDB server is 20.0 times faster than OpenJPA with H2 server.

A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of OpenJPA with H2 database server (0.84) to the normalized speed of ObjectDB database server (89.2) reveals that in that case, ObjectDB server is 106 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
ObjectDB serverOpenJPA
H2 server
ObjectDB serverOpenJPA
H2 server
ObjectDB server
Basic Person Test2.915.77.645.45.230.5
Element Collection Test0.002219.91.949.20.9334.6
Inheritance Test0.01313.24.049.42.031.3
Indexing Test4.114.08.859.56.536.8
Graph (Binary Tree) Test0.3819.90.4924.70.4422.3
Multithreading Test5.919.714.060.210.040.0
All Tests2.217.16.148.14.232.6

The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 server in retrieving JPA entity objects from the database. Comparing the normalized speed of OpenJPA with H2 database server (4.2) to the normalized speed of ObjectDB database server (32.6) reveals that in these tests, ObjectDB server is 7.8 times faster than OpenJPA with H2 server.

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 ObjectDB database server (19.9) reveals that in that case, ObjectDB server is 9,045 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
ObjectDB serverOpenJPA
H2 server
ObjectDB serverOpenJPA
H2 server
ObjectDB server
Basic Person Test3.738.81.025.92.432.4
Element Collection Test2.039.51.233.11.636.3
Inheritance Test2.834.81.134.02.034.4
Indexing Test3.814.57.553.35.733.9
Multithreading Test0.9850.81.052.11.051.5
All Tests2.735.72.439.72.537.7

The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 server in executing the tested JPA queries. Comparing the normalized speed of OpenJPA with H2 database server (2.5) to the normalized speed of ObjectDB database server (37.7) reveals that in these tests, ObjectDB server is 15.1 times faster than OpenJPA with H2 server.

A huge performance gap has been detected when using multithreading with large retrieval size. Comparing the normalized speed of OpenJPA with H2 database server (1.0) to the normalized speed of ObjectDB database server (52.1) reveals that in that case, ObjectDB server is 52.1 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
ObjectDB serverOpenJPA
H2 server
ObjectDB serverOpenJPA
H2 server
ObjectDB server
Basic Person Test3.018.32.040.92.529.6
Element Collection Test0.007821.11.953.70.9437.4
Inheritance Test0.03419.92.851.91.435.9
Indexing Test2.817.93.252.13.035.0
Graph (Binary Tree) Test0.7942.60.4324.10.6133.3
Multithreading Test7.068.62.568.74.868.6
All Tests2.331.42.148.62.240.0

The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 server in updating JPA entity objects in the database. Comparing the normalized speed of OpenJPA with H2 database server (2.2) to the normalized speed of ObjectDB database server (40.0) reveals that in these tests, ObjectDB server is 18.2 times faster than OpenJPA with H2 server.

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 ObjectDB database server (21.1) reveals that in that case, ObjectDB server is 2,705 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
ObjectDB serverOpenJPA
H2 server
ObjectDB serverOpenJPA
H2 server
ObjectDB server
Basic Person Test3.220.22.267.72.744.0
Element Collection Test0.006022.90.8857.60.4440.2
Inheritance Test0.03023.13.161.61.642.3
Indexing Test6.534.93.655.95.145.4
Graph (Binary Tree) Test0.7319.30.7527.90.7423.6
Multithreading Test7.638.55.250.56.444.5
All Tests3.026.52.653.52.840.0

The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 server in deleting JPA entity objects from the database. Comparing the normalized speed of OpenJPA with H2 database server (2.8) to the normalized speed of ObjectDB database server (40.0) reveals that in these tests, ObjectDB server is 14.3 times faster than OpenJPA with H2 server.

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 ObjectDB database server (22.9) reveals that in that case, ObjectDB server is 3,817 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
ObjectDB serverOpenJPA
H2 server
ObjectDB serverOpenJPA
H2 server
ObjectDB server
Basic Person Test3.325.63.050.83.138.2
Element Collection Test0.9328.31.550.31.239.3
Inheritance Test1.524.72.653.92.039.3
Indexing Test4.926.25.462.25.144.2
Graph (Binary Tree) Test0.7545.40.6341.50.6943.5
Multithreading Test5.950.85.466.25.658.5
All Tests2.933.13.254.63.043.9

The results above show that in general ObjectDB server is much more efficient than OpenJPA with H2 server in performing JPA database operations. Comparing the normalized speed of OpenJPA with H2 database server (3.0) to the normalized speed of ObjectDB database server (43.9) reveals that in these tests, ObjectDB server is 14.6 times faster than OpenJPA with H2 server.

A huge performance gap has been detected when using graphs of objects with large transaction/retrieval size. Comparing the normalized speed of OpenJPA with H2 database server (0.63) to the normalized speed of ObjectDB database server (41.5) reveals that in that case, ObjectDB server is 65.9 times faster than OpenJPA with H2 server.

Other Head to Head DBMS/JPA Comparisons