Compare with

Comparison of DataNucleus with Derby embedded vs Hibernate with SQLite embedded

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
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
Basic Person Test4.60.0832.81.03.70.55
Element Collection Test2.40.0671.60.692.00.38
Inheritance Test4.60.0802.70.993.70.54
Indexing Test7.60.0984.81.06.20.55
Graph (Binary Tree) Test1.60.271.40.961.50.61
Multithreading Test8.6failed3.3failed5.9failed
All Tests4.90.122.80.933.80.53

Hibernate with SQLite embedded has failed in 2 tests (see exceptions).

The results above show that in general DataNucleus with Derby embedded is much more efficient than Hibernate with SQLite embedded in persisting JPA entity objects to the database. Comparing the normalized speed of Hibernate with SQLite embedded database (0.53) to the normalized speed of DataNucleus with Derby embedded database (3.8) reveals that in these tests, DataNucleus with Derby embedded is 7.2 times faster than Hibernate with SQLite embedded.

A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.098) to the normalized speed of DataNucleus with Derby embedded database (7.6) reveals that in that case, DataNucleus with Derby embedded is 77.6 times faster than Hibernate with SQLite embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
Basic Person Test6.81.814.91.310.91.5
Element Collection Test5.40.00087.6failed6.50.0008
Inheritance Test8.82.414.81.411.81.9
Indexing Test9.21.914.12.311.62.1
Graph (Binary Tree) Test9.90.5615.80.8812.90.72
Multithreading Test11.9failed11.5failed11.7failed
All Tests8.71.313.11.510.91.4

Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

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

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0008) to the normalized speed of DataNucleus with Derby embedded database (5.4) reveals that in that case, DataNucleus with Derby embedded is 6,750 times faster than Hibernate with SQLite embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
Basic Person Test39.11.17.50.2223.30.65
Element Collection Test46.00.396.7failed26.30.39
Inheritance Test7.70.533.80.285.70.40
Indexing Test0.0530.00118.00.434.00.21
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests23.20.506.50.3114.80.42

DataNucleus with Derby embedded has failed in 2 tests (see exceptions). Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

The results above show that in general DataNucleus with Derby embedded is much more efficient than Hibernate with SQLite embedded in executing the tested JPA queries. Comparing the normalized speed of Hibernate with SQLite embedded database (0.42) to the normalized speed of DataNucleus with Derby embedded database (14.8) reveals that in these tests, DataNucleus with Derby embedded is 35.2 times faster than Hibernate with SQLite embedded.

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.39) to the normalized speed of DataNucleus with Derby embedded database (46.0) reveals that in that case, DataNucleus with Derby embedded is 118 times faster than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
Basic Person Test4.00.0763.80.653.90.37
Element Collection Test3.70.00224.5failed4.10.0022
Inheritance Test4.40.0794.80.974.60.53
Indexing Test5.20.0574.20.544.70.30
Graph (Binary Tree) Test2.70.261.50.422.10.34
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests4.00.0943.70.653.90.34

DataNucleus with Derby embedded has failed in 2 tests (see exceptions). Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

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

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0022) to the normalized speed of DataNucleus with Derby embedded database (3.7) reveals that in that case, DataNucleus with Derby embedded is 1,682 times faster than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
Basic Person Test3.50.0611.30.912.40.49
Element Collection Test1.90.00071.6failed1.70.0007
Inheritance Test2.40.0581.30.901.90.48
Indexing Test6.60.0791.90.544.30.31
Graph (Binary Tree) Test0.810.240.930.800.870.52
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests3.00.0881.40.792.20.40

DataNucleus with Derby embedded has failed in 2 tests (see exceptions). Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

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

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0007) to the normalized speed of DataNucleus with Derby embedded database (1.9) reveals that in that case, DataNucleus with Derby embedded is 2,714 times faster than Hibernate with SQLite embedded.

Comparison of database storage efficiency (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
Basic Person Test53.390.253.390.253.390.2
Element Collection Test42.682.042.682.042.682.0
Inheritance Test48.180.548.180.548.180.5
Indexing Test62.393.463.394.862.894.1
Graph (Binary Tree) Test13.667.910.250.911.959.4
Multithreading Test52.0failed8.0failed30.0failed
All Tests45.382.837.679.741.581.2

Hibernate with SQLite embedded has failed in 2 tests (see exceptions).

The results above show that in general Hibernate with SQLite embedded is more efficient than DataNucleus with Derby embedded in using disk space.

A large gap has been detected when using graphs of objects with small transaction size. Comparing the normalized score of DataNucleus with Derby embedded database (13.6) to the normalized score of Hibernate with SQLite embedded database (67.9) reveals that in that case, Hibernate with SQLite embedded is 5.0 times more efficient than DataNucleus with Derby embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
DataNucleus
Derby embedded
Hibernate
SQLite embedded
Basic Person Test11.60.636.10.818.80.72
Element Collection Test11.90.0924.40.698.10.19
Inheritance Test5.60.635.50.915.50.77
Indexing Test5.70.426.60.966.20.69
Graph (Binary Tree) Test3.70.334.90.774.30.55
Multithreading Test10.3failed7.4failed8.8failed
All Tests8.00.425.70.866.90.62

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

A huge performance gap has been detected when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.092) to the normalized speed of DataNucleus with Derby embedded database (11.9) reveals that in that case, DataNucleus with Derby embedded is 129 times faster than Hibernate with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons