Compare with

Comparison of OpenJPA with Derby 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
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB server
Basic Person Test3.135.22.774.12.954.7
Element Collection Test2.038.21.757.81.848.0
Inheritance Test3.032.72.372.82.652.7
Indexing Test4.749.94.190.14.470.0
Graph (Binary Tree) Test0.711000.6489.20.6794.6
Multithreading Test6.076.63.899.44.988.0
All Tests3.355.42.580.62.968.0

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
 OpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB server
Basic Person Test0.7815.711.645.46.230.5
Element Collection Test0.002419.91.149.20.5434.6
Inheritance Test0.01413.25.049.42.531.3
Indexing Test0.6214.013.059.56.836.8
Graph (Binary Tree) Test0.06519.90.3924.70.2322.3
Multithreading Test1.619.719.060.210.340.0
All Tests0.5117.18.448.14.432.6

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
 OpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB server
Basic Person Test29.238.85.525.917.332.4
Element Collection Test2.239.51.433.11.836.3
Inheritance Test2.234.81.034.01.634.4
Indexing Test2.214.511.753.37.033.9
Multithreading Test35.550.88.352.121.951.5
All Tests14.335.75.639.79.937.7

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
 OpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB server
Basic Person Test1.518.34.040.92.829.6
Element Collection Test0.008121.11.953.70.9437.4
Inheritance Test0.04319.93.851.91.935.9
Indexing Test1.817.96.852.14.335.0
Graph (Binary Tree) Test0.1642.60.2724.10.2233.3
Multithreading Test6.968.65.068.75.968.6
All Tests1.731.43.648.62.740.0

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
 OpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB server
Basic Person Test1.420.23.767.72.544.0
Element Collection Test0.008222.91.457.60.7140.2
Inheritance Test0.03523.12.561.61.342.3
Indexing Test2.334.93.555.92.945.4
Graph (Binary Tree) Test0.1319.30.3527.90.2423.6
Multithreading Test3.638.54.050.53.844.5
All Tests1.326.52.653.51.940.0

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
 OpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB serverOpenJPA
Derby server
ObjectDB server
Basic Person Test7.225.65.550.86.438.2
Element Collection Test0.8428.31.550.31.239.3
Inheritance Test1.124.72.953.92.039.3
Indexing Test2.326.27.862.25.144.2
Graph (Binary Tree) Test0.2745.40.4141.50.3443.5
Multithreading Test10.750.88.066.29.458.5
All Tests3.933.14.554.64.243.9

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