Compare with

Comparison of OpenJPA 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
 OpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB server
Basic Person Test5.235.24.874.15.054.7
Element Collection Test2.838.22.257.82.548.0
Inheritance Test4.632.73.272.83.952.7
Indexing Test7.449.96.990.17.170.0
Graph (Binary Tree) Test0.981000.8189.20.8994.6
Multithreading Test23.476.69.199.416.288.0
All Tests7.455.44.580.65.968.0

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB server
Basic Person Test5.815.716.145.410.930.5
Element Collection Test0.01319.98.749.24.434.6
Inheritance Test5.213.217.649.411.431.3
Indexing Test4.814.018.759.511.836.8
Graph (Binary Tree) Test0.2719.90.3524.70.3122.3
Multithreading Test11.919.723.360.217.640.0
All Tests4.717.114.148.19.432.6

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

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of OpenJPA with PostgreSQL database server (0.013) to the normalized speed of ObjectDB database server (19.9) reveals that in that case, ObjectDB server is 1,531 times faster than OpenJPA with PostgreSQL server.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB server
Basic Person Testfailed38.8failed25.9failed32.4
Element Collection Testfailed39.5failed33.1failed36.3
Inheritance Testfailed34.8failed34.0failed34.4
Indexing Testfailed14.5failed53.3failed33.9
Multithreading Testfailed50.8failed52.1failed51.5
All Testsfailed35.7failed39.7failed37.7

OpenJPA with PostgreSQL server has failed in 10 tests (see exceptions).

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB server
Basic Person Test4.918.33.940.94.429.6
Element Collection Test0.03321.14.653.72.337.4
Inheritance Test4.819.94.951.94.935.9
Indexing Test5.117.96.052.15.635.0
Graph (Binary Tree) Test0.5742.60.3124.10.4433.3
Multithreading Test22.268.67.468.714.868.6
All Tests6.331.44.548.65.440.0

The results above show that in general ObjectDB server is much more efficient than OpenJPA with PostgreSQL server in updating JPA entity objects in the database. Comparing the normalized speed of OpenJPA 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 OpenJPA with PostgreSQL server.

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with PostgreSQL database server (0.033) to the normalized speed of ObjectDB database server (21.1) reveals that in that case, ObjectDB server is 639 times faster than OpenJPA with PostgreSQL server.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB server
Basic Person Test4.620.25.367.75.044.0
Element Collection Test0.03222.92.857.61.440.2
Inheritance Test4.323.14.661.64.442.3
Indexing Test8.034.97.155.97.545.4
Graph (Binary Tree) Test0.5319.30.5527.90.5423.6
Multithreading Test17.438.59.150.513.344.5
All Tests5.826.54.953.55.440.0

The results above show that in general ObjectDB server is much more efficient than OpenJPA with PostgreSQL server in deleting JPA entity objects from the database. Comparing the normalized speed of OpenJPA 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 OpenJPA with PostgreSQL server.

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of OpenJPA with PostgreSQL database server (0.032) to the normalized speed of ObjectDB database server (22.9) reveals that in that case, ObjectDB server is 716 times faster than OpenJPA with PostgreSQL server.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 OpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB serverOpenJPA
PostgreSQL server
ObjectDB server
Basic Person Test5.125.67.550.86.338.2
Element Collection Test0.7228.34.650.32.639.3
Inheritance Test4.724.77.653.96.239.3
Indexing Test6.326.29.762.28.044.2
Graph (Binary Tree) Test0.5945.40.5041.50.5543.5
Multithreading Test18.750.812.266.215.558.5
All Tests6.033.17.054.66.543.9

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

A huge performance gap has been detected when using graphs of objects with large transaction/retrieval size. Comparing the normalized speed of OpenJPA with PostgreSQL database server (0.50) to the normalized speed of ObjectDB database server (41.5) reveals that in that case, ObjectDB server is 83.0 times faster than OpenJPA with PostgreSQL server.

Other Head to Head DBMS/JPA Comparisons