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 removal 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 | 2,198 | 2,667 | 2,667 | 6.8 | 819 | 2,130 | 443 | 1,917 | |||
EclipseLink | 2,889 | 22,252 | 20,472 | failed | 1,760 | 4,072 | 223 | 3,617 | |||
Hibernate | 2,383 | 12,502 | 16,567 | 39.0 | 1,862 | 2,429 | 714 | 3,359 | |||
OpenJPA | 2,661 | 11,605 | 13,537 | 897 | 2,008 | 621 | 2,935 | ||||
ObjectDB | 63,415 | 12,830 |
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 | 35.1 |
3. | EclipseLink with HSQLDB embedded | 32.3 |
4. | Hibernate with HSQLDB embedded | 26.1 |
5. | OpenJPA with HSQLDB embedded | 21.3 |
6. | ObjectDB server | 20.2 |
7. | Hibernate with H2 embedded | 19.7 |
8. | OpenJPA with H2 embedded | 18.3 |
9. | EclipseLink with H2 server | 6.4 |
10. | EclipseLink with PostgreSQL server | 5.7 |
11. | Hibernate with PostgreSQL server | 5.3 |
12. | OpenJPA with PostgreSQL server | 4.6 |
13. | EclipseLink with Derby embedded | 4.6 |
14. | DataNucleus with H2 embedded | 4.2 |
15. | DataNucleus with HSQLDB embedded | 4.2 |
16. | OpenJPA with Derby embedded | 4.2 |
17. | Hibernate with H2 server | 3.8 |
The Least Efficient (the Slowest):
18. | Hibernate with Derby embedded | 3.8 |
19. | DataNucleus with Derby embedded | 3.5 |
20. | DataNucleus with H2 server | 3.4 |
21. | OpenJPA with H2 server | 3.2 |
22. | DataNucleus with PostgreSQL server | 3.0 |
23. | Hibernate with Derby server | 2.9 |
24. | EclipseLink with Derby server | 2.8 |
25. | OpenJPA with Derby server | 1.4 |
26. | DataNucleus with Derby server | 1.3 |
27. | Hibernate with MySQL server | 1.1 |
28. | OpenJPA with MySQL server | 0.98 |
29. | DataNucleus with MySQL server | 0.70 |
30. | EclipseLink with MySQL server | 0.35 |
31. | Hibernate with SQLite embedded | 0.061 |
32. | DataNucleus with DB4O embedded | 0.011 |
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,908,000,000], of class [class java.lang.Integer], from mapping [org.eclipse.persistence.mappings.DirectToFieldMapping[joinDate-->PERSON.JOINDATE]] with descriptor [RelationalDescriptor(org.jpab.basic.Person --> [DatabaseTable(PERSON)])], 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$RemoveAction.run0(Runner.java:587) 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 - Removal Operations - All Batch Size Modes
- All Tests - Removal Operations - Few Entities (5/100)
- Basic Person Test - All Operations - All Batch Size Modes
- Basic Person Test - All Operations - Few Entities (5/100)
- Basic Person Test - Removal Operations - All Batch Size Modes