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 | 18,603 | 16,342 | 10,378 | 8.6 | 1,023 | 4,212 | 1,667 | 2,950 | |||
EclipseLink | 28,768 | 44,934 | 41,957 | failed | 7,236 | 8,950 | 869 | 11,440 | |||
Hibernate | 20,160 | 21,898 | 24,159 | 3,786 | 6,527 | 5,269 | 4,977 | 9,297 | |||
OpenJPA | 23,711 | 34,494 | 44,774 | 1,257 | 8,319 | 4,806 | 9,741 | ||||
ObjectDB | 202,516 | 28,452 |
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 H2 embedded | 22.2 |
3. | OpenJPA with HSQLDB embedded | 22.1 |
4. | EclipseLink with HSQLDB embedded | 20.7 |
5. | OpenJPA with H2 embedded | 17.0 |
6. | EclipseLink with Derby embedded | 14.2 |
7. | ObjectDB server | 14.0 |
8. | Hibernate with HSQLDB embedded | 11.9 |
9. | OpenJPA with Derby embedded | 11.7 |
10. | Hibernate with H2 embedded | 10.8 |
11. | Hibernate with Derby embedded | 10.0 |
12. | DataNucleus with Derby embedded | 9.2 |
13. | DataNucleus with H2 embedded | 8.1 |
14. | EclipseLink with PostgreSQL server | 5.6 |
15. | DataNucleus with HSQLDB embedded | 5.1 |
16. | OpenJPA with PostgreSQL server | 4.8 |
17. | Hibernate with PostgreSQL server | 4.6 |
The Least Efficient (the Slowest):
18. | EclipseLink with H2 server | 4.4 |
19. | OpenJPA with H2 server | 4.1 |
20. | EclipseLink with Derby server | 3.6 |
21. | Hibernate with Derby server | 3.2 |
22. | Hibernate with H2 server | 2.6 |
23. | Hibernate with MySQL server | 2.5 |
24. | OpenJPA with MySQL server | 2.4 |
25. | DataNucleus with H2 server | 2.1 |
26. | Hibernate with SQLite embedded | 1.9 |
27. | DataNucleus with PostgreSQL server | 1.5 |
28. | DataNucleus with MySQL server | 0.82 |
29. | OpenJPA with Derby server | 0.62 |
30. | DataNucleus with Derby server | 0.50 |
31. | EclipseLink with MySQL server | 0.43 |
32. | DataNucleus with DB4O embedded | 0.0043 |
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,116,000,000], of class [class java.lang.Integer], from mapping [org.eclipse.persistence.mappings.DirectToFieldMapping[birthDate-->INDEXEDPERSON.BIRTHDATE]] with descriptor [RelationalDescriptor(org.jpab.index.IndexedPerson --> [DatabaseTable(INDEXEDPERSON)])], 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 - Few Entities (5/100)
- All Tests - Retrieval Operations - All Batch Size Modes
- All Tests - Retrieval Operations - Few Entities (5/100)
- Indexing Test - All Operations - All Batch Size Modes
- Indexing Test - All Operations - Few Entities (5/100)
- Indexing Test - Retrieval Operations - All Batch Size Modes