Compare with

Comparison of EclipseLink with Derby 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
 EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
Basic Person Test3.87.33.14.23.45.8
Element Collection Test2.23.11.51.91.82.5
Inheritance Test3.96.92.95.03.45.9
Indexing Test5.210.04.36.84.78.4
Graph (Binary Tree) Test1.93.51.73.31.83.4
Multithreading Test6.131.83.914.55.023.1
All Tests3.810.42.96.03.48.2

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

A large performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (6.1) to the normalized speed of EclipseLink with PostgreSQL database server (31.8) reveals that in that case, EclipseLink with PostgreSQL server is 5.2 times faster than EclipseLink with Derby server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
Basic Person Test6.46.811.317.28.812.0
Element Collection Test1.80.0262.40.0202.10.023
Inheritance Test3.76.012.919.78.312.9
Indexing Test3.65.612.819.58.212.6
Graph (Binary Tree) Test0.610.470.730.610.670.54
Multithreading Test8.513.519.827.814.120.6
All Tests4.15.410.014.17.09.8

The results above show that in general EclipseLink with PostgreSQL server is more efficient than EclipseLink with Derby server in retrieving JPA entity objects from the database.

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 EclipseLink with Derby database server (2.4) reveals that in that case, EclipseLink with PostgreSQL server is 120 times slower than EclipseLink with Derby server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
Basic Person Test45.855.55.37.825.631.6
Element Collection Test35.215.40.990.02818.17.7
Inheritance Test23.154.95.911.514.533.2
Indexing Test2.50.07712.210.07.45.1
Multithreading Test34.355.37.712.021.033.7
All Tests28.236.26.48.317.322.3

The results above show that in general EclipseLink with PostgreSQL server is slightly more efficient than EclipseLink with Derby server in executing the tested JPA queries.

A large performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of EclipseLink with Derby database server (23.1) to the normalized speed of EclipseLink with PostgreSQL database server (54.9) reveals that in that case, EclipseLink with PostgreSQL server is 2.4 times faster than EclipseLink with Derby 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 EclipseLink with Derby database server (0.99) reveals that in that case, EclipseLink with PostgreSQL server is 35.4 times slower than EclipseLink with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
Basic Person Test3.96.24.44.14.15.1
Element Collection Test1.70.0801.60.0281.60.054
Inheritance Test4.66.46.16.15.36.2
Indexing Test4.56.57.67.06.16.8
Graph (Binary Tree) Test0.700.900.420.500.560.70
Multithreading Test7.336.04.89.16.022.5
All Tests3.89.34.24.54.06.9

The results above show that in general EclipseLink with PostgreSQL server is more efficient than EclipseLink with Derby server in updating JPA entity objects in the database.

A large performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (7.3) to the normalized speed of EclipseLink with PostgreSQL database server (36.0) reveals that in that case, EclipseLink with PostgreSQL server is 4.9 times faster than EclipseLink with Derby 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 EclipseLink with Derby database server (1.6) reveals that in that case, EclipseLink with PostgreSQL server is 57.1 times slower than EclipseLink with Derby server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
Basic Person Test2.85.73.95.73.35.7
Element Collection Test1.20.0250.55stopped0.870.012
Inheritance Test3.35.53.75.43.55.4
Indexing Test4.910.43.510.04.210.2
Graph (Binary Tree) Test0.510.0160.500.0130.510.015
Multithreading Test4.826.35.716.85.321.6
All Tests2.98.03.06.33.07.2

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

A large performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with Derby database server (4.8) to the normalized speed of EclipseLink with PostgreSQL database server (26.3) reveals that in that case, EclipseLink with PostgreSQL server is 5.5 times faster than EclipseLink with Derby server.

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with small transaction size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.025) to the normalized speed of EclipseLink with Derby database server (1.2) reveals that in that case, EclipseLink with PostgreSQL server is 48.0 times slower than EclipseLink with Derby server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
EclipseLink
Derby server
EclipseLink
PostgreSQL server
Basic Person Test12.516.35.67.89.112.1
Element Collection Test8.43.71.40.404.92.1
Inheritance Test7.715.96.39.57.012.7
Indexing Test4.16.58.110.76.18.6
Graph (Binary Tree) Test0.931.20.831.10.881.2
Multithreading Test12.232.68.416.010.324.3
All Tests7.913.15.27.86.610.5

The results above show that in general EclipseLink with PostgreSQL server is more efficient than EclipseLink with Derby server in performing JPA database operations.

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

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.40) to the normalized speed of EclipseLink with Derby database server (1.4) reveals that in that case, EclipseLink with PostgreSQL server is 3.5 times slower than EclipseLink with Derby server.

Other Head to Head DBMS/JPA Comparisons