Compare with

Comparison of DataNucleus with PostgreSQL server vs EclipseLink with MySQL 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
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
Basic Person Test4.13.62.61.53.32.6
Element Collection Test0.911.50.380.690.641.1
Inheritance Test3.83.52.41.43.12.4
Indexing Test6.05.36.42.56.23.9
Graph (Binary Tree) Test0.911.70.771.30.841.5
Multithreading Test18.07.28.32.413.14.8
All Tests5.63.83.51.64.52.7

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
 DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
Basic Person Test1.70.437.615.54.68.0
Element Collection Test0.730.160.631.40.680.78
Inheritance Test1.50.399.317.65.49.0
Indexing Test1.50.439.216.65.38.5
Graph (Binary Tree) Test2.60.5312.30.767.40.65
Multithreading Test3.40.1910.811.07.15.6
All Tests1.90.358.310.55.15.4

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
 DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
Basic Person Test49.11.54.70.4426.90.95
Element Collection Test39.11.40.480.4319.80.92
Inheritance Test55.91.16.60.6131.20.86
Indexing Test0.0480.266.40.523.20.39
Multithreading Testfailed1.9failed0.72failed1.3
All Tests36.01.24.50.5420.30.88

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
 DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
Basic Person Test2.10.390.841.81.51.1
Element Collection Test1.40.230.641.41.00.83
Inheritance Test2.10.421.22.61.71.5
Indexing Test2.20.461.53.11.81.8
Graph (Binary Tree) Test0.650.670.200.410.420.54
Multithreading Test0.460.48failed2.60.461.5
All Tests1.50.440.872.01.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
 DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
Basic Person Test3.00.351.31.72.21.0
Element Collection Test1.00.110.390.510.690.31
Inheritance Test2.80.291.31.62.10.94
Indexing Test5.40.461.91.93.71.2
Graph (Binary Tree) Test0.380.540.370.490.370.51
Multithreading Test13.80.31failed3.613.81.9
All Tests4.40.341.11.62.90.98

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
 DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
DataNucleus
PostgreSQL server
EclipseLink
MySQL server
Basic Person Test12.01.33.44.27.72.7
Element Collection Test8.60.690.500.894.60.79
Inheritance Test13.21.14.24.88.72.9
Indexing Test3.01.45.14.94.03.2
Graph (Binary Tree) Test1.10.853.40.732.30.79
Multithreading Test8.92.09.54.09.13.0
All Tests8.01.23.83.36.02.3

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