Compare with

Comparison of ObjectDB server vs OpenJPA with H2 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
 ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
Basic Person Test35.217.174.15.854.711.5
Element Collection Test38.210.957.84.948.07.9
Inheritance Test32.714.372.85.952.710.1
Indexing Test49.924.490.113.770.019.1
Graph (Binary Tree) Test1006.889.26.794.66.7
Multithreading Test76.634.299.410.288.022.2
All Tests55.417.980.67.968.012.9

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

A huge performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of OpenJPA with H2 embedded database (6.8) to the normalized speed of ObjectDB database server (100) reveals that in that case, ObjectDB server is 14.7 times faster than OpenJPA with H2 embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
Basic Person Test15.714.645.427.230.520.9
Element Collection Test19.90.004649.24.334.62.1
Inheritance Test13.20.01149.47.431.33.7
Indexing Test14.017.059.535.036.826.0
Graph (Binary Tree) Test19.91.024.71.422.31.2
Multithreading Test19.718.760.227.640.023.1
All Tests17.18.648.117.132.612.8

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

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.0046) to the normalized speed of ObjectDB database server (19.9) reveals that in that case, ObjectDB server is 4,326 times faster than OpenJPA with H2 embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
Basic Person Test38.85.025.91.132.43.1
Element Collection Test39.51.733.11.336.31.5
Inheritance Test34.82.234.01.234.41.7
Indexing Test14.513.853.323.233.918.5
Multithreading Test50.81.452.10.6051.50.99
All Tests35.74.839.75.537.75.1

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

A huge performance gap has been detected when using multithreading with large retrieval size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.60) to the normalized speed of ObjectDB database server (52.1) reveals that in that case, ObjectDB server is 86.8 times faster than OpenJPA with H2 embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
Basic Person Test18.310.040.96.029.68.0
Element Collection Test21.10.01153.73.837.41.9
Inheritance Test19.90.04651.95.035.92.5
Indexing Test17.98.952.17.035.08.0
Graph (Binary Tree) Test42.62.424.11.333.31.9
Multithreading Test68.616.668.74.368.610.4
All Tests31.46.348.64.640.05.4

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

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.011) to the normalized speed of ObjectDB database server (21.1) reveals that in that case, ObjectDB server is 1,918 times faster than OpenJPA with H2 embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
Basic Person Test20.218.367.711.144.014.7
Element Collection Test22.90.01257.62.940.21.4
Inheritance Test23.10.03061.66.642.33.3
Indexing Test34.923.255.99.745.416.4
Graph (Binary Tree) Test19.31.827.92.423.62.1
Multithreading Test38.531.250.517.344.524.2
All Tests26.512.453.58.340.010.4

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

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with H2 embedded database (0.012) to the normalized speed of ObjectDB database server (22.9) reveals that in that case, ObjectDB server is 1,908 times faster than OpenJPA with H2 embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
ObjectDB serverOpenJPA
H2 embedded
Basic Person Test25.613.050.810.238.211.6
Element Collection Test28.32.550.33.439.33.0
Inheritance Test24.73.353.95.239.34.3
Indexing Test26.217.562.217.744.217.6
Graph (Binary Tree) Test45.43.041.53.043.53.0
Multithreading Test50.820.466.212.058.516.2
All Tests33.110.254.68.843.99.5

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

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

Other Head to Head DBMS/JPA Comparisons