Compare with

Comparison of Hibernate with Derby embedded 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 embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embedded
Basic Person Test5.91003.81004.9100
Element Collection Test2.91001.81002.3100
Inheritance Test5.31003.71004.5100
Indexing Test7.01004.81005.9100
Graph (Binary Tree) Test1.988.41.71001.894.2
Multithreading Test10.51003.71007.1100
All Tests5.698.13.31004.499.0

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embedded
Basic Person Test14.210016.410015.3100
Element Collection Test4.41004.91004.6100
Inheritance Test10.310018.610014.4100
Indexing Test10.010016.410013.2100
Graph (Binary Tree) Test2.61003.01002.8100
Multithreading Test19.310019.310019.3100
All Tests10.110013.110011.6100

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embedded
Basic Person Test49.31006.810028.1100
Element Collection Test37.61002.710020.1100
Inheritance Test24.11007.610015.9100
Indexing Test5.310014.810010.1100
Multithreading Test39.71006.110022.9100
All Tests31.21007.610019.4100

The results above show that in general ObjectDB embedded is much more efficient than Hibernate with Derby embedded in executing the tested JPA queries. Comparing the normalized speed of Hibernate with Derby embedded database (19.4) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 5.2 times faster than Hibernate with Derby embedded.

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embedded
Basic Person Test4.51003.21003.8100
Element Collection Test3.91003.11003.5100
Inheritance Test4.61004.51004.5100
Indexing Test4.61005.51005.1100
Graph (Binary Tree) Test2.71001.21002.0100
Multithreading Test11.61002.61007.1100
All Tests5.31003.31004.3100

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embedded
Basic Person Test3.81004.21004.0100
Element Collection Test2.31001.51001.9100
Inheritance Test4.01004.31004.2100
Indexing Test5.51003.61004.6100
Graph (Binary Tree) Test0.741000.961000.85100
Multithreading Test5.61004.91005.3100
All Tests3.71003.31003.5100

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

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

Comparison of database storage efficiency (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embedded
Basic Person Test52.710052.710052.7100
Element Collection Test42.310042.310042.3100
Inheritance Test49.210049.210049.2100
Indexing Test53.010053.910053.4100
Graph (Binary Tree) Test13.11009.810011.5100
Multithreading Test49.391.18.822.029.056.6
All Tests43.398.536.187.039.792.8

The results above show that in general ObjectDB embedded is more efficient than Hibernate with Derby embedded in using disk space. Comparing the normalized score of Hibernate with Derby embedded database (39.7) to the normalized score of ObjectDB embedded database (92.8) reveals that in these tests, ObjectDB embedded is 2.3 times more efficient than Hibernate with Derby embedded.

A huge gap has been detected when using graphs of objects with large transaction size. Comparing the normalized score of Hibernate with Derby embedded database (9.8) to the normalized score of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 10.2 times more efficient than Hibernate with Derby embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embedded
Basic Person Test15.51006.910011.2100
Element Collection Test10.21002.81006.5100
Inheritance Test9.71007.71008.7100
Indexing Test6.51009.01007.8100
Graph (Binary Tree) Test2.097.11.71001.898.5
Multithreading Test17.31007.310012.3100
All Tests10.599.66.11008.399.8

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

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 embedded database (1.7) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 58.8 times faster than Hibernate with Derby embedded.

Other Head to Head DBMS/JPA Comparisons