Compare with

Comparison of EclipseLink 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
 EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
Basic Person Test3.60.0741.50.902.60.49
Element Collection Test1.50.0610.690.651.10.36
Inheritance Test3.50.0831.40.822.40.45
Indexing Test5.30.112.51.63.90.87
Graph (Binary Tree) Test1.70.241.30.911.50.57
Multithreading Test7.20.102.42.14.81.1
All Tests3.80.111.61.22.70.64

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
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
Basic Person Test0.43failed15.5failed8.0failed
Element Collection Test0.160.00071.4failed0.780.0007
Inheritance Test0.39failed17.6failed9.0failed
Indexing Test0.43failed16.6failed8.5failed
Graph (Binary Tree) Test0.53failed0.76failed0.65failed
Multithreading Test0.19failed11.0failed5.6failed
All Tests0.350.000710.5failed5.40.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
 EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
Basic Person Test1.51.20.44failed0.951.2
Element Collection Test1.40.290.43failed0.920.29
Inheritance Test1.10.690.61failed0.860.69
Indexing Test0.260.00080.52failed0.390.0008
Multithreading Test1.9failed0.72failed1.3failed
All Tests1.20.550.54failed0.880.55

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

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

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
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
EclipseLink
MySQL server
EclipseLink
SQLite embedded
Basic Person Test1.30.664.20.902.70.74
Element Collection Test0.690.0700.890.650.790.17
Inheritance Test1.10.384.80.822.90.53
Indexing Test1.40.0584.91.63.20.58
Graph (Binary Tree) Test0.850.240.730.910.790.57
Multithreading Test2.00.104.02.13.01.1
All Tests1.20.223.31.22.30.52

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