Compare with

Comparison of Hibernate with SQLite embedded vs Hibernate with Derby 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
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Basic Person Test0.0835.91.03.80.554.9
Element Collection Test0.0672.90.691.80.382.3
Inheritance Test0.0805.30.993.70.544.5
Indexing Test0.0987.01.04.80.555.9
Graph (Binary Tree) Test0.271.90.961.70.611.8
Multithreading Testfailed10.5failed3.7failed7.1
All Tests0.125.60.933.30.534.4

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
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Basic Person Test1.814.21.316.41.515.3
Element Collection Test0.00084.4failed4.90.00084.6
Inheritance Test2.410.31.418.61.914.4
Indexing Test1.910.02.316.42.113.2
Graph (Binary Tree) Test0.562.60.883.00.722.8
Multithreading Testfailed19.3failed19.3failed19.3
All Tests1.310.11.513.11.411.6

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
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Basic Person Test1.149.30.226.80.6528.1
Element Collection Test0.3937.6failed2.70.3920.1
Inheritance Test0.5324.10.287.60.4015.9
Indexing Test0.00115.30.4314.80.2110.1
Multithreading Testfailed39.7failed6.1failed22.9
All Tests0.5031.20.317.60.4219.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 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
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Basic Person Test0.0764.50.653.20.373.8
Element Collection Test0.00223.9failed3.10.00223.5
Inheritance Test0.0794.60.974.50.534.5
Indexing Test0.0574.60.545.50.305.1
Graph (Binary Tree) Test0.262.70.421.20.342.0
Multithreading Testfailed11.6failed2.6failed7.1
All Tests0.0945.30.653.30.344.3

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
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Basic Person Test0.0613.80.914.20.494.0
Element Collection Test0.00072.3failed1.50.00071.9
Inheritance Test0.0584.00.904.30.484.2
Indexing Test0.0795.50.543.60.314.6
Graph (Binary Tree) Test0.240.740.800.960.520.85
Multithreading Testfailed5.6failed4.9failed5.3
All Tests0.0883.70.793.30.403.5

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
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Basic Person Test90.252.790.252.790.252.7
Element Collection Test82.042.382.042.382.042.3
Inheritance Test80.549.280.549.280.549.2
Indexing Test93.453.094.853.994.153.4
Graph (Binary Tree) Test67.913.150.99.859.411.5
Multithreading Testfailed49.3failed8.8failed29.0
All Tests82.843.379.736.181.239.7

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
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Hibernate
SQLite embedded
Hibernate
Derby embedded
Basic Person Test0.6315.50.816.90.7211.2
Element Collection Test0.09210.20.692.80.196.5
Inheritance Test0.639.70.917.70.778.7
Indexing Test0.426.50.969.00.697.8
Graph (Binary Tree) Test0.332.00.771.70.551.8
Multithreading Testfailed17.3failed7.3failed12.3
All Tests0.4210.50.866.10.628.3

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