Compare with

Comparison of EclipseLink with H2 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
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
Basic Person Test15.4 12.9 14.2 
Element Collection Test14.1 8.4 11.3 
Inheritance Test8.4 9.7 9.1 
Indexing Test15.5 14.2 14.9 
Graph (Binary Tree) Test8.5 7.1 7.8 
Multithreading Test12.3 0.0000 6.1 
All Tests12.4 8.7 10.5 

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
Basic Person Test18.60.4330.2 24.40.43
Element Collection Test16.3 21.5 18.9 
Inheritance Test19.7 27.1 23.4 
Indexing Test17.9 29.1 23.5 
Graph (Binary Tree) Test5.9 18.3 12.1 
Multithreading Test26.9 39.9 33.4 
All Tests17.60.4327.7 22.60.43

The results above show that in general EclipseLink with H2 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 H2 embedded database (22.6) reveals that in these tests, EclipseLink with H2 embedded is 52.6 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 H2 embedded database (18.6) reveals that in that case, EclipseLink with H2 embedded is 43.3 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
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
Basic Person Test3.5failed12.2 7.8failed
Element Collection Test7.6 10.1 8.9 
Inheritance Test2.2 12.3 7.3 
Indexing Test11.5 21.6 16.6 
Multithreading Test3.2 12.0 7.6 
All Tests5.6failed13.6 9.6failed

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
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
Basic Person Test21.00.0259.3 15.10.025
Element Collection Test26.7 12.3 19.5 
Inheritance Test15.6 14.0 14.8 
Indexing Test53.2 12.4 32.8 
Graph (Binary Tree) Test11.4 6.1 8.7 
Multithreading Test14.9 6.6 10.7 
All Tests23.80.02510.1 17.00.025

The results above show that in general EclipseLink with H2 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 H2 embedded database (17.0) reveals that in these tests, EclipseLink with H2 embedded is 680 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 H2 embedded database (21.0) reveals that in that case, EclipseLink with H2 embedded is 840 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
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
Basic Person Test43.50.1729.0 36.20.17
Element Collection Test31.5 3.9 17.7 
Inheritance Test49.9 20.7 35.3 
Indexing Test83.8 15.9 49.9 
Graph (Binary Tree) Test35.3 39.8 37.6 
Multithreading Test28.0 0.0000 14.0 
All Tests45.30.1718.2 31.80.17

The results above show that in general EclipseLink with H2 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 H2 embedded database (31.8) reveals that in these tests, EclipseLink with H2 embedded is 187 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 H2 embedded database (43.5) reveals that in that case, EclipseLink with H2 embedded is 256 times faster than DataNucleus with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
Basic Person Test68.1 74.9 71.5 
Element Collection Test74.0 74.9 74.4 
Inheritance Test74.6 82.8 78.7 
Indexing Test68.4 75.8 72.1 
Graph (Binary Tree) Test87.0 83.5 85.3 
Multithreading Test77.1 75.5 76.3 
All Tests74.9 77.9 76.4 

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
EclipseLink
H2 embedded
DataNucleus
SQLite embedded
Basic Person Test20.40.2118.7 19.60.21
Element Collection Test19.2 11.2 15.2 
Inheritance Test19.2 16.8 18.0 
Indexing Test36.4 18.7 27.5 
Graph (Binary Tree) Test15.3 17.8 16.5 
Multithreading Test17.0 11.7 14.4 
All Tests21.50.2115.7 18.60.21

The results above show that in general EclipseLink with H2 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 H2 embedded database (18.6) reveals that in these tests, EclipseLink with H2 embedded is 88.6 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 H2 embedded database (20.4) reveals that in that case, EclipseLink with H2 embedded is 97.1 times faster than DataNucleus with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons