Compare with

Comparison of ObjectDB server vs Hibernate with PostgreSQL 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
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
Basic Person Test35.27.174.13.454.75.2
Element Collection Test38.22.957.81.748.02.3
Inheritance Test32.77.072.83.652.75.3
Indexing Test49.99.390.16.170.07.7
Graph (Binary Tree) Test1003.089.22.994.62.9
Multithreading Test76.631.799.413.988.022.8
All Tests55.410.280.65.368.07.7

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
 ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
Basic Person Test15.75.545.411.530.58.5
Element Collection Test19.90.02549.20.01734.60.021
Inheritance Test13.25.249.414.031.39.6
Indexing Test14.04.659.513.336.88.9
Graph (Binary Tree) Test19.90.6124.70.7822.30.70
Multithreading Test19.711.360.217.040.014.2
All Tests17.14.548.19.432.67.0

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
 ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
Basic Person Test38.855.525.96.132.430.8
Element Collection Test39.511.033.10.01636.35.5
Inheritance Test34.852.334.08.734.430.5
Indexing Test14.50.05053.38.833.94.4
Multithreading Test50.855.252.19.251.532.2
All Tests35.734.839.76.637.720.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
 ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
Basic Person Test18.35.340.92.729.64.0
Element Collection Test21.10.06753.70.02637.40.046
Inheritance Test19.95.451.93.835.94.6
Indexing Test17.95.452.14.335.04.8
Graph (Binary Tree) Test42.61.124.10.5833.30.82
Multithreading Test68.629.668.76.368.618.0
All Tests31.47.848.62.940.05.4

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
 ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
Basic Person Test20.25.367.74.244.04.8
Element Collection Test22.90.02057.6stopped40.20.0098
Inheritance Test23.15.161.64.242.34.6
Indexing Test34.99.555.96.345.47.9
Graph (Binary Tree) Test19.30.01227.90.01223.60.012
Multithreading Test38.523.350.521.844.522.5
All Tests26.57.253.56.140.06.6

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
 ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
ObjectDB serverHibernate
PostgreSQL server
Basic Person Test25.615.750.85.638.210.7
Element Collection Test28.32.850.30.3539.31.6
Inheritance Test24.715.053.96.939.310.9
Indexing Test26.25.862.27.844.26.8
Graph (Binary Tree) Test45.41.241.51.143.51.1
Multithreading Test50.830.266.213.658.521.9
All Tests33.112.154.66.043.99.1

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