Compare with

Comparison of EclipseLink with H2 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
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
Basic Person Test12.6 9.5 11.1 
Element Collection Test12.5 6.6 9.5 
Inheritance Test6.5 10.5 8.5 
Indexing Test12.2 12.3 12.3 
Graph (Binary Tree) Test8.3 7.3 7.8 
Multithreading Test11.5 0.0000 5.8 
All Tests10.6 7.7 9.2 

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
Basic Person Test2.80.436.6 4.70.43
Element Collection Test1.5 1.8 1.7 
Inheritance Test2.1 7.9 5.0 
Indexing Test2.4 8.0 5.2 
Graph (Binary Tree) Test0.38 0.81 0.60 
Multithreading Test4.7 11.2 8.0 
All Tests2.30.436.0 4.20.43

The results above show that in general EclipseLink with H2 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 H2 database server (4.2) reveals that in these tests, EclipseLink with H2 server is 9.8 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 H2 database server (2.8) reveals that in that case, EclipseLink with H2 server is 6.5 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 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
Basic Person Test1.2failed3.1 2.2failed
Element Collection Test1.8 1.9 1.9 
Inheritance Test0.75 3.3 2.0 
Indexing Test2.1 3.5 2.8 
Multithreading Test3.6 6.7 5.1 
All Tests1.9failed3.7 2.8failed

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 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
Basic Person Test2.10.0252.8 2.40.025
Element Collection Test4.8 1.9 3.4 
Inheritance Test2.1 3.0 2.6 
Indexing Test5.5 4.4 5.0 
Graph (Binary Tree) Test1.0 0.73 0.89 
Multithreading Test2.7 1.4 2.0 
All Tests3.00.0252.4 2.70.025

The results above show that in general EclipseLink with H2 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 H2 database server (2.7) reveals that in these tests, EclipseLink with H2 server is 108 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 database server (2.1) reveals that in that case, EclipseLink with H2 server is 84.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
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
Basic Person Test12.10.179.6 10.90.17
Element Collection Test8.3 1.2 4.8 
Inheritance Test13.7 7.4 10.6 
Indexing Test23.0 7.0 15.0 
Graph (Binary Tree) Test7.5 10.9 9.2 
Multithreading Test7.0 0.0000 3.5 
All Tests11.90.176.0 9.00.17

The results above show that in general EclipseLink with H2 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 H2 database server (9.0) reveals that in these tests, EclipseLink with H2 server is 52.9 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 database server (12.1) reveals that in that case, EclipseLink with H2 server is 71.2 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
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
EclipseLink
H2 server
DataNucleus
SQLite embedded
Basic Person Test6.20.216.3 6.20.21
Element Collection Test5.8 2.7 4.2 
Inheritance Test5.0 6.4 5.7 
Indexing Test9.0 7.0 8.0 
Graph (Binary Tree) Test4.3 4.9 4.6 
Multithreading Test5.9 3.9 4.9 
All Tests6.10.215.2 5.70.21

The results above show that in general EclipseLink with H2 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 H2 database server (5.7) reveals that in these tests, EclipseLink with H2 server is 27.1 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 database server (6.2) reveals that in that case, EclipseLink with H2 server is 29.5 times faster than DataNucleus with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons