Compare with

Comparison of DataNucleus with PostgreSQL server vs ObjectDB 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
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embedded
Basic Person Test4.11002.61003.3100
Element Collection Test0.911000.381000.64100
Inheritance Test3.81002.41003.1100
Indexing Test6.01006.41006.2100
Graph (Binary Tree) Test0.9188.40.771000.8494.2
Multithreading Test18.01008.310013.1100
All Tests5.698.13.51004.599.0

The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in persisting JPA entity objects to the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (4.5) to the normalized speed of ObjectDB embedded database (99.0) reveals that in these tests, ObjectDB embedded is 22.0 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using JPA element collections with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.38) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 263 times faster than DataNucleus with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embedded
Basic Person Test1.71007.61004.6100
Element Collection Test0.731000.631000.68100
Inheritance Test1.51009.31005.4100
Indexing Test1.51009.21005.3100
Graph (Binary Tree) Test2.610012.31007.4100
Multithreading Test3.410010.81007.1100
All Tests1.91008.31005.1100

The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in retrieving JPA entity objects from the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (5.1) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 19.6 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.63) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 159 times faster than DataNucleus with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embedded
Basic Person Test49.11004.710026.9100
Element Collection Test39.11000.4810019.8100
Inheritance Test55.91006.610031.2100
Indexing Test0.0481006.41003.2100
Multithreading Testfailed100failed100failed100
All Tests36.01004.510020.3100

DataNucleus with PostgreSQL server has failed in 2 tests (see exceptions).

The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in executing the tested JPA queries. Comparing the normalized speed of DataNucleus with PostgreSQL database server (20.3) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 4.9 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.048) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 2,083 times faster than DataNucleus with PostgreSQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embedded
Basic Person Test2.11000.841001.5100
Element Collection Test1.41000.641001.0100
Inheritance Test2.11001.21001.7100
Indexing Test2.21001.51001.8100
Graph (Binary Tree) Test0.651000.201000.42100
Multithreading Test0.46100failed1000.46100
All Tests1.51000.871001.2100

DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).

The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in updating JPA entity objects in the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (1.2) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 83.3 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.20) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 500 times faster than DataNucleus with PostgreSQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 DataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embedded
Basic Person Test3.01001.31002.2100
Element Collection Test1.01000.391000.69100
Inheritance Test2.81001.31002.1100
Indexing Test5.41001.91003.7100
Graph (Binary Tree) Test0.381000.371000.37100
Multithreading Test13.8100failed10013.8100
All Tests4.41001.11002.9100

DataNucleus with PostgreSQL server has failed in 1 tests (see exceptions).

The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in deleting JPA entity objects from the database. Comparing the normalized speed of DataNucleus with PostgreSQL database server (2.9) to the normalized speed of ObjectDB embedded database (100) reveals that in these tests, ObjectDB embedded is 34.5 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.37) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 270 times faster than DataNucleus with PostgreSQL server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 DataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embeddedDataNucleus
PostgreSQL server
ObjectDB embedded
Basic Person Test12.01003.41007.7100
Element Collection Test8.61000.501004.6100
Inheritance Test13.21004.21008.7100
Indexing Test3.01005.11004.0100
Graph (Binary Tree) Test1.197.13.41002.398.5
Multithreading Test8.91009.51009.1100
All Tests8.099.63.81006.099.8

The results above show that in general ObjectDB embedded is much more efficient than DataNucleus with PostgreSQL server in performing JPA database operations. Comparing the normalized speed of DataNucleus with PostgreSQL database server (6.0) to the normalized speed of ObjectDB embedded database (99.8) reveals that in these tests, ObjectDB embedded is 16.6 times faster than DataNucleus with PostgreSQL server.

A huge performance gap has been detected when using JPA element collections with large transaction/retrieval size. Comparing the normalized speed of DataNucleus with PostgreSQL database server (0.50) to the normalized speed of ObjectDB embedded database (100) reveals that in that case, ObjectDB embedded is 200 times faster than DataNucleus with PostgreSQL server.

Other Head to Head DBMS/JPA Comparisons