Compare with

Comparison of EclipseLink with MySQL server vs DataNucleus 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
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
Basic Person Test3.64.11.52.62.63.3
Element Collection Test1.50.910.690.381.10.64
Inheritance Test3.53.81.42.42.43.1
Indexing Test5.36.02.56.43.96.2
Graph (Binary Tree) Test1.70.911.30.771.50.84
Multithreading Test7.218.02.48.34.813.1
All Tests3.85.61.63.52.74.5

The results above show that in general DataNucleus with PostgreSQL server is more efficient than EclipseLink with MySQL server in persisting JPA entity objects to the database.

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
Basic Person Test0.431.715.57.68.04.6
Element Collection Test0.160.731.40.630.780.68
Inheritance Test0.391.517.69.39.05.4
Indexing Test0.431.516.69.28.55.3
Graph (Binary Tree) Test0.532.60.7612.30.657.4
Multithreading Test0.193.411.010.85.67.1
All Tests0.351.910.58.35.45.1

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

A large performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.63) to the normalized speed of EclipseLink with MySQL database server (1.4) reveals that in that case, EclipseLink with MySQL server is 2.2 times faster than DataNucleus with PostgreSQL server.

On the other hand, EclipseLink with MySQL server is slower, for instance, when using multithreading with small retrieval size. Comparing the normalized speed of EclipseLink with MySQL database server (0.19) to the normalized speed of DataNucleus with PostgreSQL database server (3.4) reveals that in that case, EclipseLink with MySQL server is 17.9 times slower than DataNucleus with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
Basic Person Test1.549.10.444.70.9526.9
Element Collection Test1.439.10.430.480.9219.8
Inheritance Test1.155.90.616.60.8631.2
Indexing Test0.260.0480.526.40.393.2
Multithreading Test1.9failed0.72failed1.3failed
All Tests1.236.00.544.50.8820.3

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

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

A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of EclipseLink with MySQL database server (1.1) to the normalized speed of DataNucleus with PostgreSQL database server (55.9) reveals that in that case, DataNucleus with PostgreSQL server is 50.8 times faster than EclipseLink with MySQL server.

On the other hand, DataNucleus with PostgreSQL server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.048) to the normalized speed of EclipseLink with MySQL database server (0.26) reveals that in that case, DataNucleus with PostgreSQL server is 5.4 times slower than EclipseLink with MySQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
Basic Person Test0.392.11.80.841.11.5
Element Collection Test0.231.41.40.640.831.0
Inheritance Test0.422.12.61.21.51.7
Indexing Test0.462.23.11.51.81.8
Graph (Binary Tree) Test0.670.650.410.200.540.42
Multithreading Test0.480.462.6failed1.50.46
All Tests0.441.52.00.871.21.2

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

The results above show that in general DataNucleus with PostgreSQL server is equivalent to EclipseLink with MySQL server in updating JPA entity objects in the database.

A large performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of EclipseLink with MySQL database server (0.23) to the normalized speed of DataNucleus with PostgreSQL database server (1.4) reveals that in that case, DataNucleus with PostgreSQL server is 6.1 times faster than EclipseLink with MySQL server.

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
Basic Person Test0.353.01.71.31.02.2
Element Collection Test0.111.00.510.390.310.69
Inheritance Test0.292.81.61.30.942.1
Indexing Test0.465.41.91.91.23.7
Graph (Binary Tree) Test0.540.380.490.370.510.37
Multithreading Test0.3113.83.6failed1.913.8
All Tests0.344.41.61.10.982.9

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

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

A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of EclipseLink with MySQL database server (0.31) to the normalized speed of DataNucleus with PostgreSQL database server (13.8) reveals that in that case, DataNucleus with PostgreSQL server is 44.5 times faster than EclipseLink with MySQL server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
Basic Person Test1.312.04.23.42.77.7
Element Collection Test0.698.60.890.500.794.6
Inheritance Test1.113.24.84.22.98.7
Indexing Test1.43.04.95.13.24.0
Graph (Binary Tree) Test0.851.10.733.40.792.3
Multithreading Test2.08.94.09.53.09.1
All Tests1.28.03.33.82.36.0

The results above show that in general DataNucleus with PostgreSQL server is more efficient than EclipseLink with MySQL server in performing JPA database operations. Comparing the normalized speed of EclipseLink with MySQL database server (2.3) to the normalized speed of DataNucleus with PostgreSQL database server (6.0) reveals that in these tests, DataNucleus with PostgreSQL server is 2.6 times faster than EclipseLink with MySQL server.

A huge performance gap has been detected when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of EclipseLink with MySQL database server (0.69) to the normalized speed of DataNucleus with PostgreSQL database server (8.6) reveals that in that case, DataNucleus with PostgreSQL server is 12.5 times faster than EclipseLink with MySQL server.

Other Head to Head DBMS/JPA Comparisons