Compare with

Comparison of EclipseLink with SQLite 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
 EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
Basic Person Test0.0740.0830.901.00.490.55
Element Collection Test0.0610.0670.650.690.360.38
Inheritance Test0.0830.0800.820.990.450.54
Indexing Test0.110.0981.61.00.870.55
Graph (Binary Tree) Test0.240.270.910.960.570.61
Multithreading Test0.10failed2.1failed1.1failed
All Tests0.110.121.20.930.640.53

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
 EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
Basic Person Testfailed1.8failed1.3failed1.5
Element Collection Test0.00070.0008failedfailed0.00070.0008
Inheritance Testfailed2.4failed1.4failed1.9
Indexing Testfailed1.9failed2.3failed2.1
Graph (Binary Tree) Testfailed0.56failed0.88failed0.72
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.00071.3failed1.50.00071.4

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
Basic Person Test1.21.1failed0.221.20.65
Element Collection Test0.290.39failedfailed0.290.39
Inheritance Test0.690.53failed0.280.690.40
Indexing Test0.00080.0011failed0.430.00080.21
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.550.50failed0.310.550.42

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

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

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

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

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

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
Basic Person Test79.490.279.490.279.490.2
Element Collection Test74.582.074.582.074.582.0
Inheritance Test75.080.575.080.575.080.5
Indexing Test92.993.494.594.893.794.1
Graph (Binary Tree) Test60.667.948.450.954.559.4
Multithreading Test100failed100failed100failed
All Tests80.482.878.679.779.581.2

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
 EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
EclipseLink
SQLite embedded
Hibernate
SQLite embedded
Basic Person Test0.660.630.900.810.740.72
Element Collection Test0.0700.0920.650.690.170.19
Inheritance Test0.380.630.820.910.530.77
Indexing Test0.0580.421.60.960.580.69
Graph (Binary Tree) Test0.240.330.910.770.570.55
Multithreading Test0.10failed2.1failed1.1failed
All Tests0.220.421.20.860.520.62

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