Compare with

Comparison of ObjectDB embedded vs Hibernate with Derby 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
 ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
Basic Person Test1005.91003.81004.9
Element Collection Test1002.91001.81002.3
Inheritance Test1005.31003.71004.5
Indexing Test1007.01004.81005.9
Graph (Binary Tree) Test88.41.91001.794.21.8
Multithreading Test10010.51003.71007.1
All Tests98.15.61003.399.04.4

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
 ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
Basic Person Test10014.210016.410015.3
Element Collection Test1004.41004.91004.6
Inheritance Test10010.310018.610014.4
Indexing Test10010.010016.410013.2
Graph (Binary Tree) Test1002.61003.01002.8
Multithreading Test10019.310019.310019.3
All Tests10010.110013.110011.6

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
 ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
Basic Person Test10049.31006.810028.1
Element Collection Test10037.61002.710020.1
Inheritance Test10024.11007.610015.9
Indexing Test1005.310014.810010.1
Multithreading Test10039.71006.110022.9
All Tests10031.21007.610019.4

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
 ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
Basic Person Test1004.51003.21003.8
Element Collection Test1003.91003.11003.5
Inheritance Test1004.61004.51004.5
Indexing Test1004.61005.51005.1
Graph (Binary Tree) Test1002.71001.21002.0
Multithreading Test10011.61002.61007.1
All Tests1005.31003.31004.3

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
 ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
Basic Person Test1003.81004.21004.0
Element Collection Test1002.31001.51001.9
Inheritance Test1004.01004.31004.2
Indexing Test1005.51003.61004.6
Graph (Binary Tree) Test1000.741000.961000.85
Multithreading Test1005.61004.91005.3
All Tests1003.71003.31003.5

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
 ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
Basic Person Test10052.710052.710052.7
Element Collection Test10042.310042.310042.3
Inheritance Test10049.210049.210049.2
Indexing Test10053.010053.910053.4
Graph (Binary Tree) Test10013.11009.810011.5
Multithreading Test91.149.322.08.856.629.0
All Tests98.543.387.036.192.839.7

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
 ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
ObjectDB embeddedHibernate
Derby embedded
Basic Person Test10015.51006.910011.2
Element Collection Test10010.21002.81006.5
Inheritance Test1009.71007.71008.7
Indexing Test1006.51009.01007.8
Graph (Binary Tree) Test97.12.01001.798.51.8
Multithreading Test10017.31007.310012.3
All Tests99.610.51006.199.88.3

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