Compare with

Comparison of DataNucleus with MySQL server 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
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
Basic Person Test2.60.0741.40.902.00.49
Element Collection Test1.00.0610.480.650.760.36
Inheritance Test2.50.0831.30.821.90.45
Indexing Test4.00.112.51.63.30.87
Graph (Binary Tree) Test1.10.240.990.911.10.57
Multithreading Test6.20.102.52.14.41.1
All Tests2.90.111.51.22.20.64

The results above show that in general DataNucleus with MySQL server 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 MySQL database server (2.2) reveals that in these tests, DataNucleus with MySQL server is 3.4 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 MySQL database server (6.2) reveals that in that case, DataNucleus with MySQL server is 62.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
 DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
Basic Person Test0.96failed9.3failed5.1failed
Element Collection Test0.180.00070.77failed0.470.0007
Inheritance Test0.55failed8.5failed4.5failed
Indexing Test0.82failed9.7failed5.3failed
Graph (Binary Tree) Test2.1failed3.5failed2.8failed
Multithreading Test0.27failed7.8failed4.0failed
All Tests0.810.00076.6failed3.70.0007

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
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
Basic Person Test7.21.22.2failed4.71.2
Element Collection Test5.80.290.27failed3.10.29
Inheritance Test2.90.691.7failed2.30.69
Indexing Test0.00840.00082.5failed1.20.0008
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests4.00.551.7failed2.80.55

DataNucleus with MySQL server has failed in 2 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
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
Basic Person Test0.61failed1.1failed0.88failed
Element Collection Test0.310.00160.44failed0.380.0016
Inheritance Test0.51failed1.8failed1.1failed
Indexing Test0.68failed2.2failed1.5failed
Graph (Binary Tree) Test0.91failed0.47failed0.69failed
Multithreading Test0.64failedfailedfailed0.64failed
All Tests0.610.00161.2failed0.880.0016

DataNucleus with MySQL server has failed in 1 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
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
Basic Person Test0.70failed1.3failed1.0failed
Element Collection Test0.170.00060.40failed0.290.0006
Inheritance Test0.41failed1.3failed0.87failed
Indexing Test1.7failed1.9failed1.8failed
Graph (Binary Tree) Test0.49failed0.46failed0.47failed
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.690.00061.1failed0.890.0006

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
Basic Person Test2.40.663.10.902.70.74
Element Collection Test1.50.0700.470.650.990.17
Inheritance Test1.40.382.90.822.10.53
Indexing Test1.40.0583.81.62.60.58
Graph (Binary Tree) Test1.20.241.40.911.30.57
Multithreading Test2.40.105.12.13.51.1
All Tests1.70.222.61.22.10.52

The results above show that in general DataNucleus with MySQL server 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 MySQL database server (2.1) reveals that in these tests, DataNucleus with MySQL server is 4.0 times faster than EclipseLink with SQLite embedded.

A huge 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 DataNucleus with MySQL database server (1.4) reveals that in that case, DataNucleus with MySQL server is 24.1 times faster than EclipseLink with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons