Compare with

Comparison of ObjectDB server vs DataNucleus with H2 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
 ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
Basic Person Test35.219.274.18.054.713.6
Element Collection Test38.26.657.82.848.04.7
Inheritance Test32.715.672.84.452.710.0
Indexing Test49.924.490.111.870.018.1
Graph (Binary Tree) Test1009.289.26.294.67.7
Multithreading Test76.634.999.47.188.021.0
All Tests55.418.380.66.768.012.5

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
Basic Person Test15.713.245.413.530.513.3
Element Collection Test19.96.449.28.934.67.7
Inheritance Test13.212.249.412.731.312.4
Indexing Test14.08.159.516.536.812.3
Graph (Binary Tree) Test19.910.624.720.922.315.8
Multithreading Test19.713.360.29.940.011.6
All Tests17.110.648.113.732.612.2

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

A large performance gap has been detected when using multithreading with large retrieval size. Comparing the normalized speed of DataNucleus with H2 embedded database (9.9) to the normalized speed of ObjectDB database server (60.2) reveals that in that case, ObjectDB server is 6.1 times faster than DataNucleus with H2 embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
Basic Person Test38.84.725.91.432.43.1
Element Collection Test39.55.033.12.436.33.7
Inheritance Test34.83.834.01.634.42.7
Indexing Test14.50.004153.31.833.90.91
Multithreading Test50.81.252.10.7951.51.0
All Tests35.73.039.71.637.72.3

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

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of DataNucleus with H2 embedded database (0.0041) to the normalized speed of ObjectDB database server (14.5) reveals that in that case, ObjectDB server is 3,537 times faster than DataNucleus with H2 embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
Basic Person Test18.310.040.93.929.66.9
Element Collection Test21.17.653.73.937.45.8
Inheritance Test19.99.451.94.435.96.9
Indexing Test17.910.652.15.935.08.2
Graph (Binary Tree) Test42.65.924.13.733.34.8
Multithreading Test68.6failed68.7failed68.6failed
All Tests31.48.748.64.440.06.5

DataNucleus with H2 embedded has failed in 2 tests (see exceptions).

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
Basic Person Test20.24.267.71.344.02.8
Element Collection Test22.94.957.61.640.23.2
Inheritance Test23.14.061.61.342.32.7
Indexing Test34.97.555.91.945.44.7
Graph (Binary Tree) Test19.35.627.94.123.64.8
Multithreading Test38.5failed50.5failed44.5failed
All Tests26.55.253.52.040.03.6

DataNucleus with H2 embedded has failed in 2 tests (see exceptions).

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

A huge performance gap has been detected when using simple basic entities with large transaction size. Comparing the normalized speed of DataNucleus with H2 embedded database (1.3) to the normalized speed of ObjectDB database server (67.7) reveals that in that case, ObjectDB server is 52.1 times faster than DataNucleus with H2 embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
ObjectDB serverDataNucleus
H2 embedded
Basic Person Test25.610.350.85.638.27.9
Element Collection Test28.36.150.33.939.35.0
Inheritance Test24.79.053.94.939.36.9
Indexing Test26.210.162.27.644.28.9
Graph (Binary Tree) Test45.47.841.58.743.58.3
Multithreading Test50.816.566.25.958.511.2
All Tests33.19.654.66.043.97.8

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

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

Other Head to Head DBMS/JPA Comparisons