Compare with

Comparison of Hibernate with Derby embedded 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
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB server
Basic Person Test5.935.23.874.14.954.7
Element Collection Test2.938.21.857.82.348.0
Inheritance Test5.332.73.772.84.552.7
Indexing Test7.049.94.890.15.970.0
Graph (Binary Tree) Test1.91001.789.21.894.6
Multithreading Test10.576.63.799.47.188.0
All Tests5.655.43.380.64.468.0

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

A huge performance gap has been detected when using graphs of objects with small transaction size. Comparing the normalized speed of Hibernate with Derby embedded database (1.9) to the normalized speed of ObjectDB database server (100) reveals that in that case, ObjectDB server is 52.6 times faster than Hibernate with Derby embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB server
Basic Person Test14.215.716.445.415.330.5
Element Collection Test4.419.94.949.24.634.6
Inheritance Test10.313.218.649.414.431.3
Indexing Test10.014.016.459.513.236.8
Graph (Binary Tree) Test2.619.93.024.72.822.3
Multithreading Test19.319.719.360.219.340.0
All Tests10.117.113.148.111.632.6

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

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

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB server
Basic Person Test49.338.86.825.928.132.4
Element Collection Test37.639.52.733.120.136.3
Inheritance Test24.134.87.634.015.934.4
Indexing Test5.314.514.853.310.133.9
Multithreading Test39.750.86.152.122.951.5
All Tests31.235.77.639.719.437.7

The results above show that in general ObjectDB server is more efficient than Hibernate with Derby embedded 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 Derby embedded database (2.7) to the normalized speed of ObjectDB database server (33.1) reveals that in that case, ObjectDB server is 12.3 times faster than Hibernate with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB server
Basic Person Test4.518.33.240.93.829.6
Element Collection Test3.921.13.153.73.537.4
Inheritance Test4.619.94.551.94.535.9
Indexing Test4.617.95.552.15.135.0
Graph (Binary Tree) Test2.742.61.224.12.033.3
Multithreading Test11.668.62.668.77.168.6
All Tests5.331.43.348.64.340.0

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

A huge performance gap has been detected when using multithreading with large transaction size. Comparing the normalized speed of Hibernate with Derby embedded database (2.6) to the normalized speed of ObjectDB database server (68.7) reveals that in that case, ObjectDB server is 26.4 times faster than Hibernate with Derby embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB server
Basic Person Test3.820.24.267.74.044.0
Element Collection Test2.322.91.557.61.940.2
Inheritance Test4.023.14.361.64.242.3
Indexing Test5.534.93.655.94.645.4
Graph (Binary Tree) Test0.7419.30.9627.90.8523.6
Multithreading Test5.638.54.950.55.344.5
All Tests3.726.53.353.53.540.0

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

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

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 Hibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB serverHibernate
Derby embedded
ObjectDB server
Basic Person Test15.525.66.950.811.238.2
Element Collection Test10.228.32.850.36.539.3
Inheritance Test9.724.77.753.98.739.3
Indexing Test6.526.29.062.27.844.2
Graph (Binary Tree) Test2.045.41.741.51.843.5
Multithreading Test17.350.87.366.212.358.5
All Tests10.533.16.154.68.343.9

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

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

Other Head to Head DBMS/JPA Comparisons