Compare with

Comparison of EclipseLink with PostgreSQL server vs DataNucleus with H2 server

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
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
Basic Person Test7.33.44.22.25.82.8
Element Collection Test3.11.21.90.642.50.92
Inheritance Test6.93.05.01.95.92.4
Indexing Test10.05.36.83.58.44.4
Graph (Binary Tree) Test3.52.13.31.33.41.7
Multithreading Test31.810.014.54.323.17.2
All Tests10.44.26.02.38.23.2

The results above show that in general EclipseLink with PostgreSQL server is more efficient than DataNucleus with H2 server in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with H2 database server (3.2) to the normalized speed of EclipseLink with PostgreSQL database server (8.2) reveals that in these tests, EclipseLink with PostgreSQL server is 2.6 times faster than DataNucleus with H2 server.

A large performance gap has been detected when using multithreading with large transaction size. Comparing the normalized speed of DataNucleus with H2 database server (4.3) to the normalized speed of EclipseLink with PostgreSQL database server (14.5) reveals that in that case, EclipseLink with PostgreSQL server is 3.4 times faster than DataNucleus with H2 server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
Basic Person Test6.82.517.25.212.03.9
Element Collection Test0.0260.560.0201.10.0230.82
Inheritance Test6.02.219.76.112.94.2
Indexing Test5.62.119.57.712.64.9
Graph (Binary Tree) Test0.475.70.618.90.547.3
Multithreading Test13.52.327.88.720.65.5
All Tests5.42.514.16.39.84.4

The results above show that in general EclipseLink with PostgreSQL server is more efficient than DataNucleus with H2 server in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with H2 database server (4.4) to the normalized speed of EclipseLink with PostgreSQL database server (9.8) reveals that in these tests, EclipseLink with PostgreSQL server is 2.2 times faster than DataNucleus with H2 server.

A large performance gap has been detected when using multithreading with small retrieval size. Comparing the normalized speed of DataNucleus with H2 database server (2.3) to the normalized speed of EclipseLink with PostgreSQL database server (13.5) reveals that in that case, EclipseLink with PostgreSQL server is 5.9 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.020) to the normalized speed of DataNucleus with H2 database server (1.1) reveals that in that case, EclipseLink with PostgreSQL server is 55.0 times slower than DataNucleus with H2 server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
Basic Person Test55.54.17.81.331.62.7
Element Collection Test15.44.00.0280.497.72.3
Inheritance Test54.92.911.51.533.22.2
Indexing Test0.0770.003610.01.55.10.75
Multithreading Test55.31.312.0failed33.71.3
All Tests36.22.58.31.222.31.9

DataNucleus with H2 server has failed in 1 tests (see exceptions).

The results above show that in general EclipseLink with PostgreSQL server is much more efficient than DataNucleus with H2 server in executing the tested JPA queries. Comparing the normalized speed of DataNucleus with H2 database server (1.9) to the normalized speed of EclipseLink with PostgreSQL database server (22.3) reveals that in these tests, EclipseLink with PostgreSQL server is 11.7 times faster than DataNucleus with H2 server.

A huge performance gap has been detected when using multithreading with small retrieval size. Comparing the normalized speed of DataNucleus with H2 database server (1.3) to the normalized speed of EclipseLink with PostgreSQL database server (55.3) reveals that in that case, EclipseLink with PostgreSQL server is 42.5 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.028) to the normalized speed of DataNucleus with H2 database server (0.49) reveals that in that case, EclipseLink with PostgreSQL server is 17.5 times slower than DataNucleus with H2 server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
Basic Person Test6.22.54.11.45.11.9
Element Collection Test0.0802.00.0281.00.0541.5
Inheritance Test6.42.46.12.36.22.3
Indexing Test6.52.77.03.06.82.9
Graph (Binary Tree) Test0.901.80.500.600.701.2
Multithreading Test36.0failed9.1failed22.5failed
All Tests9.32.34.51.76.92.0

DataNucleus with H2 server has failed in 2 tests (see exceptions).

The results above show that in general EclipseLink with PostgreSQL server is much more efficient than DataNucleus with H2 server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with H2 database server (2.0) to the normalized speed of EclipseLink with PostgreSQL database server (6.9) reveals that in these tests, EclipseLink with PostgreSQL server is 3.4 times faster than DataNucleus with H2 server.

A large performance gap has been detected when using simple basic entities with large transaction size. Comparing the normalized speed of DataNucleus with H2 database server (1.4) to the normalized speed of EclipseLink with PostgreSQL database server (4.1) reveals that in that case, EclipseLink with PostgreSQL server is 2.9 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large transaction size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.028) to the normalized speed of DataNucleus with H2 database server (1.0) reveals that in that case, EclipseLink with PostgreSQL server is 35.7 times slower than DataNucleus with H2 server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
Basic Person Test5.73.45.71.35.72.3
Element Collection Test0.0251.5stopped0.680.0121.1
Inheritance Test5.52.75.41.35.42.0
Indexing Test10.45.710.01.910.23.8
Graph (Binary Tree) Test0.0161.50.0131.20.0151.3
Multithreading Test26.3failed16.85.121.65.1
All Tests8.03.06.31.97.22.4

DataNucleus with H2 server has failed in 1 tests (see exceptions).

The results above show that in general EclipseLink with PostgreSQL server is much more efficient than DataNucleus with H2 server in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with H2 database server (2.4) to the normalized speed of EclipseLink with PostgreSQL database server (7.2) reveals that in these tests, EclipseLink with PostgreSQL server is 3.0 times faster than DataNucleus with H2 server.

A large performance gap has been detected when using database indexes with large transaction size. Comparing the normalized speed of DataNucleus with H2 database server (1.9) to the normalized speed of EclipseLink with PostgreSQL database server (10.0) reveals that in that case, EclipseLink with PostgreSQL server is 5.3 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using graphs of objects with small transaction size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.016) to the normalized speed of DataNucleus with H2 database server (1.5) reveals that in that case, EclipseLink with PostgreSQL server is 93.8 times slower than DataNucleus with H2 server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
Basic Person Test16.33.27.82.312.12.7
Element Collection Test3.71.90.400.782.11.3
Inheritance Test15.92.69.52.612.72.6
Indexing Test6.53.210.73.58.63.3
Graph (Binary Tree) Test1.22.81.13.01.22.9
Multithreading Test32.64.516.06.024.35.3
All Tests13.12.97.82.810.52.9

The results above show that in general EclipseLink with PostgreSQL server is much more efficient than DataNucleus with H2 server in performing JPA database operations. Comparing the normalized speed of DataNucleus with H2 database server (2.9) to the normalized speed of EclipseLink with PostgreSQL database server (10.5) reveals that in these tests, EclipseLink with PostgreSQL server is 3.6 times faster than DataNucleus with H2 server.

A large performance gap has been detected when using multithreading with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with H2 database server (4.5) to the normalized speed of EclipseLink with PostgreSQL database server (32.6) reveals that in that case, EclipseLink with PostgreSQL server is 7.2 times faster than DataNucleus with H2 server.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using graphs of objects with large transaction/retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (1.1) to the normalized speed of DataNucleus with H2 database server (3.0) reveals that in that case, EclipseLink with PostgreSQL server is 2.7 times slower than DataNucleus with H2 server.

Other Head to Head DBMS/JPA Comparisons