Compare with

Comparison of Hibernate 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
 Hibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB server
Basic Person Test3.835.23.074.13.454.7
Element Collection Test2.038.21.357.81.748.0
Inheritance Test3.432.73.072.83.252.7
Indexing Test4.849.94.190.14.470.0
Graph (Binary Tree) Test1.81001.689.21.794.6
Multithreading Test6.976.63.999.45.488.0
All Tests3.855.42.880.63.368.0

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

A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of Hibernate with Derby database server (1.6) to the normalized speed of ObjectDB database server (89.2) reveals that in that case, ObjectDB server is 55.8 times faster than Hibernate with Derby server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB server
Basic Person Test3.815.78.445.46.130.5
Element Collection Test1.019.91.049.21.034.6
Inheritance Test3.513.29.749.46.631.3
Indexing Test3.214.09.559.56.436.8
Graph (Binary Tree) Test0.9119.91.224.71.122.3
Multithreading Test7.819.713.460.210.640.0
All Tests3.417.17.248.15.332.6

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

A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of Hibernate with Derby database server (1.0) to the normalized speed of ObjectDB database server (49.2) reveals that in that case, ObjectDB server is 49.2 times faster than Hibernate with Derby server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB server
Basic Person Test34.038.84.125.919.132.4
Element Collection Test33.839.50.6433.117.236.3
Inheritance Test20.534.85.034.012.834.4
Indexing Test2.014.59.253.35.633.9
Multithreading Test36.250.85.152.120.651.5
All Tests25.335.74.839.715.137.7

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

A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of Hibernate with Derby database server (0.64) to the normalized speed of ObjectDB database server (33.1) reveals that in that case, ObjectDB server is 51.7 times faster than Hibernate with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB server
Basic Person Test2.918.32.540.92.729.6
Element Collection Test2.321.11.553.71.937.4
Inheritance Test2.919.93.551.93.235.9
Indexing Test3.017.94.252.13.635.0
Graph (Binary Tree) Test1.242.60.5824.10.9133.3
Multithreading Test6.868.62.568.74.668.6
All Tests3.231.42.548.62.840.0

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

A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of Hibernate with Derby database server (0.58) to the normalized speed of ObjectDB database server (24.1) reveals that in that case, ObjectDB server is 41.6 times faster than Hibernate with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB server
Basic Person Test2.920.23.567.73.244.0
Element Collection Test1.722.90.8757.61.340.2
Inheritance Test2.923.13.661.63.242.3
Indexing Test3.734.93.655.93.745.4
Graph (Binary Tree) Test0.6919.30.7027.90.7023.6
Multithreading Test6.238.55.150.55.644.5
All Tests3.026.52.953.53.040.0

The results above show that in general ObjectDB server is much more efficient than Hibernate with Derby server in deleting JPA entity objects from the database. Comparing the normalized speed of Hibernate with Derby database server (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 Hibernate with Derby server.

A huge performance gap has been detected when using JPA element collections with large transaction size. Comparing the normalized speed of Hibernate with Derby database server (0.87) to the normalized speed of ObjectDB database server (57.6) reveals that in that case, ObjectDB server is 66.2 times faster than Hibernate with Derby server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB serverHibernate
Derby server
ObjectDB server
Basic Person Test9.525.64.350.86.938.2
Element Collection Test8.228.31.150.34.639.3
Inheritance Test6.624.75.053.95.839.3
Indexing Test3.326.26.162.24.744.2
Graph (Binary Tree) Test1.245.41.041.51.143.5
Multithreading Test12.850.86.066.29.458.5
All Tests7.133.14.054.65.643.9

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

A huge performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of Hibernate with Derby database server (1.1) to the normalized speed of ObjectDB database server (50.3) reveals that in that case, ObjectDB server is 45.7 times faster than Hibernate with Derby server.

Other Head to Head DBMS/JPA Comparisons