Compare with

Comparison of EclipseLink with PostgreSQL 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
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
Basic Person Test7.8 11.7 9.8 
Element Collection Test9.4 9.1 9.2 
Inheritance Test6.2 12.4 9.3 
Indexing Test10.7 12.7 11.7 
Graph (Binary Tree) Test7.8 7.9 7.8 
Multithreading Test10.9 0.0000 5.4 
All Tests8.8 9.0 8.9 

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
Basic Person Test2.20.4310.8 6.50.43
Element Collection Test0.52 0.47 0.50 
Inheritance Test2.0 9.6 5.8 
Indexing Test1.7 10.9 6.3 
Graph (Binary Tree) Test0.22 0.48 0.35 
Multithreading Test3.2 16.7 10.0 
All Tests1.60.438.2 4.90.43

The results above show that in general EclipseLink with PostgreSQL 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 PostgreSQL database server (4.9) reveals that in these tests, EclipseLink with PostgreSQL server is 11.4 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 PostgreSQL database server (2.2) reveals that in that case, EclipseLink with PostgreSQL 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
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
Basic Person Test1.1failed3.7 2.4failed
Element Collection Test1.1 0.51 0.80 
Inheritance Test0.99 4.5 2.8 
Indexing Test0.76 3.5 2.1 
Multithreading Test4.2 6.9 5.5 
All Tests1.6failed3.8 2.7failed

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
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
Basic Person Test1.80.0253.7 2.70.025
Element Collection Test2.0 1.0 1.5 
Inheritance Test1.5 5.1 3.3 
Indexing Test3.4 5.0 4.2 
Graph (Binary Tree) Test0.63 0.44 0.54 
Multithreading Test4.5 3.4 3.9 
All Tests2.30.0253.1 2.70.025

The results above show that in general EclipseLink with PostgreSQL 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 PostgreSQL database server (2.7) reveals that in these tests, EclipseLink with PostgreSQL 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 PostgreSQL database server (1.8) reveals that in that case, EclipseLink with PostgreSQL server is 72.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
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
Basic Person Test14.10.1719.7 16.90.17
Element Collection Test4.8 0.55 2.7 
Inheritance Test16.8 15.6 16.2 
Indexing Test20.7 14.6 17.7 
Graph (Binary Tree) Test6.0 8.0 7.0 
Multithreading Test23.4 0.0000 11.7 
All Tests14.30.179.7 12.00.17

The results above show that in general EclipseLink with PostgreSQL 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 PostgreSQL database server (12.0) reveals that in these tests, EclipseLink with PostgreSQL server is 70.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 PostgreSQL database server (14.1) reveals that in that case, EclipseLink with PostgreSQL server is 82.9 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
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
EclipseLink
PostgreSQL server
DataNucleus
SQLite embedded
Basic Person Test5.40.219.9 7.70.21
Element Collection Test3.5 2.3 2.9 
Inheritance Test5.5 9.4 7.5 
Indexing Test7.4 9.3 8.4 
Graph (Binary Tree) Test3.7 4.2 3.9 
Multithreading Test9.2 5.4 7.3 
All Tests5.90.216.9 6.40.21

The results above show that in general EclipseLink with PostgreSQL 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 PostgreSQL database server (6.4) reveals that in these tests, EclipseLink with PostgreSQL server is 30.5 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 PostgreSQL database server (5.4) reveals that in that case, EclipseLink with PostgreSQL server is 25.7 times faster than DataNucleus with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons