Comparison of EclipseLink with MySQL server vs DataNucleus with Derby 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 Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server |
Basic Person Test | 3.6 | 2.8 | 1.5 | 2.3 | 2.6 | 2.6 |
Element Collection Test | 1.5 | 0.71 | 0.69 | 0.35 | 1.1 | 0.53 |
Inheritance Test | 3.5 | 2.7 | 1.4 | 2.0 | 2.4 | 2.3 |
Indexing Test | 5.3 | 4.5 | 2.5 | 4.0 | 3.9 | 4.3 |
Graph (Binary Tree) Test | 1.7 | 0.62 | 1.3 | 0.53 | 1.5 | 0.57 |
Multithreading Test | 7.2 | 4.9 | 2.4 | 3.4 | 4.8 | 4.1 |
All Tests | 3.8 | 2.7 | 1.6 | 2.1 | 2.7 | 2.4 |
The results above show that in general EclipseLink with MySQL server is slightly more efficient than DataNucleus with Derby server in persisting JPA entity objects to the database.
A large performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.62) to the normalized speed of EclipseLink with MySQL database server (1.7) reveals that in that case, EclipseLink with MySQL server is 2.7 times faster than DataNucleus with Derby server.
Speed comparison of JPA database retrieval operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server |
Basic Person Test | 0.43 | 0.56 | 15.5 | 6.3 | 8.0 | 3.4 |
Element Collection Test | 0.16 | 0.36 | 1.4 | 0.93 | 0.78 | 0.64 |
Inheritance Test | 0.39 | 0.45 | 17.6 | 6.8 | 9.0 | 3.6 |
Indexing Test | 0.43 | 0.50 | 16.6 | 7.1 | 8.5 | 3.8 |
Graph (Binary Tree) Test | 0.53 | 0.22 | 0.76 | 6.6 | 0.65 | 3.4 |
Multithreading Test | 0.19 | 1.2 | 11.0 | 10.0 | 5.6 | 5.6 |
All Tests | 0.35 | 0.55 | 10.5 | 6.3 | 5.4 | 3.4 |
The results above show that in general EclipseLink with MySQL server is more efficient than DataNucleus with Derby server in retrieving JPA entity objects from the database.
A large performance gap has been detected when using class inheritance in the object model with large retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (6.8) to the normalized speed of EclipseLink with MySQL database server (17.6) reveals that in that case, EclipseLink with MySQL server is 2.6 times faster than DataNucleus with Derby server.
On the other hand, EclipseLink with MySQL server is slower, for instance, when using graphs of objects with large retrieval size. Comparing the normalized speed of EclipseLink with MySQL database server (0.76) to the normalized speed of DataNucleus with Derby database server (6.6) reveals that in that case, EclipseLink with MySQL server is 8.7 times slower than DataNucleus with Derby server.
Speed comparison of JPA database query operations (normalized score, higher is better)
Retrieval Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server |
Basic Person Test | 1.5 | 37.7 | 0.44 | 3.6 | 0.95 | 20.7 |
Element Collection Test | 1.4 | 25.9 | 0.43 | 1.4 | 0.92 | 13.6 |
Inheritance Test | 1.1 | 6.5 | 0.61 | 1.8 | 0.86 | 4.2 |
Indexing Test | 0.26 | 0.030 | 0.52 | 4.9 | 0.39 | 2.5 |
Multithreading Test | 1.9 | failed | 0.72 | failed | 1.3 | failed |
All Tests | 1.2 | 17.5 | 0.54 | 2.9 | 0.88 | 10.2 |
DataNucleus with Derby server has failed in 2 tests (see exceptions).
The results above show that in general DataNucleus with Derby 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 Derby database server (10.2) reveals that in these tests, DataNucleus with Derby server is 11.6 times faster than EclipseLink with MySQL server.
A huge performance gap has been detected when using simple basic entities with small retrieval size. Comparing the normalized speed of EclipseLink with MySQL database server (1.5) to the normalized speed of DataNucleus with Derby database server (37.7) reveals that in that case, DataNucleus with Derby server is 25.1 times faster than EclipseLink with MySQL server.
On the other hand, DataNucleus with Derby server is slower, for instance, when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.030) to the normalized speed of EclipseLink with MySQL database server (0.26) reveals that in that case, DataNucleus with Derby server is 8.7 times slower than EclipseLink with MySQL server.
Speed comparison of JPA database update operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server |
Basic Person Test | 0.39 | 1.1 | 1.8 | 0.85 | 1.1 | 0.99 |
Element Collection Test | 0.23 | 0.81 | 1.4 | 0.62 | 0.83 | 0.71 |
Inheritance Test | 0.42 | 1.2 | 2.6 | 1.3 | 1.5 | 1.2 |
Indexing Test | 0.46 | 1.2 | 3.1 | 1.5 | 1.8 | 1.3 |
Graph (Binary Tree) Test | 0.67 | 0.29 | 0.41 | 0.41 | 0.54 | 0.35 |
Multithreading Test | 0.48 | failed | 2.6 | failed | 1.5 | failed |
All Tests | 0.44 | 0.93 | 2.0 | 0.92 | 1.2 | 0.92 |
DataNucleus with Derby server has failed in 2 tests (see exceptions).
The results above show that in general EclipseLink with MySQL server is more efficient than DataNucleus with Derby server in updating JPA entity objects in the database.
A large performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.29) to the normalized speed of EclipseLink with MySQL database server (0.67) reveals that in that case, EclipseLink with MySQL server is 2.3 times faster than DataNucleus with Derby server.
On the other hand, EclipseLink with MySQL server is slower, for instance, 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 Derby database server (0.81) reveals that in that case, EclipseLink with MySQL server is 3.5 times slower than DataNucleus with Derby server.
Speed comparison of JPA database removal operations (normalized score, higher is better)
Transaction Size => | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server |
Basic Person Test | 0.35 | 1.3 | 1.7 | 1.3 | 1.0 | 1.3 |
Element Collection Test | 0.11 | 0.61 | 0.51 | 0.33 | 0.31 | 0.47 |
Inheritance Test | 0.29 | 1.0 | 1.6 | 1.3 | 0.94 | 1.2 |
Indexing Test | 0.46 | 2.3 | 1.9 | 1.9 | 1.2 | 2.1 |
Graph (Binary Tree) Test | 0.54 | 0.26 | 0.49 | 0.46 | 0.51 | 0.36 |
Multithreading Test | 0.31 | failed | 3.6 | failed | 1.9 | failed |
All Tests | 0.34 | 1.1 | 1.6 | 1.1 | 0.98 | 1.1 |
DataNucleus with Derby server has failed in 2 tests (see exceptions).
The results above show that in general DataNucleus with Derby server is slightly more efficient than EclipseLink with MySQL server in deleting JPA entity objects from 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.11) to the normalized speed of DataNucleus with Derby database server (0.61) reveals that in that case, DataNucleus with Derby server is 5.5 times faster than EclipseLink with MySQL server.
On the other hand, DataNucleus with Derby server is slower, for instance, when using graphs of objects with small transaction size. Comparing the normalized speed of DataNucleus with Derby database server (0.26) to the normalized speed of EclipseLink with MySQL database server (0.54) reveals that in that case, DataNucleus with Derby server is 2.1 times slower than EclipseLink with MySQL server.
Comparison of JPA/Database speed - the averages (normalized score, higher is better)
Transaction/Retrieval Size | Few Entities | Many Entities | Average Score | |||
---|---|---|---|---|---|---|
  | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server | EclipseLink MySQL server | DataNucleus Derby server |
Basic Person Test | 1.3 | 8.7 | 4.2 | 2.9 | 2.7 | 5.8 |
Element Collection Test | 0.69 | 5.7 | 0.89 | 0.72 | 0.79 | 3.2 |
Inheritance Test | 1.1 | 2.4 | 4.8 | 2.6 | 2.9 | 2.5 |
Indexing Test | 1.4 | 1.7 | 4.9 | 3.9 | 3.2 | 2.8 |
Graph (Binary Tree) Test | 0.85 | 0.35 | 0.73 | 2.0 | 0.79 | 1.2 |
Multithreading Test | 2.0 | 3.0 | 4.0 | 6.7 | 3.0 | 4.9 |
All Tests | 1.2 | 3.8 | 3.3 | 2.8 | 2.3 | 3.3 |
The results above show that in general DataNucleus with Derby server is more efficient than EclipseLink with MySQL server in performing JPA database operations.
A large 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 Derby database server (5.7) reveals that in that case, DataNucleus with Derby server is 8.3 times faster than EclipseLink with MySQL server.
On the other hand, DataNucleus with Derby server is slower, for instance, when using graphs of objects with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with Derby database server (0.35) to the normalized speed of EclipseLink with MySQL database server (0.85) reveals that in that case, DataNucleus with Derby server is 2.4 times slower than EclipseLink with MySQL server.
Other Head to Head DBMS/JPA Comparisons
EclipseLink with MySQL server against:
- Oracle Database 11g
- IBM DB2 10
- Microsoft SQL Server 2008
- DataNucleus with Derby embedded
- DataNucleus with H2 embedded
- DataNucleus with HSQLDB embedded
- DataNucleus with DB4O embedded
- DataNucleus with Derby server
- DataNucleus with H2 server
- DataNucleus with MySQL server
- DataNucleus with PostgreSQL server
- EclipseLink with Derby embedded
- EclipseLink with H2 embedded
- EclipseLink with HSQLDB embedded
- EclipseLink with SQLite embedded
- EclipseLink with Derby server
- EclipseLink with H2 server
- EclipseLink with PostgreSQL server
- Hibernate with Derby embedded
- Hibernate with H2 embedded
- Hibernate with HSQLDB embedded
- Hibernate with SQLite embedded
- Hibernate with Derby server
- Hibernate with H2 server
- Hibernate with MySQL server
- Hibernate with PostgreSQL server
- OpenJPA with Derby embedded
- OpenJPA with H2 embedded
- OpenJPA with HSQLDB embedded
- OpenJPA with Derby server
- OpenJPA with H2 server
- OpenJPA with MySQL server
- OpenJPA with PostgreSQL server
- ObjectDB embedded
- ObjectDB server
DataNucleus with Derby server against:
- Oracle Database 11g
- IBM DB2 10
- Microsoft SQL Server 2008
- DataNucleus with Derby embedded
- DataNucleus with H2 embedded
- DataNucleus with HSQLDB embedded
- DataNucleus with DB4O embedded
- DataNucleus with H2 server
- DataNucleus with MySQL server
- DataNucleus with PostgreSQL server
- EclipseLink with Derby embedded
- EclipseLink with H2 embedded
- EclipseLink with HSQLDB embedded
- EclipseLink with SQLite embedded
- EclipseLink with Derby server
- EclipseLink with H2 server
- EclipseLink with MySQL server
- EclipseLink with PostgreSQL server
- Hibernate with Derby embedded
- Hibernate with H2 embedded
- Hibernate with HSQLDB embedded
- Hibernate with SQLite embedded
- Hibernate with Derby server
- Hibernate with H2 server
- Hibernate with MySQL server
- Hibernate with PostgreSQL server
- OpenJPA with Derby embedded
- OpenJPA with H2 embedded
- OpenJPA with HSQLDB embedded
- OpenJPA with Derby server
- OpenJPA with H2 server
- OpenJPA with MySQL server
- OpenJPA with PostgreSQL server
- ObjectDB embedded
- ObjectDB server