Compare with

Comparison of Hibernate with SQLite embedded vs EclipseLink 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
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Basic Person Test0.0830.0741.00.900.550.49
Element Collection Test0.0670.0610.690.650.380.36
Inheritance Test0.0800.0830.990.820.540.45
Indexing Test0.0980.111.01.60.550.87
Graph (Binary Tree) Test0.270.240.960.910.610.57
Multithreading Testfailed0.10failed2.1failed1.1
All Tests0.120.110.931.20.530.64

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

The results above show that in general EclipseLink with SQLite embedded is slightly more efficient than Hibernate with SQLite embedded in persisting JPA entity objects to the database.

Speed comparison of JPA database retrieval operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Basic Person Test1.8failed1.3failed1.5failed
Element Collection Test0.00080.0007failedfailed0.00080.0007
Inheritance Test2.4failed1.4failed1.9failed
Indexing Test1.9failed2.3failed2.1failed
Graph (Binary Tree) Test0.56failed0.88failed0.72failed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests1.30.00071.5failed1.40.0007

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

Speed comparison of JPA database query operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Basic Person Test1.11.20.22failed0.651.2
Element Collection Test0.390.29failedfailed0.390.29
Inheritance Test0.530.690.28failed0.400.69
Indexing Test0.00110.00080.43failed0.210.0008
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.500.550.31failed0.420.55

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

Speed comparison of JPA database update operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Basic Person Test0.076failed0.65failed0.37failed
Element Collection Test0.00220.0016failedfailed0.00220.0016
Inheritance Test0.079failed0.97failed0.53failed
Indexing Test0.057failed0.54failed0.30failed
Graph (Binary Tree) Test0.26failed0.42failed0.34failed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.0940.00160.65failed0.340.0016

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

Speed comparison of JPA database removal operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Basic Person Test0.061failed0.91failed0.49failed
Element Collection Test0.00070.0006failedfailed0.00070.0006
Inheritance Test0.058failed0.90failed0.48failed
Indexing Test0.079failed0.54failed0.31failed
Graph (Binary Tree) Test0.24failed0.80failed0.52failed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.0880.00060.79failed0.400.0006

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Basic Person Test90.279.490.279.490.279.4
Element Collection Test82.074.582.074.582.074.5
Inheritance Test80.575.080.575.080.575.0
Indexing Test93.492.994.894.594.193.7
Graph (Binary Tree) Test67.960.650.948.459.454.5
Multithreading Testfailed100failed100failed100
All Tests82.880.479.778.681.279.5

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

The results above show that in general Hibernate with SQLite embedded is slightly more efficient than EclipseLink with SQLite embedded in using disk space.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Basic Person Test0.630.660.810.900.720.74
Element Collection Test0.0920.0700.690.650.190.17
Inheritance Test0.630.380.910.820.770.53
Indexing Test0.420.0580.961.60.690.58
Graph (Binary Tree) Test0.330.240.770.910.550.57
Multithreading Testfailed0.10failed2.1failed1.1
All Tests0.420.220.861.20.620.52

The results above show that in general Hibernate with SQLite embedded is slightly more efficient than EclipseLink with SQLite embedded in performing JPA database operations.

A large performance gap has been detected when using database indexes with small transaction/retrieval size. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.058) to the normalized speed of Hibernate with SQLite embedded database (0.42) reveals that in that case, Hibernate with SQLite embedded is 7.2 times faster than EclipseLink with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons