Compare with

Comparison of Hibernate with Derby 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
 Hibernate
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Basic Person Test3.80.0833.01.03.40.55
Element Collection Test2.00.0671.30.691.70.38
Inheritance Test3.40.0803.00.993.20.54
Indexing Test4.80.0984.11.04.40.55
Graph (Binary Tree) Test1.80.271.60.961.70.61
Multithreading Test6.9failed3.9failed5.4failed
All Tests3.80.122.80.933.30.53

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby database server (3.3) reveals that in these tests, Hibernate with Derby server is 6.2 times faster than Hibernate with SQLite embedded.

A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.098) to the normalized speed of Hibernate with Derby database server (4.8) reveals that in that case, Hibernate with Derby server is 49.0 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
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Basic Person Test3.81.88.41.36.11.5
Element Collection Test1.00.00081.0failed1.00.0008
Inheritance Test3.52.49.71.46.61.9
Indexing Test3.21.99.52.36.42.1
Graph (Binary Tree) Test0.910.561.20.881.10.72
Multithreading Test7.8failed13.4failed10.6failed
All Tests3.41.37.21.55.31.4

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby database server (5.3) reveals that in these tests, Hibernate with Derby server is 3.8 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 Hibernate with Derby database server (1.0) reveals that in that case, Hibernate with Derby server is 1,250 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
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Basic Person Test34.01.14.10.2219.10.65
Element Collection Test33.80.390.64failed17.20.39
Inheritance Test20.50.535.00.2812.80.40
Indexing Test2.00.00119.20.435.60.21
Multithreading Test36.2failed5.1failed20.6failed
All Tests25.30.504.80.3115.10.42

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby database server (15.1) reveals that in these tests, Hibernate with Derby server is 36.0 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 Hibernate with Derby database server (2.0) reveals that in that case, Hibernate with Derby server is 1,818 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
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Basic Person Test2.90.0762.50.652.70.37
Element Collection Test2.30.00221.5failed1.90.0022
Inheritance Test2.90.0793.50.973.20.53
Indexing Test3.00.0574.20.543.60.30
Graph (Binary Tree) Test1.20.260.580.420.910.34
Multithreading Test6.8failed2.5failed4.6failed
All Tests3.20.0942.50.652.80.34

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby database server (2.8) reveals that in these tests, Hibernate with Derby server is 8.2 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 Hibernate with Derby database server (2.3) reveals that in that case, Hibernate with Derby server is 1,045 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
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Basic Person Test2.90.0613.50.913.20.49
Element Collection Test1.70.00070.87failed1.30.0007
Inheritance Test2.90.0583.60.903.20.48
Indexing Test3.70.0793.60.543.70.31
Graph (Binary Tree) Test0.690.240.700.800.700.52
Multithreading Test6.2failed5.1failed5.6failed
All Tests3.00.0882.90.793.00.40

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby database server (3.0) reveals that in these tests, Hibernate with Derby server is 7.5 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 Hibernate with Derby database server (1.7) reveals that in that case, Hibernate with Derby server is 2,429 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
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Hibernate
Derby server
Hibernate
SQLite embedded
Basic Person Test9.50.634.30.816.90.72
Element Collection Test8.20.0921.10.694.60.19
Inheritance Test6.60.635.00.915.80.77
Indexing Test3.30.426.10.964.70.69
Graph (Binary Tree) Test1.20.331.00.771.10.55
Multithreading Test12.8failed6.0failed9.4failed
All Tests7.10.424.00.865.60.62

The results above show that in general Hibernate with Derby 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 Hibernate with Derby database server (5.6) reveals that in these tests, Hibernate with Derby server is 9.0 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 Hibernate with Derby database server (8.2) reveals that in that case, Hibernate with Derby server is 89.1 times faster than Hibernate with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons