Compare with

Comparison of ObjectDB server 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 serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
Basic Person Test35.20.08374.11.054.70.55
Element Collection Test38.20.06757.80.6948.00.38
Inheritance Test32.70.08072.80.9952.70.54
Indexing Test49.90.09890.11.070.00.55
Graph (Binary Tree) Test1000.2789.20.9694.60.61
Multithreading Test76.6failed99.4failed88.0failed
All Tests55.40.1280.60.9368.00.53

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
 ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
Basic Person Test15.71.845.41.330.51.5
Element Collection Test19.90.000849.2failed34.60.0008
Inheritance Test13.22.449.41.431.31.9
Indexing Test14.01.959.52.336.82.1
Graph (Binary Tree) Test19.90.5624.70.8822.30.72
Multithreading Test19.7failed60.2failed40.0failed
All Tests17.11.348.11.532.61.4

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
 ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
Basic Person Test38.81.125.90.2232.40.65
Element Collection Test39.50.3933.1failed36.30.39
Inheritance Test34.80.5334.00.2834.40.40
Indexing Test14.50.001153.30.4333.90.21
Multithreading Test50.8failed52.1failed51.5failed
All Tests35.70.5039.70.3137.70.42

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
 ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
Basic Person Test18.30.07640.90.6529.60.37
Element Collection Test21.10.002253.7failed37.40.0022
Inheritance Test19.90.07951.90.9735.90.53
Indexing Test17.90.05752.10.5435.00.30
Graph (Binary Tree) Test42.60.2624.10.4233.30.34
Multithreading Test68.6failed68.7failed68.6failed
All Tests31.40.09448.60.6540.00.34

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
 ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
Basic Person Test20.20.06167.70.9144.00.49
Element Collection Test22.90.000757.6failed40.20.0007
Inheritance Test23.10.05861.60.9042.30.48
Indexing Test34.90.07955.90.5445.40.31
Graph (Binary Tree) Test19.30.2427.90.8023.60.52
Multithreading Test38.5failed50.5failed44.5failed
All Tests26.50.08853.50.7940.00.40

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
 ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
ObjectDB serverHibernate
SQLite embedded
Basic Person Test25.60.6350.80.8138.20.72
Element Collection Test28.30.09250.30.6939.30.19
Inheritance Test24.70.6353.90.9139.30.77
Indexing Test26.20.4262.20.9644.20.69
Graph (Binary Tree) Test45.40.3341.50.7743.50.55
Multithreading Test50.8failed66.2failed58.5failed
All Tests33.10.4254.60.8643.90.62

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