Compare with

Comparison of Hibernate with SQLite embedded vs EclipseLink 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
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Basic Person Test0.0835.51.03.70.554.6
Element Collection Test0.0673.00.691.70.382.4
Inheritance Test0.0805.30.993.50.544.4
Indexing Test0.0986.91.04.60.555.8
Graph (Binary Tree) Test0.272.00.961.90.611.9
Multithreading Testfailed9.3failed4.1failed6.7
All Tests0.125.30.933.20.534.3

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

The results above show that in general EclipseLink 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 EclipseLink with Derby embedded database (4.3) reveals that in these tests, EclipseLink with Derby embedded is 8.1 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 EclipseLink with Derby embedded database (6.9) reveals that in that case, EclipseLink with Derby embedded is 70.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
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Basic Person Test1.816.41.358.71.537.5
Element Collection Test0.00087.5failed13.30.000810.4
Inheritance Test2.417.11.458.91.938.0
Indexing Test1.914.22.367.42.140.8
Graph (Binary Tree) Test0.562.80.885.70.724.2
Multithreading Testfailed28.0failed48.7failed38.4
All Tests1.314.31.542.11.428.2

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

The results above show that in general EclipseLink 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 EclipseLink with Derby embedded database (28.2) reveals that in these tests, EclipseLink with Derby embedded is 20.1 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 EclipseLink with Derby embedded database (7.5) reveals that in that case, EclipseLink with Derby embedded is 9,375 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
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Basic Person Test1.153.40.2213.80.6533.6
Element Collection Test0.3937.9failed4.40.3921.2
Inheritance Test0.5337.40.2815.00.4026.2
Indexing Test0.00117.60.4349.30.2128.4
Multithreading Testfailed41.2failed6.1failed23.6
All Tests0.5035.50.3117.70.4226.6

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

The results above show that in general EclipseLink 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 EclipseLink with Derby embedded database (26.6) reveals that in these tests, EclipseLink with Derby embedded is 63.3 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 EclipseLink with Derby embedded database (7.6) reveals that in that case, EclipseLink with Derby embedded is 6,909 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
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Basic Person Test0.0766.40.656.70.376.5
Element Collection Test0.00225.4failed6.20.00225.8
Inheritance Test0.0796.50.979.20.537.8
Indexing Test0.0577.30.5411.10.309.2
Graph (Binary Tree) Test0.262.80.421.70.342.2
Multithreading Testfailed21.3failed5.0failed13.1
All Tests0.0948.30.656.60.347.5

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

The results above show that in general EclipseLink 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 EclipseLink with Derby embedded database (7.5) reveals that in these tests, EclipseLink with Derby embedded is 22.1 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 EclipseLink with Derby embedded database (5.4) reveals that in that case, EclipseLink with Derby embedded is 2,455 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
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Basic Person Test0.0614.60.914.70.494.6
Element Collection Test0.00072.5failed1.40.00071.9
Inheritance Test0.0583.90.904.50.484.2
Indexing Test0.0796.20.543.80.315.0
Graph (Binary Tree) Test0.241.10.801.00.521.1
Multithreading Testfailed6.2failed5.8failed6.0
All Tests0.0884.10.793.50.403.8

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

The results above show that in general EclipseLink 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 EclipseLink with Derby embedded database (3.8) reveals that in these tests, EclipseLink with Derby embedded is 9.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 EclipseLink with Derby embedded database (2.5) reveals that in that case, EclipseLink with Derby embedded is 3,571 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
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Basic Person Test90.251.190.251.090.251.1
Element Collection Test82.038.582.039.482.038.9
Inheritance Test80.548.080.547.980.548.0
Indexing Test93.451.694.852.394.152.0
Graph (Binary Tree) Test67.913.450.911.759.412.6
Multithreading Testfailed52.6failed8.4failed30.5
All Tests82.842.579.735.181.238.8

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 EclipseLink with Derby embedded in using disk space. Comparing the normalized score of EclipseLink with Derby embedded database (38.8) to the normalized score of Hibernate with SQLite embedded database (81.2) reveals that in these tests, Hibernate with SQLite embedded is 2.1 times more efficient than EclipseLink with Derby embedded.

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Basic Person Test0.6317.30.8117.50.7217.4
Element Collection Test0.09211.30.695.40.198.3
Inheritance Test0.6314.00.9118.20.7716.1
Indexing Test0.428.40.9627.20.6917.8
Graph (Binary Tree) Test0.332.20.772.60.552.4
Multithreading Testfailed21.2failed13.9failed17.6
All Tests0.4212.70.8614.50.6213.6

The results above show that in general EclipseLink 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 EclipseLink with Derby embedded database (13.6) reveals that in these tests, EclipseLink with Derby embedded is 21.9 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 EclipseLink with Derby embedded database (11.3) reveals that in that case, EclipseLink with Derby embedded is 123 times faster than Hibernate with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons