Compare with

Comparison of ObjectDB server vs Hibernate with H2 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
 ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
Basic Person Test35.24.674.13.054.73.8
Element Collection Test38.23.757.81.148.02.4
Inheritance Test32.76.772.83.152.74.9
Indexing Test49.98.290.14.270.06.2
Graph (Binary Tree) Test1003.489.23.994.63.7
Multithreading Test76.66.899.45.088.05.9
All Tests55.45.680.63.468.04.5

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
Basic Person Test15.73.145.46.030.54.6
Element Collection Test19.91.049.21.134.61.0
Inheritance Test13.22.949.47.631.35.2
Indexing Test14.02.659.57.036.84.8
Graph (Binary Tree) Test19.90.4224.71.122.30.78
Multithreading Test19.76.560.210.540.08.5
All Tests17.12.848.15.632.64.2

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

A huge performance gap has been detected when using graphs of objects with small retrieval size. Comparing the normalized speed of Hibernate with H2 database server (0.42) to the normalized speed of ObjectDB database server (19.9) reveals that in that case, ObjectDB server is 47.4 times faster than Hibernate with H2 server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
Basic Person Test38.83.725.91.032.42.3
Element Collection Test39.53.733.10.6336.32.2
Inheritance Test34.83.234.01.434.42.3
Indexing Test14.51.753.35.833.93.8
Multithreading Test50.81.152.10.8851.51.0
All Tests35.72.739.71.937.72.3

The results above show that in general ObjectDB server is much more efficient than Hibernate with H2 server in executing the tested JPA queries. Comparing the normalized speed of Hibernate with H2 database server (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 Hibernate with H2 server.

A huge performance gap has been detected when using multithreading with large retrieval size. Comparing the normalized speed of Hibernate with H2 database server (0.88) to the normalized speed of ObjectDB database server (52.1) reveals that in that case, ObjectDB server is 59.2 times faster than Hibernate with H2 server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
Basic Person Test18.32.940.91.829.62.4
Element Collection Test21.12.653.71.137.41.9
Inheritance Test19.93.251.92.535.92.9
Indexing Test17.92.952.12.735.02.8
Graph (Binary Tree) Test42.61.224.10.4333.30.79
Multithreading Test68.65.668.72.468.64.0
All Tests31.43.148.61.840.02.5

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

A huge performance gap has been detected when using graphs of objects with large transaction size. Comparing the normalized speed of Hibernate with H2 database server (0.43) to the normalized speed of ObjectDB database server (24.1) reveals that in that case, ObjectDB server is 56.0 times faster than Hibernate with H2 server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
Basic Person Test20.23.867.72.444.03.1
Element Collection Test22.91.957.61.140.21.5
Inheritance Test23.13.761.62.542.33.1
Indexing Test34.97.655.93.145.45.3
Graph (Binary Tree) Test19.30.9927.90.9123.60.95
Multithreading Test38.56.150.57.344.56.7
All Tests26.54.053.52.940.03.5

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
ObjectDB serverHibernate
H2 server
Basic Person Test25.63.650.82.838.23.2
Element Collection Test28.32.650.31.039.31.8
Inheritance Test24.74.053.93.439.33.7
Indexing Test26.24.662.24.544.24.6
Graph (Binary Tree) Test45.41.541.51.643.51.6
Multithreading Test50.85.266.25.258.55.2
All Tests33.13.754.63.243.93.4

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

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

Other Head to Head DBMS/JPA Comparisons