Compare with

Comparison of OpenJPA with Derby 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
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB server
Basic Person Test4.835.22.974.13.954.7
Element Collection Test2.838.21.957.82.448.0
Inheritance Test4.132.72.472.83.352.7
Indexing Test6.149.94.190.15.170.0
Graph (Binary Tree) Test1.51001.489.21.494.6
Multithreading Test8.776.63.399.46.088.0
All Tests4.755.42.780.63.768.0

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB server
Basic Person Test14.815.722.645.418.730.5
Element Collection Test0.003119.92.349.21.234.6
Inheritance Test0.01513.27.049.43.531.3
Indexing Test11.714.026.559.519.136.8
Graph (Binary Tree) Test0.9319.91.224.71.122.3
Multithreading Test25.219.728.660.226.940.0
All Tests8.817.114.748.111.732.6

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB server
Basic Person Test49.738.89.925.929.832.4
Element Collection Test2.739.59.633.16.136.3
Inheritance Test2.334.81.334.01.834.4
Indexing Test7.014.517.153.312.133.9
Multithreading Test40.950.811.752.126.351.5
All Tests20.535.79.939.715.237.7

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

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 embedded database (1.3) to the normalized speed of ObjectDB database server (34.0) reveals that in that case, ObjectDB server is 26.2 times faster than OpenJPA with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB server
Basic Person Test5.618.35.240.95.429.6
Element Collection Test0.009021.12.253.71.137.4
Inheritance Test0.04519.94.651.92.335.9
Indexing Test6.117.98.752.17.435.0
Graph (Binary Tree) Test1.642.60.9124.11.333.3
Multithreading Test18.368.64.568.711.468.6
All Tests5.331.44.448.64.840.0

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB server
Basic Person Test4.220.24.567.74.344.0
Element Collection Test0.007122.91.657.60.8040.2
Inheritance Test0.03523.13.061.61.542.3
Indexing Test5.334.93.655.94.445.4
Graph (Binary Tree) Test0.8019.30.9327.90.8623.6
Multithreading Test5.738.56.250.56.044.5
All Tests2.726.53.353.53.040.0

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB serverOpenJPA
Derby embedded
ObjectDB server
Basic Person Test15.825.69.050.812.438.2
Element Collection Test1.128.33.550.32.339.3
Inheritance Test1.324.73.753.92.539.3
Indexing Test7.226.212.062.29.644.2
Graph (Binary Tree) Test1.245.41.141.51.243.5
Multithreading Test19.850.810.966.215.358.5
All Tests8.033.16.954.67.443.9

The results above show that in general ObjectDB server is much more efficient than OpenJPA with Derby embedded in performing JPA database operations. Comparing the normalized speed of OpenJPA with Derby embedded database (7.4) to the normalized speed of ObjectDB database server (43.9) reveals that in these tests, ObjectDB server is 5.9 times faster than OpenJPA with Derby 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 Derby embedded database (1.2) to the normalized speed of ObjectDB database server (45.4) reveals that in that case, ObjectDB server is 37.8 times faster than OpenJPA with Derby embedded.

Other Head to Head DBMS/JPA Comparisons