Compare with

Comparison of ObjectDB embedded vs Hibernate 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 embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
Basic Person Test1003.81003.01003.4
Element Collection Test1002.01001.31001.7
Inheritance Test1003.41003.01003.2
Indexing Test1004.81004.11004.4
Graph (Binary Tree) Test88.41.81001.694.21.7
Multithreading Test1006.91003.91005.4
All Tests98.13.81002.899.03.3

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
 ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
Basic Person Test1003.81008.41006.1
Element Collection Test1001.01001.01001.0
Inheritance Test1003.51009.71006.6
Indexing Test1003.21009.51006.4
Graph (Binary Tree) Test1000.911001.21001.1
Multithreading Test1007.810013.410010.6
All Tests1003.41007.21005.3

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
 ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
Basic Person Test10034.01004.110019.1
Element Collection Test10033.81000.6410017.2
Inheritance Test10020.51005.010012.8
Indexing Test1002.01009.21005.6
Multithreading Test10036.21005.110020.6
All Tests10025.31004.810015.1

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
 ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
Basic Person Test1002.91002.51002.7
Element Collection Test1002.31001.51001.9
Inheritance Test1002.91003.51003.2
Indexing Test1003.01004.21003.6
Graph (Binary Tree) Test1001.21000.581000.91
Multithreading Test1006.81002.51004.6
All Tests1003.21002.51002.8

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
 ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
Basic Person Test1002.91003.51003.2
Element Collection Test1001.71000.871001.3
Inheritance Test1002.91003.61003.2
Indexing Test1003.71003.61003.7
Graph (Binary Tree) Test1000.691000.701000.70
Multithreading Test1006.21005.11005.6
All Tests1003.01002.91003.0

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
 ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
ObjectDB embeddedHibernate
Derby server
Basic Person Test1009.51004.31006.9
Element Collection Test1008.21001.11004.6
Inheritance Test1006.61005.01005.8
Indexing Test1003.31006.11004.7
Graph (Binary Tree) Test97.11.21001.098.51.1
Multithreading Test10012.81006.01009.4
All Tests99.67.11004.099.85.6

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