Compare with

Comparison of EclipseLink with Derby embedded 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 embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
Basic Person Test11.5 9.1 10.3 
Element Collection Test7.3 5.5 6.4 
Inheritance Test6.6 7.5 7.0 
Indexing Test10.9 12.7 11.8 
Graph (Binary Tree) Test3.6 2.9 3.3 
Multithreading Test10.4 0.0000 5.2 
All Tests8.4 6.3 7.3 

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
Basic Person Test12.30.4329.3 20.80.43
Element Collection Test7.5 11.7 9.6 
Inheritance Test6.2 29.0 17.6 
Indexing Test5.4 31.9 18.7 
Graph (Binary Tree) Test0.93 3.3 2.1 
Multithreading Test15.2 32.4 23.8 
All Tests7.90.4322.9 15.40.43

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

A huge 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 embedded database (12.3) reveals that in that case, EclipseLink with Derby embedded is 28.6 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 embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
Basic Person Test1.4failed5.9 3.6failed
Element Collection Test2.9 6.0 4.5 
Inheritance Test0.97 7.1 4.0 
Indexing Test13.8 18.5 16.1 
Multithreading Test4.6 10.4 7.5 
All Tests4.7failed9.6 7.2failed

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 embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
Basic Person Test3.30.0256.2 4.80.025
Element Collection Test10.0 5.5 7.7 
Inheritance Test3.9 7.6 5.8 
Indexing Test10.3 8.3 9.3 
Graph (Binary Tree) Test1.7 1.7 1.7 
Multithreading Test5.2 5.5 5.3 
All Tests5.80.0255.8 5.80.025

The results above show that in general EclipseLink with Derby embedded 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 embedded database (5.8) reveals that in these tests, EclipseLink with Derby embedded is 232 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 embedded database (3.3) reveals that in that case, EclipseLink with Derby embedded is 132 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 embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
Basic Person Test12.90.1712.2 12.50.17
Element Collection Test12.6 1.1 6.8 
Inheritance Test14.1 7.6 10.9 
Indexing Test20.6 4.4 12.5 
Graph (Binary Tree) Test5.0 7.4 6.2 
Multithreading Test4.8 0.0000 2.4 
All Tests11.60.175.5 8.60.17

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

Comparison of database storage efficiency (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
Basic Person Test14.6 14.6 14.6 
Element Collection Test15.8 15.8 15.8 
Inheritance Test15.9 16.4 16.2 
Indexing Test15.0 15.0 15.0 
Graph (Binary Tree) Test5.7 5.7 5.7 
Multithreading Test12.1 12.1 12.1 
All Tests13.2 13.3 13.2 

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
EclipseLink
Derby embedded
DataNucleus
SQLite embedded
Basic Person Test8.30.2112.5 10.40.21
Element Collection Test8.1 6.0 7.0 
Inheritance Test6.4 11.7 9.0 
Indexing Test12.2 15.2 13.7 
Graph (Binary Tree) Test2.8 3.8 3.3 
Multithreading Test8.0 9.7 8.8 
All Tests7.80.2110.0 8.90.21

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

Other Head to Head DBMS/JPA Comparisons