Compare with

Comparison of ObjectDB server vs OpenJPA with Derby 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
 ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
Basic Person Test35.23.174.12.754.72.9
Element Collection Test38.22.057.81.748.01.8
Inheritance Test32.73.072.82.352.72.6
Indexing Test49.94.790.14.170.04.4
Graph (Binary Tree) Test1000.7189.20.6494.60.67
Multithreading Test76.66.099.43.888.04.9
All Tests55.43.380.62.568.02.9

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
Basic Person Test15.70.7845.411.630.56.2
Element Collection Test19.90.002449.21.134.60.54
Inheritance Test13.20.01449.45.031.32.5
Indexing Test14.00.6259.513.036.86.8
Graph (Binary Tree) Test19.90.06524.70.3922.30.23
Multithreading Test19.71.660.219.040.010.3
All Tests17.10.5148.18.432.64.4

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
Basic Person Test38.829.225.95.532.417.3
Element Collection Test39.52.233.11.436.31.8
Inheritance Test34.82.234.01.034.41.6
Indexing Test14.52.253.311.733.97.0
Multithreading Test50.835.552.18.351.521.9
All Tests35.714.339.75.637.79.9

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

A huge performance gap has been detected when using class inheritance in the object model with large retrieval size. Comparing the normalized speed of OpenJPA with Derby database server (1.0) to the normalized speed of ObjectDB database server (34.0) reveals that in that case, ObjectDB server is 34.0 times faster than OpenJPA with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
Basic Person Test18.31.540.94.029.62.8
Element Collection Test21.10.008153.71.937.40.94
Inheritance Test19.90.04351.93.835.91.9
Indexing Test17.91.852.16.835.04.3
Graph (Binary Tree) Test42.60.1624.10.2733.30.22
Multithreading Test68.66.968.75.068.65.9
All Tests31.41.748.63.640.02.7

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
Basic Person Test20.21.467.73.744.02.5
Element Collection Test22.90.008257.61.440.20.71
Inheritance Test23.10.03561.62.542.31.3
Indexing Test34.92.355.93.545.42.9
Graph (Binary Tree) Test19.30.1327.90.3523.60.24
Multithreading Test38.53.650.54.044.53.8
All Tests26.51.353.52.640.01.9

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
Basic Person Test25.67.250.85.538.26.4
Element Collection Test28.30.8450.31.539.31.2
Inheritance Test24.71.153.92.939.32.0
Indexing Test26.22.362.27.844.25.1
Graph (Binary Tree) Test45.40.2741.50.4143.50.34
Multithreading Test50.810.766.28.058.59.4
All Tests33.13.954.64.543.94.2

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

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

Other Head to Head DBMS/JPA Comparisons