Compare with

Comparison of EclipseLink with SQLite embedded vs DataNucleus with MySQL server

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
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
Basic Person Test0.0742.60.901.40.492.0
Element Collection Test0.0611.00.650.480.360.76
Inheritance Test0.0832.50.821.30.451.9
Indexing Test0.114.01.62.50.873.3
Graph (Binary Tree) Test0.241.10.910.990.571.1
Multithreading Test0.106.22.12.51.14.4
All Tests0.112.91.21.50.642.2

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
 EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
Basic Person Testfailed0.96failed9.3failed5.1
Element Collection Test0.00070.18failed0.770.00070.47
Inheritance Testfailed0.55failed8.5failed4.5
Indexing Testfailed0.82failed9.7failed5.3
Graph (Binary Tree) Testfailed2.1failed3.5failed2.8
Multithreading Testfailed0.27failed7.8failed4.0
All Tests0.00070.81failed6.60.00073.7

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
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
Basic Person Test1.27.2failed2.21.24.7
Element Collection Test0.295.8failed0.270.293.1
Inheritance Test0.692.9failed1.70.692.3
Indexing Test0.00080.0084failed2.50.00081.2
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.554.0failed1.70.552.8

EclipseLink with SQLite embedded has failed in 6 tests (see exceptions). DataNucleus with MySQL server 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
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
Basic Person Testfailed0.61failed1.1failed0.88
Element Collection Test0.00160.31failed0.440.00160.38
Inheritance Testfailed0.51failed1.8failed1.1
Indexing Testfailed0.68failed2.2failed1.5
Graph (Binary Tree) Testfailed0.91failed0.47failed0.69
Multithreading Testfailed0.64failedfailedfailed0.64
All Tests0.00160.61failed1.20.00160.88

EclipseLink with SQLite embedded has failed in 11 tests (see exceptions). DataNucleus with MySQL server has failed in 1 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
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
Basic Person Testfailed0.70failed1.3failed1.0
Element Collection Test0.00060.17failed0.400.00060.29
Inheritance Testfailed0.41failed1.3failed0.87
Indexing Testfailed1.7failed1.9failed1.8
Graph (Binary Tree) Testfailed0.49failed0.46failed0.47
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.00060.69failed1.10.00060.89

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
EclipseLink
SQLite embedded
DataNucleus
MySQL server
Basic Person Test0.662.40.903.10.742.7
Element Collection Test0.0701.50.650.470.170.99
Inheritance Test0.381.40.822.90.532.1
Indexing Test0.0581.41.63.80.582.6
Graph (Binary Tree) Test0.241.20.911.40.571.3
Multithreading Test0.102.42.15.11.13.5
All Tests0.221.71.22.60.522.1

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