Compare with

Comparison of Hibernate with SQLite embedded vs ObjectDB 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
 Hibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB server
Basic Person Test0.08335.21.074.10.5554.7
Element Collection Test0.06738.20.6957.80.3848.0
Inheritance Test0.08032.70.9972.80.5452.7
Indexing Test0.09849.91.090.10.5570.0
Graph (Binary Tree) Test0.271000.9689.20.6194.6
Multithreading Testfailed76.6failed99.4failed88.0
All Tests0.1255.40.9380.60.5368.0

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

The results above show that in general ObjectDB server 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 database server (68.0) reveals that in these tests, ObjectDB server is 128 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 database server (38.2) reveals that in that case, ObjectDB server is 570 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 serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB server
Basic Person Test1.815.71.345.41.530.5
Element Collection Test0.000819.9failed49.20.000834.6
Inheritance Test2.413.21.449.41.931.3
Indexing Test1.914.02.359.52.136.8
Graph (Binary Tree) Test0.5619.90.8824.70.7222.3
Multithreading Testfailed19.7failed60.2failed40.0
All Tests1.317.11.548.11.432.6

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

The results above show that in general ObjectDB server 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 database server (32.6) reveals that in these tests, ObjectDB server is 23.3 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 database server (19.9) reveals that in that case, ObjectDB server is 24,875 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 serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB server
Basic Person Test1.138.80.2225.90.6532.4
Element Collection Test0.3939.5failed33.10.3936.3
Inheritance Test0.5334.80.2834.00.4034.4
Indexing Test0.001114.50.4353.30.2133.9
Multithreading Testfailed50.8failed52.1failed51.5
All Tests0.5035.70.3139.70.4237.7

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

The results above show that in general ObjectDB server 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 database server (37.7) reveals that in these tests, ObjectDB server is 89.8 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 database server (14.5) reveals that in that case, ObjectDB server is 13,182 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 serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB server
Basic Person Test0.07618.30.6540.90.3729.6
Element Collection Test0.002221.1failed53.70.002237.4
Inheritance Test0.07919.90.9751.90.5335.9
Indexing Test0.05717.90.5452.10.3035.0
Graph (Binary Tree) Test0.2642.60.4224.10.3433.3
Multithreading Testfailed68.6failed68.7failed68.6
All Tests0.09431.40.6548.60.3440.0

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

The results above show that in general ObjectDB server 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 database server (40.0) reveals that in these tests, ObjectDB server is 118 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 database server (21.1) reveals that in that case, ObjectDB server is 9,591 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 serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB server
Basic Person Test0.06120.20.9167.70.4944.0
Element Collection Test0.000722.9failed57.60.000740.2
Inheritance Test0.05823.10.9061.60.4842.3
Indexing Test0.07934.90.5455.90.3145.4
Graph (Binary Tree) Test0.2419.30.8027.90.5223.6
Multithreading Testfailed38.5failed50.5failed44.5
All Tests0.08826.50.7953.50.4040.0

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

The results above show that in general ObjectDB server 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 database server (40.0) reveals that in these tests, ObjectDB server is 100 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 database server (22.9) reveals that in that case, ObjectDB server is 32,714 times faster than Hibernate with SQLite embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB server
Basic Person Test0.6325.60.8150.80.7238.2
Element Collection Test0.09228.30.6950.30.1939.3
Inheritance Test0.6324.70.9153.90.7739.3
Indexing Test0.4226.20.9662.20.6944.2
Graph (Binary Tree) Test0.3345.40.7741.50.5543.5
Multithreading Testfailed50.8failed66.2failed58.5
All Tests0.4233.10.8654.60.6243.9

The results above show that in general ObjectDB server 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 database server (43.9) reveals that in these tests, ObjectDB server is 70.8 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 database server (28.3) reveals that in that case, ObjectDB server is 308 times faster than Hibernate with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons