Compare with

Comparison of DataNucleus with DB4O 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
 DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
Basic Person Test0.0590.0741.30.900.690.49
Element Collection Test0.0450.0611.00.650.520.36
Inheritance Test0.0510.0830.850.820.450.45
Indexing Test0.0800.112.31.61.20.87
Graph (Binary Tree) Testfailed0.24failed0.91failed0.57
Multithreading Testfailed0.10failed2.1failed1.1
All Tests0.0590.111.41.20.710.64

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
 DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
Basic Person Test0.0047failed1.8failed0.90failed
Element Collection Test0.00380.00071.5failed0.770.0007
Inheritance Test0.0035failed2.2failed1.1failed
Indexing Test0.0043failed1.8failed0.89failed
Graph (Binary Tree) Testfailedfailedfailedfailedfailedfailed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.00410.00071.8failed0.910.0007

DataNucleus with DB4O embedded has failed in 4 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
 DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
Basic Person Testfailed1.2failedfailedfailed1.2
Element Collection Testfailed0.29failedfailedfailed0.29
Inheritance Testfailed0.69failedfailedfailed0.69
Indexing Testfailed0.0008failedfailedfailed0.0008
Multithreading Testfailedfailedfailedfailedfailedfailed
All Testsfailed0.55failedfailedfailed0.55

DataNucleus with DB4O embedded has failed in 10 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
 DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
Basic Person Test0.012failed0.76failed0.39failed
Element Collection Test0.0120.00161.1failed0.530.0016
Inheritance Test0.011failed0.81failed0.41failed
Indexing Test0.011failed1.3failed0.64failed
Graph (Binary Tree) Testfailedfailedfailedfailedfailedfailed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.0120.00160.97failed0.490.0016

DataNucleus with DB4O embedded has failed in 4 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
 DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
Basic Person Test0.011failed1.5failed0.74failed
Element Collection Test0.0100.00061.6failed0.800.0006
Inheritance Test0.0093failed1.1failed0.57failed
Indexing Test0.017failed2.1failed1.1failed
Graph (Binary Tree) Testfailedfailedfailedfailedfailedfailed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.0120.00061.6failed0.790.0006

DataNucleus with DB4O embedded has failed in 4 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
 DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
Basic Person Test35.179.435.479.435.279.4
Element Collection Test29.574.529.974.529.774.5
Inheritance Test33.475.033.575.033.475.0
Indexing Test41.092.941.994.541.593.7
Graph (Binary Tree) Testfailed60.6failed48.4failed54.5
Multithreading Testfailed100failed100failed100
All Tests34.880.435.278.635.079.5

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
 DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
DataNucleus
DB4O embedded
EclipseLink
SQLite embedded
Basic Person Test0.0220.661.30.900.680.74
Element Collection Test0.0180.0701.30.650.660.17
Inheritance Test0.0190.381.20.820.630.53
Indexing Test0.0280.0581.91.60.940.58
Graph (Binary Tree) Testfailed0.24failed0.91failed0.57
Multithreading Testfailed0.10failed2.1failed1.1
All Tests0.0220.221.41.20.730.52

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