Compare with

Comparison of Hibernate with Derby 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
 Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Basic Person Test5.90.0833.81.04.90.55
Element Collection Test2.90.0671.80.692.30.38
Inheritance Test5.30.0803.70.994.50.54
Indexing Test7.00.0984.81.05.90.55
Graph (Binary Tree) Test1.90.271.70.961.80.61
Multithreading Test10.5failed3.7failed7.1failed
All Tests5.60.123.30.934.40.53

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby embedded database (4.4) reveals that in these tests, Hibernate with Derby embedded is 8.3 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 embedded database (7.0) reveals that in that case, Hibernate with Derby embedded is 71.4 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 embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Basic Person Test14.21.816.41.315.31.5
Element Collection Test4.40.00084.9failed4.60.0008
Inheritance Test10.32.418.61.414.41.9
Indexing Test10.01.916.42.313.22.1
Graph (Binary Tree) Test2.60.563.00.882.80.72
Multithreading Test19.3failed19.3failed19.3failed
All Tests10.11.313.11.511.61.4

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby embedded database (11.6) reveals that in these tests, Hibernate with Derby embedded is 8.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 Hibernate with Derby embedded database (4.4) reveals that in that case, Hibernate with Derby embedded is 5,500 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 embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Basic Person Test49.31.16.80.2228.10.65
Element Collection Test37.60.392.7failed20.10.39
Inheritance Test24.10.537.60.2815.90.40
Indexing Test5.30.001114.80.4310.10.21
Multithreading Test39.7failed6.1failed22.9failed
All Tests31.20.507.60.3119.40.42

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby embedded database (19.4) reveals that in these tests, Hibernate with Derby embedded is 46.2 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 embedded database (5.3) reveals that in that case, Hibernate with Derby embedded is 4,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 embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Basic Person Test4.50.0763.20.653.80.37
Element Collection Test3.90.00223.1failed3.50.0022
Inheritance Test4.60.0794.50.974.50.53
Indexing Test4.60.0575.50.545.10.30
Graph (Binary Tree) Test2.70.261.20.422.00.34
Multithreading Test11.6failed2.6failed7.1failed
All Tests5.30.0943.30.654.30.34

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby embedded database (4.3) reveals that in these tests, Hibernate with Derby embedded is 12.6 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 embedded database (3.9) reveals that in that case, Hibernate with Derby embedded is 1,773 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 embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Basic Person Test3.80.0614.20.914.00.49
Element Collection Test2.30.00071.5failed1.90.0007
Inheritance Test4.00.0584.30.904.20.48
Indexing Test5.50.0793.60.544.60.31
Graph (Binary Tree) Test0.740.240.960.800.850.52
Multithreading Test5.6failed4.9failed5.3failed
All Tests3.70.0883.30.793.50.40

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

The results above show that in general Hibernate with Derby 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 Hibernate with Derby embedded database (3.5) reveals that in these tests, Hibernate with Derby embedded is 8.8 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 embedded database (2.3) reveals that in that case, Hibernate with Derby embedded is 3,286 times faster than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Basic Person Test52.790.252.790.252.790.2
Element Collection Test42.382.042.382.042.382.0
Inheritance Test49.280.549.280.549.280.5
Indexing Test53.093.453.994.853.494.1
Graph (Binary Tree) Test13.167.99.850.911.559.4
Multithreading Test49.3failed8.8failed29.0failed
All Tests43.382.836.179.739.781.2

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

The results above show that in general Hibernate with SQLite embedded is more efficient than Hibernate with Derby embedded in using disk space. Comparing the normalized score of Hibernate with Derby embedded database (39.7) to the normalized score of Hibernate with SQLite embedded database (81.2) reveals that in these tests, Hibernate with SQLite embedded is 2.0 times more efficient than Hibernate with Derby embedded.

A large gap has been detected when using graphs of objects with large transaction size. Comparing the normalized score of Hibernate with Derby embedded database (9.8) to the normalized score of Hibernate with SQLite embedded database (50.9) reveals that in that case, Hibernate with SQLite embedded is 5.2 times more efficient than Hibernate with Derby embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Basic Person Test15.50.636.90.8111.20.72
Element Collection Test10.20.0922.80.696.50.19
Inheritance Test9.70.637.70.918.70.77
Indexing Test6.50.429.00.967.80.69
Graph (Binary Tree) Test2.00.331.70.771.80.55
Multithreading Test17.3failed7.3failed12.3failed
All Tests10.50.426.10.868.30.62

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

Other Head to Head DBMS/JPA Comparisons