Compare with

Comparison of ObjectDB embedded vs Hibernate with SQLite 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
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
Basic Person Test1000.0831001.01000.55
Element Collection Test1000.0671000.691000.38
Inheritance Test1000.0801000.991000.54
Indexing Test1000.0981001.01000.55
Graph (Binary Tree) Test88.40.271000.9694.20.61
Multithreading Test100failed100failed100failed
All Tests98.10.121000.9399.00.53

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
 ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
Basic Person Test1001.81001.31001.5
Element Collection Test1000.0008100failed1000.0008
Inheritance Test1002.41001.41001.9
Indexing Test1001.91002.31002.1
Graph (Binary Tree) Test1000.561000.881000.72
Multithreading Test100failed100failed100failed
All Tests1001.31001.51001.4

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
 ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
Basic Person Test1001.11000.221000.65
Element Collection Test1000.39100failed1000.39
Inheritance Test1000.531000.281000.40
Indexing Test1000.00111000.431000.21
Multithreading Test100failed100failed100failed
All Tests1000.501000.311000.42

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
 ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
Basic Person Test1000.0761000.651000.37
Element Collection Test1000.0022100failed1000.0022
Inheritance Test1000.0791000.971000.53
Indexing Test1000.0571000.541000.30
Graph (Binary Tree) Test1000.261000.421000.34
Multithreading Test100failed100failed100failed
All Tests1000.0941000.651000.34

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
 ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
Basic Person Test1000.0611000.911000.49
Element Collection Test1000.0007100failed1000.0007
Inheritance Test1000.0581000.901000.48
Indexing Test1000.0791000.541000.31
Graph (Binary Tree) Test1000.241000.801000.52
Multithreading Test100failed100failed100failed
All Tests1000.0881000.791000.40

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
 ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
Basic Person Test10090.210090.210090.2
Element Collection Test10082.010082.010082.0
Inheritance Test10080.510080.510080.5
Indexing Test10093.410094.810094.1
Graph (Binary Tree) Test10067.910050.910059.4
Multithreading Test91.1failed22.0failed56.6failed
All Tests98.582.887.079.792.881.2

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
 ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
ObjectDB embeddedHibernate
SQLite embedded
Basic Person Test1000.631000.811000.72
Element Collection Test1000.0921000.691000.19
Inheritance Test1000.631000.911000.77
Indexing Test1000.421000.961000.69
Graph (Binary Tree) Test97.10.331000.7798.50.55
Multithreading Test100failed100failed100failed
All Tests99.60.421000.8699.80.62

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