Compare with

Comparison of EclipseLink with Derby 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
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
Basic Person Test9.2 8.9 9.0 
Element Collection Test8.0 6.8 7.4 
Inheritance Test5.6 9.3 7.4 
Indexing Test9.6 11.0 10.3 
Graph (Binary Tree) Test8.1 7.4 7.8 
Multithreading Test10.8 0.0000 5.4 
All Tests8.6 7.2 7.9 

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
Basic Person Test1.80.437.6 4.70.43
Element Collection Test0.86 0.58 0.72 
Inheritance Test1.8 6.6 4.2 
Indexing Test1.7 7.7 4.7 
Graph (Binary Tree) Test0.12 0.26 0.19 
Multithreading Test2.5 12.5 7.5 
All Tests1.50.435.9 3.70.43

The results above show that in general EclipseLink with Derby 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 Derby database server (3.7) reveals that in these tests, EclipseLink with Derby server is 8.6 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 Derby database server (1.8) reveals that in that case, EclipseLink with Derby server is 4.2 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
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
Basic Person Test0.46failed2.4 1.4failed
Element Collection Test0.92 1.1 1.0 
Inheritance Test0.42 2.4 1.4 
Indexing Test1.3 3.3 2.3 
Multithreading Test2.4 4.3 3.4 
All Tests1.1failed2.7 1.9failed

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
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
Basic Person Test1.70.0254.1 2.90.025
Element Collection Test2.6 1.2 1.9 
Inheritance Test1.6 5.2 3.4 
Indexing Test6.0 5.5 5.8 
Graph (Binary Tree) Test0.67 0.41 0.54 
Multithreading Test1.7 4.6 3.2 
All Tests2.40.0253.5 3.00.025

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

A huge 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 Derby database server (1.7) reveals that in that case, EclipseLink with Derby server is 68.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
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
Basic Person Test10.60.177.4 9.00.17
Element Collection Test6.0 0.67 3.3 
Inheritance Test12.6 14.1 13.3 
Indexing Test18.7 10.1 14.4 
Graph (Binary Tree) Test5.8 9.9 7.9 
Multithreading Test6.6 0.0000 3.3 
All Tests10.10.177.0 8.50.17

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

A huge 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 Derby database server (10.6) reveals that in that case, EclipseLink with Derby server is 62.4 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
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
EclipseLink
Derby server
DataNucleus
SQLite embedded
Basic Person Test4.80.216.1 5.40.21
Element Collection Test3.7 2.1 2.9 
Inheritance Test4.4 7.5 6.0 
Indexing Test7.5 7.5 7.5 
Graph (Binary Tree) Test3.7 4.5 4.1 
Multithreading Test4.8 4.3 4.6 
All Tests4.80.215.4 5.10.21

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

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

Other Head to Head DBMS/JPA Comparisons