Compare with

Comparison of DataNucleus with SQLite embedded vs Hibernate with HSQLDB server

Each of the following tables focuses on a specific database operation, where the last table presents average results comparison.

Speed comparison of JPA database persistence operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
Basic Person Test stopped stopped stopped
Element Collection Test stopped stopped stopped
Inheritance Test stopped stopped stopped
Indexing Test stopped stopped stopped
Graph (Binary Tree) Test stopped stopped stopped
Multithreading Test stopped stopped stopped
All Tests stopped stopped stopped

Speed comparison of JPA database retrieval operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
Basic Person Test0.43stopped stopped0.43stopped
Element Collection Test stopped stopped stopped
Inheritance Test stopped stopped stopped
Indexing Test stopped stopped stopped
Graph (Binary Tree) Test stopped stopped stopped
Multithreading Test stopped stopped stopped
All Tests0.43stopped stopped0.43stopped

The results above show that in general DataNucleus with SQLite embedded is much more efficient than Hibernate with HSQLDB server in retrieving JPA entity objects from the database. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of DataNucleus with SQLite embedded database (0.43) reveals that in these tests, DataNucleus with SQLite embedded is ? times faster than Hibernate with HSQLDB server.

Speed comparison of JPA database query operations (normalized score, higher is better)

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
Basic Person Testfailedstopped stoppedfailedstopped
Element Collection Test stopped stopped stopped
Inheritance Test stopped stopped stopped
Indexing Test stopped stopped stopped
Multithreading Test stopped stopped stopped
All Testsfailedstopped stoppedfailedstopped

Speed comparison of JPA database update operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
Basic Person Test0.025stopped stopped0.025stopped
Element Collection Test stopped stopped stopped
Inheritance Test stopped stopped stopped
Indexing Test stopped stopped stopped
Graph (Binary Tree) Test stopped stopped stopped
Multithreading Test stopped stopped stopped
All Tests0.025stopped stopped0.025stopped

The results above show that in general DataNucleus with SQLite embedded is much more efficient than Hibernate with HSQLDB server in updating JPA entity objects in the database. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of DataNucleus with SQLite embedded database (0.025) reveals that in these tests, DataNucleus with SQLite embedded is ? times faster than Hibernate with HSQLDB server.

Speed comparison of JPA database removal operations (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
Basic Person Test0.17stopped stopped0.17stopped
Element Collection Test stopped stopped stopped
Inheritance Test stopped stopped stopped
Indexing Test stopped stopped stopped
Graph (Binary Tree) Test stopped stopped stopped
Multithreading Test stopped stopped stopped
All Tests0.17stopped stopped0.17stopped

The results above show that in general DataNucleus with SQLite embedded is much more efficient than Hibernate with HSQLDB server in deleting JPA entity objects from the database. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of DataNucleus with SQLite embedded database (0.17) reveals that in these tests, DataNucleus with SQLite embedded is ? times faster than Hibernate with HSQLDB server.

Comparison of JPA/Database speed - the averages (normalized score, higher is better)

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
DataNucleus
SQLite embedded
Hibernate
HSQLDB server
Basic Person Test0.21stopped stopped0.21stopped
Element Collection Test stopped stopped stopped
Inheritance Test stopped stopped stopped
Indexing Test stopped stopped stopped
Graph (Binary Tree) Test stopped stopped stopped
Multithreading Test stopped stopped stopped
All Tests0.21stopped stopped0.21stopped

The results above show that in general DataNucleus with SQLite embedded is much more efficient than Hibernate with HSQLDB server in performing JPA database operations. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of DataNucleus with SQLite embedded database (0.21) reveals that in these tests, DataNucleus with SQLite embedded is ? times faster than Hibernate with HSQLDB server.

A huge performance gap has been detected when using simple basic entities with small transaction/retrieval size. Comparing the normalized speed of Hibernate with HSQLDB database server (0.0000) to the normalized speed of DataNucleus with SQLite embedded database (0.21) reveals that in that case, DataNucleus with SQLite embedded is ? times faster than Hibernate with HSQLDB server.

Other Head to Head DBMS/JPA Comparisons