Compare with

Comparison of EclipseLink with SQLite embedded vs DataNucleus with DB4O 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
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
Basic Person Test0.0740.0590.901.30.490.69
Element Collection Test0.0610.0450.651.00.360.52
Inheritance Test0.0830.0510.820.850.450.45
Indexing Test0.110.0801.62.30.871.2
Graph (Binary Tree) Test0.24failed0.91failed0.57failed
Multithreading Test0.10failed2.1failed1.1failed
All Tests0.110.0591.21.40.640.71

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

The results above show that in general DataNucleus with DB4O embedded is slightly more efficient than EclipseLink 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
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
Basic Person Testfailed0.0047failed1.8failed0.90
Element Collection Test0.00070.0038failed1.50.00070.77
Inheritance Testfailed0.0035failed2.2failed1.1
Indexing Testfailed0.0043failed1.8failed0.89
Graph (Binary Tree) Testfailedfailedfailedfailedfailedfailed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.00070.0041failed1.80.00070.91

EclipseLink with SQLite embedded has failed in 11 tests (see exceptions). DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
Basic Person Test1.2failedfailedfailed1.2failed
Element Collection Test0.29failedfailedfailed0.29failed
Inheritance Test0.69failedfailedfailed0.69failed
Indexing Test0.0008failedfailedfailed0.0008failed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.55failedfailedfailed0.55failed

EclipseLink with SQLite embedded has failed in 6 tests (see exceptions). DataNucleus with DB4O embedded has failed in 10 tests (see exceptions).

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
Basic Person Testfailed0.012failed0.76failed0.39
Element Collection Test0.00160.012failed1.10.00160.53
Inheritance Testfailed0.011failed0.81failed0.41
Indexing Testfailed0.011failed1.3failed0.64
Graph (Binary Tree) Testfailedfailedfailedfailedfailedfailed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.00160.012failed0.970.00160.49

EclipseLink with SQLite embedded has failed in 11 tests (see exceptions). DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
Basic Person Testfailed0.011failed1.5failed0.74
Element Collection Test0.00060.010failed1.60.00060.80
Inheritance Testfailed0.0093failed1.1failed0.57
Indexing Testfailed0.017failed2.1failed1.1
Graph (Binary Tree) Testfailedfailedfailedfailedfailedfailed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.00060.012failed1.60.00060.79

EclipseLink with SQLite embedded has failed in 11 tests (see exceptions). DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
Basic Person Test79.435.179.435.479.435.2
Element Collection Test74.529.574.529.974.529.7
Inheritance Test75.033.475.033.575.033.4
Indexing Test92.941.094.541.993.741.5
Graph (Binary Tree) Test60.6failed48.4failed54.5failed
Multithreading Test100failed100failed100failed
All Tests80.434.878.635.279.535.0

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions).

The results above show that in general EclipseLink with SQLite embedded is more efficient than DataNucleus with DB4O embedded in using disk space. Comparing the normalized score of DataNucleus with DB4O embedded database (35.0) to the normalized score of EclipseLink with SQLite embedded database (79.5) reveals that in these tests, EclipseLink with SQLite embedded is 2.3 times more efficient than DataNucleus with DB4O embedded.

A large gap has been detected when using JPA element collections with small transaction size. Comparing the normalized score of DataNucleus with DB4O embedded database (29.5) to the normalized score of EclipseLink with SQLite embedded database (74.5) reveals that in that case, EclipseLink with SQLite embedded is 2.5 times more efficient than DataNucleus with DB4O embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
Basic Person Test0.660.0220.901.30.740.68
Element Collection Test0.0700.0180.651.30.170.66
Inheritance Test0.380.0190.821.20.530.63
Indexing Test0.0580.0281.61.90.580.94
Graph (Binary Tree) Test0.24failed0.91failed0.57failed
Multithreading Test0.10failed2.1failed1.1failed
All Tests0.220.0221.21.40.520.73

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

A large performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.65) to the normalized speed of DataNucleus with DB4O embedded database (1.3) reveals that in that case, DataNucleus with DB4O embedded is 2.0 times faster than EclipseLink with SQLite embedded.

On the other hand, DataNucleus with DB4O embedded is slower, for instance, when using simple basic entities with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.022) to the normalized speed of EclipseLink with SQLite embedded database (0.66) reveals that in that case, DataNucleus with DB4O embedded is 30.0 times slower than EclipseLink with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons