Compare with

Comparison of DataNucleus with H2 server vs EclipseLink with PostgreSQL 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
 DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
Basic Person Test3.47.32.24.22.85.8
Element Collection Test1.23.10.641.90.922.5
Inheritance Test3.06.91.95.02.45.9
Indexing Test5.310.03.56.84.48.4
Graph (Binary Tree) Test2.13.51.33.31.73.4
Multithreading Test10.031.84.314.57.223.1
All Tests4.210.42.36.03.28.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
 DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
Basic Person Test2.56.85.217.23.912.0
Element Collection Test0.560.0261.10.0200.820.023
Inheritance Test2.26.06.119.74.212.9
Indexing Test2.15.67.719.54.912.6
Graph (Binary Tree) Test5.70.478.90.617.30.54
Multithreading Test2.313.58.727.85.520.6
All Tests2.55.46.314.14.49.8

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
 DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
Basic Person Test4.155.51.37.82.731.6
Element Collection Test4.015.40.490.0282.37.7
Inheritance Test2.954.91.511.52.233.2
Indexing Test0.00360.0771.510.00.755.1
Multithreading Test1.355.3failed12.01.333.7
All Tests2.536.21.28.31.922.3

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
 DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
Basic Person Test2.56.21.44.11.95.1
Element Collection Test2.00.0801.00.0281.50.054
Inheritance Test2.46.42.36.12.36.2
Indexing Test2.76.53.07.02.96.8
Graph (Binary Tree) Test1.80.900.600.501.20.70
Multithreading Testfailed36.0failed9.1failed22.5
All Tests2.39.31.74.52.06.9

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
 DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
Basic Person Test3.45.71.35.72.35.7
Element Collection Test1.50.0250.68stopped1.10.012
Inheritance Test2.75.51.35.42.05.4
Indexing Test5.710.41.910.03.810.2
Graph (Binary Tree) Test1.50.0161.20.0131.30.015
Multithreading Testfailed26.35.116.85.121.6
All Tests3.08.01.96.32.47.2

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
 DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
DataNucleus
H2 server
EclipseLink
PostgreSQL server
Basic Person Test3.216.32.37.82.712.1
Element Collection Test1.93.70.780.401.32.1
Inheritance Test2.615.92.69.52.612.7
Indexing Test3.26.53.510.73.38.6
Graph (Binary Tree) Test2.81.23.01.12.91.2
Multithreading Test4.532.66.016.05.324.3
All Tests2.913.12.87.82.910.5

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