Compare with

Comparison of DataNucleus with DB4O 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
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
Basic Person Test0.0590.0831.31.00.690.55
Element Collection Test0.0450.0671.00.690.520.38
Inheritance Test0.0510.0800.850.990.450.54
Indexing Test0.0800.0982.31.01.20.55
Graph (Binary Tree) Testfailed0.27failed0.96failed0.61
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.0590.121.40.930.710.53

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

The results above show that in general DataNucleus with DB4O embedded is more efficient than Hibernate with SQLite embedded in persisting JPA entity objects to the database.

A large performance gap has been detected when using database indexes with large transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (1.0) to the normalized speed of DataNucleus with DB4O embedded database (2.3) reveals that in that case, DataNucleus with DB4O embedded is 2.3 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
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
Basic Person Test0.00471.81.81.30.901.5
Element Collection Test0.00380.00081.5failed0.770.0008
Inheritance Test0.00352.42.21.41.11.9
Indexing Test0.00431.91.82.30.892.1
Graph (Binary Tree) Testfailed0.56failed0.88failed0.72
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.00411.31.81.50.911.4

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

The results above show that in general Hibernate with SQLite embedded is more efficient than DataNucleus with DB4O embedded in retrieving JPA entity objects from the database.

A huge performance gap has been detected when using class inheritance in the object model with small retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0035) to the normalized speed of Hibernate with SQLite embedded database (2.4) reveals that in that case, Hibernate with SQLite embedded is 686 times faster than DataNucleus with DB4O embedded.

On the other hand, Hibernate with SQLite embedded is slower, for instance, 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 DB4O embedded database (0.0038) reveals that in that case, Hibernate with SQLite embedded is 4.8 times slower than DataNucleus with DB4O embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
Basic Person Testfailed1.1failed0.22failed0.65
Element Collection Testfailed0.39failedfailedfailed0.39
Inheritance Testfailed0.53failed0.28failed0.40
Indexing Testfailed0.0011failed0.43failed0.21
Multithreading Testfailedfailedfailedfailedfailedfailed
All Testsfailed0.50failed0.31failed0.42

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
Basic Person Test0.0120.0760.760.650.390.37
Element Collection Test0.0120.00221.1failed0.530.0022
Inheritance Test0.0110.0790.810.970.410.53
Indexing Test0.0110.0571.30.540.640.30
Graph (Binary Tree) Testfailed0.26failed0.42failed0.34
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.0120.0940.970.650.490.34

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

The results above show that in general DataNucleus with DB4O embedded is more efficient than Hibernate with SQLite embedded in updating JPA entity objects in the database.

A large 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 DB4O embedded database (0.012) reveals that in that case, DataNucleus with DB4O embedded is 5.5 times faster than Hibernate with SQLite embedded.

On the other hand, DataNucleus with DB4O embedded is slower, for instance, when using class inheritance in the object model with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.011) to the normalized speed of Hibernate with SQLite embedded database (0.079) reveals that in that case, DataNucleus with DB4O embedded is 7.2 times slower than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
Basic Person Test0.0110.0611.50.910.740.49
Element Collection Test0.0100.00071.6failed0.800.0007
Inheritance Test0.00930.0581.10.900.570.48
Indexing Test0.0170.0792.10.541.10.31
Graph (Binary Tree) Testfailed0.24failed0.80failed0.52
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.0120.0881.60.790.790.40

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

The results above show that in general DataNucleus with DB4O embedded is more efficient than Hibernate with SQLite embedded in deleting JPA entity objects from the database.

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 DB4O embedded database (0.010) reveals that in that case, DataNucleus with DB4O embedded is 14.3 times faster than Hibernate with SQLite embedded.

On the other hand, DataNucleus with DB4O embedded is slower, for instance, when using class inheritance in the object model with small transaction size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.0093) to the normalized speed of Hibernate with SQLite embedded database (0.058) reveals that in that case, DataNucleus with DB4O embedded is 6.2 times slower than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
Basic Person Test35.190.235.490.235.290.2
Element Collection Test29.582.029.982.029.782.0
Inheritance Test33.480.533.580.533.480.5
Indexing Test41.093.441.994.841.594.1
Graph (Binary Tree) Testfailed67.9failed50.9failed59.4
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests34.882.835.279.735.081.2

DataNucleus with DB4O embedded has failed in 4 tests (see exceptions). 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 DB4O embedded in using disk space. Comparing the normalized score of DataNucleus with DB4O embedded database (35.0) to the normalized score of Hibernate with SQLite embedded database (81.2) reveals that in these tests, Hibernate with SQLite embedded is 2.3 times more efficient than DataNucleus with DB4O embedded.

A large gap has been detected when using JPA element collections with small transaction size. Comparing the normalized score of DataNucleus with DB4O embedded database (29.5) to the normalized score of Hibernate with SQLite embedded database (82.0) reveals that in that case, Hibernate with SQLite embedded is 2.8 times more efficient than DataNucleus with DB4O embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
DataNucleus
DB4O embedded
Hibernate
SQLite embedded
Basic Person Test0.0220.631.30.810.680.72
Element Collection Test0.0180.0921.30.690.660.19
Inheritance Test0.0190.631.20.910.630.77
Indexing Test0.0280.421.90.960.940.69
Graph (Binary Tree) Testfailed0.33failed0.77failed0.55
Multithreading Testfailedfailedfailedfailedfailedfailed
All Tests0.0220.421.40.860.730.62

The results above show that in general DataNucleus with DB4O embedded is slightly more efficient than Hibernate with SQLite embedded in performing JPA database operations.

On the other hand, DataNucleus with DB4O embedded is slower, for instance, when using class inheritance in the object model with small transaction/retrieval size. Comparing the normalized speed of DataNucleus with DB4O embedded database (0.019) to the normalized speed of Hibernate with SQLite embedded database (0.63) reveals that in that case, DataNucleus with DB4O embedded is 33.2 times slower than Hibernate with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons