Compare with

Comparison of DataNucleus with MySQL 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
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
Basic Person Test2.67.31.44.22.05.8
Element Collection Test1.03.10.481.90.762.5
Inheritance Test2.56.91.35.01.95.9
Indexing Test4.010.02.56.83.38.4
Graph (Binary Tree) Test1.13.50.993.31.13.4
Multithreading Test6.231.82.514.54.423.1
All Tests2.910.41.56.02.28.2

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
Basic Person Test0.966.89.317.25.112.0
Element Collection Test0.180.0260.770.0200.470.023
Inheritance Test0.556.08.519.74.512.9
Indexing Test0.825.69.719.55.312.6
Graph (Binary Tree) Test2.10.473.50.612.80.54
Multithreading Test0.2713.57.827.84.020.6
All Tests0.815.46.614.13.79.8

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

A huge performance gap has been detected when using multithreading with small retrieval size. Comparing the normalized speed of DataNucleus with MySQL database server (0.27) to the normalized speed of EclipseLink with PostgreSQL database server (13.5) reveals that in that case, EclipseLink with PostgreSQL server is 50.0 times faster than DataNucleus with MySQL 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 MySQL database server (0.77) reveals that in that case, EclipseLink with PostgreSQL server is 38.5 times slower than DataNucleus with MySQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
Basic Person Test7.255.52.27.84.731.6
Element Collection Test5.815.40.270.0283.17.7
Inheritance Test2.954.91.711.52.333.2
Indexing Test0.00840.0772.510.01.25.1
Multithreading Testfailed55.3failed12.0failed33.7
All Tests4.036.21.78.32.822.3

DataNucleus with MySQL 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 MySQL server in executing the tested JPA queries. Comparing the normalized speed of DataNucleus with MySQL database server (2.8) to the normalized speed of EclipseLink with PostgreSQL database server (22.3) reveals that in these tests, EclipseLink with PostgreSQL server is 8.0 times faster than DataNucleus 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 DataNucleus with MySQL database server (2.9) to the normalized speed of EclipseLink with PostgreSQL database server (54.9) reveals that in that case, EclipseLink with PostgreSQL server is 18.9 times faster than DataNucleus with MySQL 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 MySQL database server (0.27) reveals that in that case, EclipseLink with PostgreSQL server is 9.6 times slower than DataNucleus with MySQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
Basic Person Test0.616.21.14.10.885.1
Element Collection Test0.310.0800.440.0280.380.054
Inheritance Test0.516.41.86.11.16.2
Indexing Test0.686.52.27.01.56.8
Graph (Binary Tree) Test0.910.900.470.500.690.70
Multithreading Test0.6436.0failed9.10.6422.5
All Tests0.619.31.24.50.886.9

DataNucleus with MySQL 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 MySQL server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with MySQL database server (0.88) to the normalized speed of EclipseLink with PostgreSQL database server (6.9) reveals that in these tests, EclipseLink with PostgreSQL server is 7.8 times faster than DataNucleus with MySQL server.

A huge performance gap has been detected when using multithreading with small transaction size. Comparing the normalized speed of DataNucleus with MySQL database server (0.64) to the normalized speed of EclipseLink with PostgreSQL database server (36.0) reveals that in that case, EclipseLink with PostgreSQL server is 56.2 times faster than DataNucleus with MySQL 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 MySQL database server (0.44) reveals that in that case, EclipseLink with PostgreSQL server is 15.7 times slower than DataNucleus with MySQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
Basic Person Test0.705.71.35.71.05.7
Element Collection Test0.170.0250.40stopped0.290.012
Inheritance Test0.415.51.35.40.875.4
Indexing Test1.710.41.910.01.810.2
Graph (Binary Tree) Test0.490.0160.460.0130.470.015
Multithreading Testfailed26.3failed16.8failed21.6
All Tests0.698.01.16.30.897.2

DataNucleus with MySQL 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 MySQL server in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with MySQL database server (0.89) to the normalized speed of EclipseLink with PostgreSQL database server (7.2) reveals that in these tests, EclipseLink with PostgreSQL server is 8.1 times faster than DataNucleus with MySQL server.

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

On the other hand, EclipseLink with PostgreSQL server is slower, for instance, when using graphs of objects with large transaction size. Comparing the normalized speed of EclipseLink with PostgreSQL database server (0.013) to the normalized speed of DataNucleus with MySQL database server (0.46) reveals that in that case, EclipseLink with PostgreSQL server is 35.4 times slower than DataNucleus with MySQL server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
DataNucleus
MySQL server
EclipseLink
PostgreSQL server
Basic Person Test2.416.33.17.82.712.1
Element Collection Test1.53.70.470.400.992.1
Inheritance Test1.415.92.99.52.112.7
Indexing Test1.46.53.810.72.68.6
Graph (Binary Tree) Test1.21.21.41.11.31.2
Multithreading Test2.432.65.116.03.524.3
All Tests1.713.12.67.82.110.5

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

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

Other Head to Head DBMS/JPA Comparisons