Compare with

Comparison of EclipseLink with SQLite embedded vs DataNucleus 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
 EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
Basic Person Test0.0744.60.902.80.493.7
Element Collection Test0.0612.40.651.60.362.0
Inheritance Test0.0834.60.822.70.453.7
Indexing Test0.117.61.64.80.876.2
Graph (Binary Tree) Test0.241.60.911.40.571.5
Multithreading Test0.108.62.13.31.15.9
All Tests0.114.91.22.80.643.8

The results above show that in general DataNucleus with Derby embedded is much more efficient than EclipseLink with SQLite embedded in persisting JPA entity objects to the database. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.64) to the normalized speed of DataNucleus with Derby embedded database (3.8) reveals that in these tests, DataNucleus with Derby embedded is 5.9 times faster than EclipseLink with SQLite embedded.

A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.10) to the normalized speed of DataNucleus with Derby embedded database (8.6) reveals that in that case, DataNucleus with Derby embedded is 86.0 times faster than EclipseLink with SQLite embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
Basic Person Testfailed6.8failed14.9failed10.9
Element Collection Test0.00075.4failed7.60.00076.5
Inheritance Testfailed8.8failed14.8failed11.8
Indexing Testfailed9.2failed14.1failed11.6
Graph (Binary Tree) Testfailed9.9failed15.8failed12.9
Multithreading Testfailed11.9failed11.5failed11.7
All Tests0.00078.7failed13.10.000710.9

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
 EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
Basic Person Test1.239.1failed7.51.223.3
Element Collection Test0.2946.0failed6.70.2926.3
Inheritance Test0.697.7failed3.80.695.7
Indexing Test0.00080.053failed8.00.00084.0
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.5523.2failed6.50.5514.8

EclipseLink with SQLite embedded has failed in 6 tests (see exceptions). DataNucleus with Derby embedded has failed in 2 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
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
Basic Person Testfailed4.0failed3.8failed3.9
Element Collection Test0.00163.7failed4.50.00164.1
Inheritance Testfailed4.4failed4.8failed4.6
Indexing Testfailed5.2failed4.2failed4.7
Graph (Binary Tree) Testfailed2.7failed1.5failed2.1
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.00164.0failed3.70.00163.9

EclipseLink with SQLite embedded has failed in 11 tests (see exceptions). DataNucleus with Derby embedded has failed in 2 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
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
Basic Person Testfailed3.5failed1.3failed2.4
Element Collection Test0.00061.9failed1.60.00061.7
Inheritance Testfailed2.4failed1.3failed1.9
Indexing Testfailed6.6failed1.9failed4.3
Graph (Binary Tree) Testfailed0.81failed0.93failed0.87
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.00063.0failed1.40.00062.2

EclipseLink with SQLite embedded has failed in 11 tests (see exceptions). DataNucleus with Derby embedded has failed in 2 tests (see exceptions).

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
Basic Person Test79.453.379.453.379.453.3
Element Collection Test74.542.674.542.674.542.6
Inheritance Test75.048.175.048.175.048.1
Indexing Test92.962.394.563.393.762.8
Graph (Binary Tree) Test60.613.648.410.254.511.9
Multithreading Test10052.01008.010030.0
All Tests80.445.378.637.679.541.5

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

A huge gap has been detected when using multithreading with large transaction size. Comparing the normalized score of DataNucleus with Derby embedded database (8.0) to the normalized score of EclipseLink with SQLite embedded database (100) reveals that in that case, EclipseLink with SQLite embedded is 12.5 times more efficient than DataNucleus with Derby embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
EclipseLink
SQLite embedded
DataNucleus
Derby embedded
Basic Person Test0.6611.60.906.10.748.8
Element Collection Test0.07011.90.654.40.178.1
Inheritance Test0.385.60.825.50.535.5
Indexing Test0.0585.71.66.60.586.2
Graph (Binary Tree) Test0.243.70.914.90.574.3
Multithreading Test0.1010.32.17.41.18.8
All Tests0.228.01.25.70.526.9

The results above show that in general DataNucleus with Derby embedded is much more efficient than EclipseLink with SQLite embedded in performing JPA database operations. Comparing the normalized speed of EclipseLink with SQLite embedded database (0.52) to the normalized speed of DataNucleus with Derby embedded database (6.9) reveals that in these tests, DataNucleus with Derby embedded is 13.3 times faster than EclipseLink 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 EclipseLink with SQLite embedded database (0.070) to the normalized speed of DataNucleus with Derby embedded database (11.9) reveals that in that case, DataNucleus with Derby embedded is 170 times faster than EclipseLink with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons