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 persistence 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 | 3,812 | 17,229 | 12,460 | failed | 1,470 | 3,719 | 2,731 | 2,130 | |||
EclipseLink | 5,131 | 40,795 | 44,161 | 2,528 | 4,642 | 9,572 | 3,505 | 9,280 | |||
Hibernate | 4,680 | 55,826 | 43,331 | 2,658 | 4,320 | 10,934 | 3,310 | 7,925 | |||
OpenJPA | 3,778 | 18,510 | 20,238 | 1,766 | 2,340 | 1,588 | 2,235 | ||||
ObjectDB | 277,207 | 247,351 |
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. | ObjectDB server | 89.2 |
3. | Hibernate with H2 embedded | 20.1 |
4. | EclipseLink with HSQLDB embedded | 15.9 |
5. | Hibernate with HSQLDB embedded | 15.6 |
6. | EclipseLink with H2 embedded | 14.7 |
7. | OpenJPA with HSQLDB embedded | 7.3 |
8. | OpenJPA with H2 embedded | 6.7 |
9. | DataNucleus with H2 embedded | 6.2 |
10. | DataNucleus with HSQLDB embedded | 4.5 |
11. | Hibernate with H2 server | 3.9 |
12. | EclipseLink with H2 server | 3.5 |
13. | EclipseLink with PostgreSQL server | 3.3 |
14. | Hibernate with PostgreSQL server | 2.9 |
15. | EclipseLink with Derby embedded | 1.9 |
16. | Hibernate with Derby embedded | 1.7 |
17. | EclipseLink with Derby server | 1.7 |
The Least Efficient (the Slowest):
18. | Hibernate with Derby server | 1.6 |
19. | DataNucleus with Derby embedded | 1.4 |
20. | OpenJPA with Derby embedded | 1.4 |
21. | DataNucleus with H2 server | 1.3 |
22. | EclipseLink with MySQL server | 1.3 |
23. | Hibernate with MySQL server | 1.2 |
24. | DataNucleus with MySQL server | 0.99 |
25. | Hibernate with SQLite embedded | 0.96 |
26. | EclipseLink with SQLite embedded | 0.91 |
27. | OpenJPA with H2 server | 0.84 |
28. | OpenJPA with PostgreSQL server | 0.81 |
29. | DataNucleus with PostgreSQL server | 0.77 |
30. | OpenJPA with Derby server | 0.64 |
31. | OpenJPA with MySQL server | 0.57 |
32. | DataNucleus with Derby server | 0.53 |
33. | DataNucleus with DB4O embedded | 0.0000 |
Problems (Exceptions) in these tests
- DataNucleus with DB4O embedded
javax.persistence.PersistenceException: Object "org.jpab.node.Node@8135daf" being inserted has id "130003" yet an object with this id already exists in the datastore! at org.datanucleus.api.jpa.NucleusJPAHelper.getJPAExceptionForNucleusException(NucleusJPAHelper.java:302) at org.datanucleus.api.jpa.JPAEntityTransaction.commit(JPAEntityTransaction.java:122) at org.jpab.Test.persist(Test.java:217) at org.jpab.Test.persist(Test.java:200) at org.jpab.Runner$PersistAction.run0(Runner.java:538) at org.jpab.Runner$TestAction.run(Runner.java:517) at java.lang.Thread.run(Thread.java:662) Caused by: org.datanucleus.exceptions.NucleusUserException: Object "org.jpab.node.Node@8135daf" being inserted has id "130003" yet an object with this id already exists in the datastore! at org.datanucleus.store.db4o.DB4OPersistenceHandler.insertObject(DB4OPersistenceHandler.java:140) at org.datanucleus.state.JDOStateManager.internalMakePersistent(JDOStateManager.java:2371) at org.datanucleus.state.JDOStateManager.flush(JDOStateManager.java:3803) at org.datanucleus.ObjectManagerImpl.flushInternalWithOrdering(ObjectManagerImpl.java:3854) at org.datanucleus.ObjectManagerImpl.flushInternal(ObjectManagerImpl.java:3755) at org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:3701) at org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:4084) at org.datanucleus.ObjectManagerImpl$2.transactionPreCommit(ObjectManagerImpl.java:398) at org.datanucleus.TransactionImpl.internalPreCommit(TransactionImpl.java:370) at org.datanucleus.TransactionImpl.commit(TransactionImpl.java:259) at org.datanucleus.api.jpa.JPAEntityTransaction.commit(JPAEntityTransaction.java:103) ... 5 more
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 - Persistence Operations - All Batch Size Modes
- All Tests - Persistence Operations - Many Entities (5000)
- Graph (Binary Tree) Test - All Operations - All Batch Size Modes
- Graph (Binary Tree) Test - All Operations - Many Entities (5000)
- Graph (Binary Tree) Test - Persistence Operations - All Batch Size Modes