Compare with

Comparison of Hibernate with Derby server vs ObjectDB embedded

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 embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embedded
Basic Person Test3.81003.01003.4100
Element Collection Test2.01001.31001.7100
Inheritance Test3.41003.01003.2100
Indexing Test4.81004.11004.4100
Graph (Binary Tree) Test1.888.41.61001.794.2
Multithreading Test6.91003.91005.4100
All Tests3.898.12.81003.399.0

The results above show that in general ObjectDB embedded 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 embedded database (99.0) reveals that in these tests, ObjectDB embedded is 30.0 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 (1.3) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 76.9 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 embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embedded
Basic Person Test3.81008.41006.1100
Element Collection Test1.01001.01001.0100
Inheritance Test3.51009.71006.6100
Indexing Test3.21009.51006.4100
Graph (Binary Tree) Test0.911001.21001.1100
Multithreading Test7.810013.410010.6100
All Tests3.41007.21005.3100

The results above show that in general ObjectDB embedded 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 embedded database (100) reveals that in these tests, ObjectDB embedded is 18.9 times faster than Hibernate with Derby server.

A huge performance gap has been detected when using graphs of objects with small retrieval size. Comparing the normalized speed of Hibernate with Derby database server (0.91) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 110 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 embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embedded
Basic Person Test34.01004.110019.1100
Element Collection Test33.81000.6410017.2100
Inheritance Test20.51005.010012.8100
Indexing Test2.01009.21005.6100
Multithreading Test36.21005.110020.6100
All Tests25.31004.810015.1100

The results above show that in general ObjectDB embedded is much 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 embedded database (100) reveals that in these tests, ObjectDB embedded is 6.6 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 embedded database (100) reveals that in that case, ObjectDB embedded is 156 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 embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embedded
Basic Person Test2.91002.51002.7100
Element Collection Test2.31001.51001.9100
Inheritance Test2.91003.51003.2100
Indexing Test3.01004.21003.6100
Graph (Binary Tree) Test1.21000.581000.91100
Multithreading Test6.81002.51004.6100
All Tests3.21002.51002.8100

The results above show that in general ObjectDB embedded 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 embedded database (100) reveals that in these tests, ObjectDB embedded is 35.7 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 embedded database (100) reveals that in that case, ObjectDB embedded is 172 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 embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embedded
Basic Person Test2.91003.51003.2100
Element Collection Test1.71000.871001.3100
Inheritance Test2.91003.61003.2100
Indexing Test3.71003.61003.7100
Graph (Binary Tree) Test0.691000.701000.70100
Multithreading Test6.21005.11005.6100
All Tests3.01002.91003.0100

The results above show that in general ObjectDB embedded 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 embedded database (100) reveals that in these tests, ObjectDB embedded is 33.3 times faster than Hibernate with Derby server.

A huge performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of Hibernate with Derby database server (0.69) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 145 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 embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embedded
Basic Person Test9.51004.31006.9100
Element Collection Test8.21001.11004.6100
Inheritance Test6.61005.01005.8100
Indexing Test3.31006.11004.7100
Graph (Binary Tree) Test1.297.11.01001.198.5
Multithreading Test12.81006.01009.4100
All Tests7.199.64.01005.699.8

The results above show that in general ObjectDB embedded 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 embedded database (99.8) reveals that in these tests, ObjectDB embedded is 17.8 times faster than Hibernate with Derby server.

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

Other Head to Head DBMS/JPA Comparisons