Compare with

Comparison of EclipseLink with SQLite embedded vs EclipseLink 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
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
Basic Person Test0.0743.60.901.50.492.6
Element Collection Test0.0611.50.650.690.361.1
Inheritance Test0.0833.50.821.40.452.4
Indexing Test0.115.31.62.50.873.9
Graph (Binary Tree) Test0.241.70.911.30.571.5
Multithreading Test0.107.22.12.41.14.8
All Tests0.113.81.21.60.642.7

The results above show that in general EclipseLink 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 EclipseLink with MySQL database server (2.7) reveals that in these tests, EclipseLink with MySQL server is 4.2 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 EclipseLink with MySQL database server (7.2) reveals that in that case, EclipseLink with MySQL server is 72.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
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
Basic Person Testfailed0.43failed15.5failed8.0
Element Collection Test0.00070.16failed1.40.00070.78
Inheritance Testfailed0.39failed17.6failed9.0
Indexing Testfailed0.43failed16.6failed8.5
Graph (Binary Tree) Testfailed0.53failed0.76failed0.65
Multithreading Testfailed0.19failed11.0failed5.6
All Tests0.00070.35failed10.50.00075.4

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
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
Basic Person Test1.21.5failed0.441.20.95
Element Collection Test0.291.4failed0.430.290.92
Inheritance Test0.691.1failed0.610.690.86
Indexing Test0.00080.26failed0.520.00080.39
Multithreading Testfailed1.9failed0.72failed1.3
All Tests0.551.2failed0.540.550.88

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
 EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
Basic Person Testfailed0.39failed1.8failed1.1
Element Collection Test0.00160.23failed1.40.00160.83
Inheritance Testfailed0.42failed2.6failed1.5
Indexing Testfailed0.46failed3.1failed1.8
Graph (Binary Tree) Testfailed0.67failed0.41failed0.54
Multithreading Testfailed0.48failed2.6failed1.5
All Tests0.00160.44failed2.00.00161.2

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
 EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
Basic Person Testfailed0.35failed1.7failed1.0
Element Collection Test0.00060.11failed0.510.00060.31
Inheritance Testfailed0.29failed1.6failed0.94
Indexing Testfailed0.46failed1.9failed1.2
Graph (Binary Tree) Testfailed0.54failed0.49failed0.51
Multithreading Testfailed0.31failed3.6failed1.9
All Tests0.00060.34failed1.60.00060.98

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
 EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
Basic Person Test0.661.30.904.20.742.7
Element Collection Test0.0700.690.650.890.170.79
Inheritance Test0.381.10.824.80.532.9
Indexing Test0.0581.41.64.90.583.2
Graph (Binary Tree) Test0.240.850.910.730.570.79
Multithreading Test0.102.02.14.01.13.0
All Tests0.221.21.23.30.522.3

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

Other Head to Head DBMS/JPA Comparisons