Compare with

Comparison of OpenJPA with HSQLDB embedded 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
HSQLDB embedded
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB server
Basic Person Test13.335.26.974.110.154.7
Element Collection Test8.638.25.357.87.048.0
Inheritance Test12.232.75.872.89.052.7
Indexing Test16.749.99.190.112.970.0
Graph (Binary Tree) Test6.11007.389.26.794.6
Multithreading Test26.876.67.099.416.988.0
All Tests13.955.46.980.610.468.0

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

A huge 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 ObjectDB database server (100) reveals that in that case, ObjectDB server is 16.4 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
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB server
Basic Person Test21.815.730.145.425.930.5
Element Collection Test0.006819.94.549.22.234.6
Inheritance Test0.002513.22.049.40.9831.3
Indexing Test22.114.043.659.532.936.8
Graph (Binary Tree) Test2.119.92.124.72.122.3
Multithreading Test20.919.723.560.222.240.0
All Tests11.117.117.648.114.432.6

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

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 ObjectDB database server (13.2) reveals that in that case, ObjectDB server is 5,280 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
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB server
Basic Person Test2.838.80.9125.91.932.4
Element Collection Test1.439.50.9533.11.236.3
Inheritance Test2.434.81.334.01.834.4
Indexing Test15.414.534.353.324.933.9
Multithreading Test1.450.80.5352.10.9551.5
All Tests4.735.77.639.76.137.7

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

A huge performance gap has been detected when using multithreading with large retrieval size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (0.53) to the normalized speed of ObjectDB database server (52.1) reveals that in that case, ObjectDB server is 98.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
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB server
Basic Person Test12.018.35.340.98.629.6
Element Collection Test0.01721.13.753.71.837.4
Inheritance Test0.009819.92.051.90.9935.9
Indexing Test9.317.95.552.17.435.0
Graph (Binary Tree) Test2.542.61.624.12.133.3
Multithreading Test20.068.63.768.711.868.6
All Tests7.331.43.648.65.540.0

The results above show that in general ObjectDB server is much more efficient than OpenJPA with HSQLDB embedded in updating JPA entity objects in the database. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (5.5) to the normalized speed of ObjectDB database server (40.0) reveals that in these tests, ObjectDB server is 7.3 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.0098) to the normalized speed of ObjectDB database server (19.9) reveals that in that case, ObjectDB server is 2,031 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
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB server
Basic Person Test21.320.215.767.718.544.0
Element Collection Test0.01122.92.957.61.540.2
Inheritance Test0.007023.13.561.61.842.3
Indexing Test28.834.915.255.922.045.4
Graph (Binary Tree) Test2.919.33.627.93.223.6
Multithreading Test26.038.519.650.522.844.5
All Tests13.226.510.153.511.640.0

The results above show that in general ObjectDB server is much 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 ObjectDB database server (40.0) reveals that in these tests, ObjectDB server is 3.4 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 ObjectDB database server (23.1) reveals that in that case, ObjectDB server is 3,300 times faster than OpenJPA with HSQLDB embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
HSQLDB embedded
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB serverOpenJPA
HSQLDB embedded
ObjectDB server
Basic Person Test14.325.611.850.813.038.2
Element Collection Test2.028.33.550.32.739.3
Inheritance Test2.924.72.953.92.939.3
Indexing Test18.526.221.662.220.044.2
Graph (Binary Tree) Test3.445.43.741.53.543.5
Multithreading Test19.050.810.966.214.958.5
All Tests10.233.19.254.69.743.9

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

A huge performance gap has been detected when using class inheritance in the object model with large transaction/retrieval size. Comparing the normalized speed of OpenJPA with HSQLDB embedded database (2.9) to the normalized speed of ObjectDB database server (53.9) reveals that in that case, ObjectDB server is 18.6 times faster than OpenJPA with HSQLDB embedded.

Other Head to Head DBMS/JPA Comparisons