Hibernate with SQLite embedded

Performance Result Summary

The final position of Hibernate with SQLite embedded in the speed performance tests is 27 out of 32,

The following charts show Hibernate with SQLite embedded relatively to other tested JPA/DBMS combinations.

Position #1 on the X-Axis (the fastest) is about 100 times faster than position #32 (the slowest).
In the chart below the Y-Axis represents result score (maximum 100) in logarithmic scale - higher is better:
JPA performance benchmark comparision Hibernate, EclipseLink, OpenJPA, DataNucleus, ObjectDB
In the chart below the Y-Axis represents result score (maximum 100) in linear scale - higher is better:
JPA performance benchmark comparision Hibernate, EclipseLink, OpenJPA, DataNucleus, ObjectDB

Hibernate with SQLite embedded Problems (Exceptions)

Hibernate with SQLite embedded has failed in the following tests (throwing the following stack traces):

  • Multithreading Test - Persistence Operations - Many Entities (5000)
    java.util.EmptyStackException
    	at java.util.Stack.peek(Stack.java:85)
    	at java.util.Stack.pop(Stack.java:67)
    	at org.jpab.Test.persist(Test.java:213)
    	at org.jpab.Test.persist(Test.java:199)
    	at org.jpab.Runner$PersistAction.run0(Runner.java:528)
    	at org.jpab.Runner$TestAction.run(Runner.java:507)
    	at java.lang.Thread.run(Thread.java:619)
    
  • Multithreading Test - Retrieval Operations - Many Entities (5000)
    java.util.EmptyStackException
    	at java.util.Stack.peek(Stack.java:85)
    	at java.util.Stack.pop(Stack.java:67)
    	at org.jpab.Test.persist(Test.java:213)
    	at org.jpab.Test.persist(Test.java:199)
    	at org.jpab.Runner$PersistAction.run0(Runner.java:528)
    	at org.jpab.Runner$TestAction.run(Runner.java:507)
    	at java.lang.Thread.run(Thread.java:619)
    
  • Multithreading Test - Query Operations - Many Entities (5000)
    java.util.EmptyStackException
    	at java.util.Stack.peek(Stack.java:85)
    	at java.util.Stack.pop(Stack.java:67)
    	at org.jpab.Test.persist(Test.java:213)
    	at org.jpab.Test.persist(Test.java:199)
    	at org.jpab.Runner$PersistAction.run0(Runner.java:528)
    	at org.jpab.Runner$TestAction.run(Runner.java:507)
    	at java.lang.Thread.run(Thread.java:619)
    
  • Multithreading Test - Update Operations - Few Entities (5/100)
    javax.persistence.PersistenceException: org.hibernate.TransactionException: JDBC begin failed: 
    	at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1235)
    	at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1168)
    	at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:1245)
    	at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:63)
    	at org.jpab.Test.doAction(Test.java:242)
    	at org.jpab.Runner$UpdateAction.run0(Runner.java:564)
    	at org.jpab.Runner$TestAction.run(Runner.java:507)
    	at java.lang.Thread.run(Thread.java:619)
    Caused by: org.hibernate.TransactionException: JDBC begin failed: 
    	at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:96)
    	at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1463)
    	at org.hibernate.ejb.TransactionImpl.begin(TransactionImpl.java:60)
    	... 4 more
    Caused by: java.sql.SQLException: SQL logic error or missing database
    	at org.sqlite.DB.throwex(DB.java:288)
    	at org.sqlite.DB.exec(DB.java:68)
    	at org.sqlite.Conn.setAutoCommit(Conn.java:159)
    	at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:91)
    	... 6 more
    
  • Multithreading Test - Update Operations - Many Entities (5000)
    java.util.EmptyStackException
    	at java.util.Stack.peek(Stack.java:85)
    	at java.util.Stack.pop(Stack.java:67)
    	at org.jpab.Test.persist(Test.java:213)
    	at org.jpab.Test.persist(Test.java:199)
    	at org.jpab.Runner$PersistAction.run0(Runner.java:528)
    	at org.jpab.Runner$TestAction.run(Runner.java:507)
    	at java.lang.Thread.run(Thread.java:619)
    
  • Multithreading Test - Removal Operations - Many Entities (5000)
    java.util.EmptyStackException
    	at java.util.Stack.peek(Stack.java:85)
    	at java.util.Stack.pop(Stack.java:67)
    	at org.jpab.Test.persist(Test.java:213)
    	at org.jpab.Test.persist(Test.java:199)
    	at org.jpab.Runner$PersistAction.run0(Runner.java:528)
    	at org.jpab.Runner$TestAction.run(Runner.java:507)
    	at java.lang.Thread.run(Thread.java:619)
    
  • Multithreading Test - Storage Efficiency - Many Entities (5000)
    java.util.EmptyStackException
    	at java.util.Stack.peek(Stack.java:85)
    	at java.util.Stack.pop(Stack.java:67)
    	at org.jpab.Test.persist(Test.java:213)
    	at org.jpab.Test.persist(Test.java:199)
    	at org.jpab.Runner$PersistAction.run0(Runner.java:528)
    	at org.jpab.Runner$TestAction.run(Runner.java:507)
    	at java.lang.Thread.run(Thread.java:619)
    

The following runs have been stopped due to being too slow

  • Element Collection Test - Update Operations - Many Entities (5000)
  • Element Collection Test - Removal Operations - Many Entities (5000)
  • Multithreading Test - Removal Operations - Few Entities (5/100)

Hibernate with SQLite embedded compared to the alternatives

See head to head comparisons of Hibernate with SQLite embedded vs the following compatitors: