Compare with

Comparison of Hibernate with PostgreSQL server vs ObjectDB 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
 Hibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB server
Basic Person Test7.135.23.474.15.254.7
Element Collection Test2.938.21.757.82.348.0
Inheritance Test7.032.73.672.85.352.7
Indexing Test9.349.96.190.17.770.0
Graph (Binary Tree) Test3.01002.989.22.994.6
Multithreading Test31.776.613.999.422.888.0
All Tests10.255.45.380.67.768.0

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB server
Basic Person Test5.515.711.545.48.530.5
Element Collection Test0.02519.90.01749.20.02134.6
Inheritance Test5.213.214.049.49.631.3
Indexing Test4.614.013.359.58.936.8
Graph (Binary Tree) Test0.6119.90.7824.70.7022.3
Multithreading Test11.319.717.060.214.240.0
All Tests4.517.19.448.17.032.6

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

A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of Hibernate with PostgreSQL database server (0.017) to the normalized speed of ObjectDB database server (49.2) reveals that in that case, ObjectDB server is 2,894 times faster than Hibernate with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB server
Basic Person Test55.538.86.125.930.832.4
Element Collection Test11.039.50.01633.15.536.3
Inheritance Test52.334.88.734.030.534.4
Indexing Test0.05014.58.853.34.433.9
Multithreading Test55.250.89.252.132.251.5
All Tests34.835.76.639.720.737.7

The results above show that in general ObjectDB server is more efficient than Hibernate with PostgreSQL server in executing the tested JPA queries.

A huge performance gap has been detected when using JPA element collections with large retrieval size. Comparing the normalized speed of Hibernate with PostgreSQL database server (0.016) to the normalized speed of ObjectDB database server (33.1) reveals that in that case, ObjectDB server is 2,069 times faster than Hibernate with PostgreSQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB server
Basic Person Test5.318.32.740.94.029.6
Element Collection Test0.06721.10.02653.70.04637.4
Inheritance Test5.419.93.851.94.635.9
Indexing Test5.417.94.352.14.835.0
Graph (Binary Tree) Test1.142.60.5824.10.8233.3
Multithreading Test29.668.66.368.718.068.6
All Tests7.831.42.948.65.440.0

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

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

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB server
Basic Person Test5.320.24.267.74.844.0
Element Collection Test0.02022.9stopped57.60.009840.2
Inheritance Test5.123.14.261.64.642.3
Indexing Test9.534.96.355.97.945.4
Graph (Binary Tree) Test0.01219.30.01227.90.01223.6
Multithreading Test23.338.521.850.522.544.5
All Tests7.226.56.153.56.640.0

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB server
Basic Person Test15.725.65.650.810.738.2
Element Collection Test2.828.30.3550.31.639.3
Inheritance Test15.024.76.953.910.939.3
Indexing Test5.826.27.862.26.844.2
Graph (Binary Tree) Test1.245.41.141.51.143.5
Multithreading Test30.250.813.666.221.958.5
All Tests12.133.16.054.69.143.9

The results above show that in general ObjectDB server is much more efficient than Hibernate with PostgreSQL server in performing JPA database operations. Comparing the normalized speed of Hibernate with PostgreSQL database server (9.1) to the normalized speed of ObjectDB database server (43.9) reveals that in these tests, ObjectDB server is 4.8 times faster than Hibernate 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 Hibernate with PostgreSQL database server (0.35) to the normalized speed of ObjectDB database server (50.3) reveals that in that case, ObjectDB server is 144 times faster than Hibernate with PostgreSQL server.

Other Head to Head DBMS/JPA Comparisons