Compare with

Comparison of Hibernate with SQLite 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
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embedded
Basic Person Test0.0831001.01000.55100
Element Collection Test0.0671000.691000.38100
Inheritance Test0.0801000.991000.54100
Indexing Test0.0981001.01000.55100
Graph (Binary Tree) Test0.2788.40.961000.6194.2
Multithreading Testfailed100failed100failed100
All Tests0.1298.10.931000.5399.0

Hibernate with SQLite embedded has failed in 2 tests (see exceptions).

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

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.067) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 1,493 times faster than Hibernate with SQLite embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embedded
Basic Person Test1.81001.31001.5100
Element Collection Test0.0008100failed1000.0008100
Inheritance Test2.41001.41001.9100
Indexing Test1.91002.31002.1100
Graph (Binary Tree) Test0.561000.881000.72100
Multithreading Testfailed100failed100failed100
All Tests1.31001.51001.4100

Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embedded
Basic Person Test1.11000.221000.65100
Element Collection Test0.39100failed1000.39100
Inheritance Test0.531000.281000.40100
Indexing Test0.00111000.431000.21100
Multithreading Testfailed100failed100failed100
All Tests0.501000.311000.42100

Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

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

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0011) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 90,909 times faster than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embedded
Basic Person Test0.0761000.651000.37100
Element Collection Test0.0022100failed1000.0022100
Inheritance Test0.0791000.971000.53100
Indexing Test0.0571000.541000.30100
Graph (Binary Tree) Test0.261000.421000.34100
Multithreading Testfailed100failed100failed100
All Tests0.0941000.651000.34100

Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

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

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0022) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 45,455 times faster than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embedded
Basic Person Test0.0611000.911000.49100
Element Collection Test0.0007100failed1000.0007100
Inheritance Test0.0581000.901000.48100
Indexing Test0.0791000.541000.31100
Graph (Binary Tree) Test0.241000.801000.52100
Multithreading Testfailed100failed100failed100
All Tests0.0881000.791000.40100

Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

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

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0007) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 142,857 times faster than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embedded
Basic Person Test90.210090.210090.2100
Element Collection Test82.010082.010082.0100
Inheritance Test80.510080.510080.5100
Indexing Test93.410094.810094.1100
Graph (Binary Tree) Test67.910050.910059.4100
Multithreading Testfailed91.1failed22.0failed56.6
All Tests82.898.579.787.081.292.8

Hibernate with SQLite embedded has failed in 2 tests (see exceptions).

The results above show that in general ObjectDB embedded is slightly more efficient than Hibernate with SQLite embedded in using disk space.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embedded
Basic Person Test0.631000.811000.72100
Element Collection Test0.0921000.691000.19100
Inheritance Test0.631000.911000.77100
Indexing Test0.421000.961000.69100
Graph (Binary Tree) Test0.3397.10.771000.5598.5
Multithreading Testfailed100failed100failed100
All Tests0.4299.60.861000.6299.8

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

A huge performance gap has been detected when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.092) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 1,087 times faster than Hibernate with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons