When one or more of the All filters is selected - only average normalized results are displayed. Please read Running and Results for more details.
Speed comparison of JPA database retrieval operations per second (higher is better)
  | Derby embedded | H2 embedded | HSQLDB embedded | SQLite embedded | DB4O embedded | ObjectDB embedded | Derby server | H2 server | MySQL server | PostgreSQL server | ObjectDB server |
---|---|---|---|---|---|---|---|---|---|---|---|
DataNucleus | 38,689 | 32,994 | 22,895 | 5,712 | 17,611 | 15,989 | 22,258 | 24,272 | |||
EclipseLink | 153,579 | 103,701 | 104,154 | failed | 33,677 | 26,349 | 45,770 | 51,338 | |||
Hibernate | 48,334 | 45,512 | 54,664 | 3,637 | 25,224 | 19,822 | 37,825 | 36,544 | |||
OpenJPA | 18,270 | 19,286 | 5,106 | 12,989 | 10,307 | 17,927 | 45,961 | ||||
ObjectDB | 260,539 | 128,826 |
Performance comparison chart - The Y-Axis represents normalized score in logarithmic scale - higher is better:
Performance comparison chart - The Y-Axis represents normalized score in linear scale - higher is better:
Best and Worst JPA/Database Performer in this comparison
The Most Efficient (the Fastest):
1. | ObjectDB embedded | 100 |
2. | EclipseLink with Derby embedded | 58.9 |
3. | ObjectDB server | 49.4 |
4. | EclipseLink with HSQLDB embedded | 40.0 |
5. | EclipseLink with H2 embedded | 39.8 |
6. | Hibernate with HSQLDB embedded | 21.0 |
7. | EclipseLink with PostgreSQL server | 19.7 |
8. | Hibernate with Derby embedded | 18.6 |
9. | OpenJPA with PostgreSQL server | 17.6 |
10. | EclipseLink with MySQL server | 17.6 |
11. | Hibernate with H2 embedded | 17.5 |
12. | DataNucleus with Derby embedded | 14.8 |
13. | Hibernate with MySQL server | 14.5 |
14. | Hibernate with PostgreSQL server | 14.0 |
15. | EclipseLink with Derby server | 12.9 |
16. | DataNucleus with H2 embedded | 12.7 |
17. | EclipseLink with H2 server | 10.1 |
The Least Efficient (the Slowest):
18. | Hibernate with Derby server | 9.7 |
19. | DataNucleus with PostgreSQL server | 9.3 |
20. | DataNucleus with HSQLDB embedded | 8.8 |
21. | DataNucleus with MySQL server | 8.5 |
22. | Hibernate with H2 server | 7.6 |
23. | OpenJPA with H2 embedded | 7.4 |
24. | OpenJPA with Derby embedded | 7.0 |
25. | OpenJPA with MySQL server | 6.9 |
26. | DataNucleus with Derby server | 6.8 |
27. | DataNucleus with H2 server | 6.1 |
28. | OpenJPA with Derby server | 5.0 |
29. | OpenJPA with H2 server | 4.0 |
30. | DataNucleus with DB4O embedded | 2.2 |
31. | OpenJPA with HSQLDB embedded | 2.0 |
32. | Hibernate with SQLite embedded | 1.4 |
33. | EclipseLink with SQLite embedded | 0.0000 |
Problems (Exceptions) in these tests
- EclipseLink with SQLite embedded
Local Exception Stack: Exception [EclipseLink-3002] (Eclipse Persistence Services - 2.1.1.v20100817-r8050): org.eclipse.persistence.exceptions.ConversionException Exception Description: The object [-1,216,800,000], of class [class java.lang.Integer], from mapping [org.eclipse.persistence.mappings.DirectToFieldMapping[joinDate-->PERSONBASE.JOINDATE]] with descriptor [RelationalDescriptor(org.jpab.ext.PersonExtExt --> [DatabaseTable(PERSONBASE)])], could not be converted to [class java.util.Date]. at org.eclipse.persistence.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:71) at org.eclipse.persistence.internal.helper.ConversionManager.convertObjectToUtilDate(ConversionManager.java:761) at org.eclipse.persistence.internal.helper.ConversionManager.convertObject(ConversionManager.java:101) at org.eclipse.persistence.internal.databaseaccess.DatasourcePlatform.convertObject(DatasourcePlatform.java:157) at org.eclipse.persistence.mappings.converters.TypeConversionConverter.convertDataValueToObjectValue(TypeConversionConverter.java:119) at org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.getAttributeValue(AbstractDirectMapping.java:675) at org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.valueFromRow(AbstractDirectMapping.java:1263) at org.eclipse.persistence.mappings.foundation.AbstractDirectMapping.buildCloneFromRow(AbstractDirectMapping.java:1234) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildAttributesIntoWorkingCopyClone(ObjectBuilder.java:1338) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildWorkingCopyCloneFromRow(ObjectBuilder.java:1466) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObjectInUnitOfWork(ObjectBuilder.java:558) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:502) at org.eclipse.persistence.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:454) at org.eclipse.persistence.queries.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:721) at org.eclipse.persistence.queries.ReadAllQuery.registerResultInUnitOfWork(ReadAllQuery.java:723) at org.eclipse.persistence.queries.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:420) at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:1074) at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:736) at org.eclipse.persistence.queries.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:1034) at org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAllQuery.java:380) at org.eclipse.persistence.queries.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:1112) at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2909) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1291) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1273) at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1247) at org.eclipse.persistence.internal.jpa.EJBQueryImpl.executeReadQuery(EJBQueryImpl.java:479) at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getResultList(EJBQueryImpl.java:714) at org.jpab.Test.retireveEntities(Test.java:382) at org.jpab.Test.doAction(Test.java:251) at org.jpab.Runner$RetrieveAction.run0(Runner.java:550) at org.jpab.Runner$TestAction.run(Runner.java:517) at java.lang.Thread.run(Thread.java:662)
The results above are in use in calculating the following average results
- All Tests - All Operations - All Batch Size Modes
- All Tests - All Operations - Many Entities (5000)
- All Tests - Retrieval Operations - All Batch Size Modes
- All Tests - Retrieval Operations - Many Entities (5000)
- Inheritance Test - All Operations - All Batch Size Modes
- Inheritance Test - All Operations - Many Entities (5000)
- Inheritance Test - Retrieval Operations - All Batch Size Modes