Compare with

Comparison of EclipseLink with MySQL server vs DataNucleus 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
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
Basic Person Test1.7 7.1 4.4 
Element Collection Test1.4 5.0 3.2 
Inheritance Test0.93 7.3 4.1 
Indexing Test1.5 8.6 5.1 
Graph (Binary Tree) Test3.7 4.5 4.1 
Multithreading Test1.1 0.0000 0.55 
All Tests1.7 5.4 3.6 

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
Basic Person Test2.20.4315.1 8.70.43
Element Collection Test0.92 0.89 0.91 
Inheritance Test2.9 12.5 7.7 
Indexing Test2.1 11.5 6.8 
Graph (Binary Tree) Test0.22 0.44 0.33 
Multithreading Test3.5 4.9 4.2 
All Tests2.00.437.6 4.80.43

The results above show that in general EclipseLink with MySQL server is much more efficient than DataNucleus with SQLite embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with SQLite embedded database (0.43) to the normalized speed of EclipseLink with MySQL database server (4.8) reveals that in these tests, EclipseLink with MySQL server is 11.2 times faster than DataNucleus with SQLite embedded.

A large performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of DataNucleus with SQLite embedded database (0.43) to the normalized speed of EclipseLink with MySQL database server (2.2) reveals that in that case, EclipseLink with MySQL server is 5.1 times faster than DataNucleus with SQLite embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
Basic Person Test0.17failed1.4 0.80failed
Element Collection Test0.43 0.66 0.54 
Inheritance Test0.19 1.4 0.81 
Indexing Test2.2 4.7 3.5 
Multithreading Test1.0 2.3 1.7 
All Tests0.81failed2.1 1.5failed

DataNucleus with SQLite embedded has failed in 1 tests (see exceptions).

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
Basic Person Test0.200.0250.67 0.430.025
Element Collection Test0.40 0.78 0.59 
Inheritance Test0.20 1.1 0.63 
Indexing Test0.65 1.2 0.92 
Graph (Binary Tree) Test0.24 0.20 0.22 
Multithreading Test0.22 1.6 0.89 
All Tests0.320.0250.91 0.610.025

The results above show that in general EclipseLink with MySQL server is much more efficient than DataNucleus with SQLite embedded in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with SQLite embedded database (0.025) to the normalized speed of EclipseLink with MySQL database server (0.61) reveals that in these tests, EclipseLink with MySQL server is 24.4 times faster than DataNucleus with SQLite embedded.

A large performance gap has been detected when using simple basic entities with small transaction size. Comparing the normalized speed of DataNucleus with SQLite embedded database (0.025) to the normalized speed of EclipseLink with MySQL database server (0.20) reveals that in that case, EclipseLink with MySQL server is 8.0 times faster than DataNucleus with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
Basic Person Test0.980.173.8 2.40.17
Element Collection Test1.3 0.65 0.96 
Inheritance Test1.2 2.7 2.0 
Indexing Test1.8 3.8 2.8 
Graph (Binary Tree) Test3.6 6.3 4.9 
Multithreading Test0.80 0.0000 0.40 
All Tests1.60.172.9 2.20.17

The results above show that in general EclipseLink with MySQL server is much more efficient than DataNucleus with SQLite embedded in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with SQLite embedded database (0.17) to the normalized speed of EclipseLink with MySQL database server (2.2) reveals that in these tests, EclipseLink with MySQL server is 12.9 times faster than DataNucleus with SQLite embedded.

A large performance gap has been detected when using simple basic entities with small transaction size. Comparing the normalized speed of DataNucleus with SQLite embedded database (0.17) to the normalized speed of EclipseLink with MySQL database server (0.98) reveals that in that case, EclipseLink with MySQL server is 5.8 times faster than DataNucleus with SQLite embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
EclipseLink
MySQL server
DataNucleus
SQLite embedded
Basic Person Test1.00.215.6 3.30.21
Element Collection Test0.89 1.6 1.2 
Inheritance Test1.1 5.0 3.0 
Indexing Test1.7 6.0 3.8 
Graph (Binary Tree) Test1.9 2.9 2.4 
Multithreading Test1.3 1.7 1.5 
All Tests1.30.213.8 2.60.21

The results above show that in general EclipseLink with MySQL server is much more efficient than DataNucleus with SQLite embedded in performing JPA database operations. Comparing the normalized speed of DataNucleus with SQLite embedded database (0.21) to the normalized speed of EclipseLink with MySQL database server (2.6) reveals that in these tests, EclipseLink with MySQL server is 12.4 times faster than DataNucleus with SQLite embedded.

A large performance gap has been detected when using simple basic entities with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with SQLite embedded database (0.21) to the normalized speed of EclipseLink with MySQL database server (1.0) reveals that in that case, EclipseLink with MySQL server is 4.8 times faster than DataNucleus with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons