Compare with

Comparison of EclipseLink with Derby embedded vs Hibernate with SQLite embedded

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
 EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
Basic Person Test5.50.0833.71.04.60.55
Element Collection Test3.00.0671.70.692.40.38
Inheritance Test5.30.0803.50.994.40.54
Indexing Test6.90.0984.61.05.80.55
Graph (Binary Tree) Test2.00.271.90.961.90.61
Multithreading Test9.3failed4.1failed6.7failed
All Tests5.30.123.20.934.30.53

Hibernate with SQLite embedded has failed in 2 tests (see exceptions).

The results above show that in general EclipseLink with Derby embedded is much more efficient than Hibernate with SQLite embedded in persisting JPA entity objects to the database. Comparing the normalized speed of Hibernate with SQLite embedded database (0.53) to the normalized speed of EclipseLink with Derby embedded database (4.3) reveals that in these tests, EclipseLink with Derby embedded is 8.1 times faster than Hibernate with SQLite embedded.

A huge performance gap has been detected when using database indexes with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.098) to the normalized speed of EclipseLink with Derby embedded database (6.9) reveals that in that case, EclipseLink with Derby embedded is 70.4 times faster than Hibernate with SQLite embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
Basic Person Test16.41.858.71.337.51.5
Element Collection Test7.50.000813.3failed10.40.0008
Inheritance Test17.12.458.91.438.01.9
Indexing Test14.21.967.42.340.82.1
Graph (Binary Tree) Test2.80.565.70.884.20.72
Multithreading Test28.0failed48.7failed38.4failed
All Tests14.31.342.11.528.21.4

Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

The results above show that in general EclipseLink with Derby embedded is much more efficient than Hibernate with SQLite embedded in retrieving JPA entity objects from the database. Comparing the normalized speed of Hibernate with SQLite embedded database (1.4) to the normalized speed of EclipseLink with Derby embedded database (28.2) reveals that in these tests, EclipseLink with Derby embedded is 20.1 times faster than Hibernate with SQLite embedded.

A huge performance gap has been detected when using JPA element collections with small retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0008) to the normalized speed of EclipseLink with Derby embedded database (7.5) reveals that in that case, EclipseLink with Derby embedded is 9,375 times faster than Hibernate with SQLite embedded.

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

Retrieval Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
Basic Person Test53.41.113.80.2233.60.65
Element Collection Test37.90.394.4failed21.20.39
Inheritance Test37.40.5315.00.2826.20.40
Indexing Test7.60.001149.30.4328.40.21
Multithreading Test41.2failed6.1failed23.6failed
All Tests35.50.5017.70.3126.60.42

Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

The results above show that in general EclipseLink with Derby embedded is much more efficient than Hibernate with SQLite embedded in executing the tested JPA queries. Comparing the normalized speed of Hibernate with SQLite embedded database (0.42) to the normalized speed of EclipseLink with Derby embedded database (26.6) reveals that in these tests, EclipseLink with Derby embedded is 63.3 times faster than Hibernate with SQLite embedded.

A huge performance gap has been detected when using database indexes with small retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0011) to the normalized speed of EclipseLink with Derby embedded database (7.6) reveals that in that case, EclipseLink with Derby embedded is 6,909 times faster than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
Basic Person Test6.40.0766.70.656.50.37
Element Collection Test5.40.00226.2failed5.80.0022
Inheritance Test6.50.0799.20.977.80.53
Indexing Test7.30.05711.10.549.20.30
Graph (Binary Tree) Test2.80.261.70.422.20.34
Multithreading Test21.3failed5.0failed13.1failed
All Tests8.30.0946.60.657.50.34

Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

The results above show that in general EclipseLink with Derby embedded is much more efficient than Hibernate with SQLite embedded in updating JPA entity objects in the database. Comparing the normalized speed of Hibernate with SQLite embedded database (0.34) to the normalized speed of EclipseLink with Derby embedded database (7.5) reveals that in these tests, EclipseLink with Derby embedded is 22.1 times faster than Hibernate with SQLite embedded.

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0022) to the normalized speed of EclipseLink with Derby embedded database (5.4) reveals that in that case, EclipseLink with Derby embedded is 2,455 times faster than Hibernate with SQLite embedded.

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

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
Basic Person Test4.60.0614.70.914.60.49
Element Collection Test2.50.00071.4failed1.90.0007
Inheritance Test3.90.0584.50.904.20.48
Indexing Test6.20.0793.80.545.00.31
Graph (Binary Tree) Test1.10.241.00.801.10.52
Multithreading Test6.2failed5.8failed6.0failed
All Tests4.10.0883.50.793.80.40

Hibernate with SQLite embedded has failed in 3 tests (see exceptions).

The results above show that in general EclipseLink with Derby embedded is much more efficient than Hibernate with SQLite embedded in deleting JPA entity objects from the database. Comparing the normalized speed of Hibernate with SQLite embedded database (0.40) to the normalized speed of EclipseLink with Derby embedded database (3.8) reveals that in these tests, EclipseLink with Derby embedded is 9.5 times faster than Hibernate with SQLite embedded.

A huge performance gap has been detected when using JPA element collections with small transaction size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.0007) to the normalized speed of EclipseLink with Derby embedded database (2.5) reveals that in that case, EclipseLink with Derby embedded is 3,571 times faster than Hibernate with SQLite embedded.

Comparison of database storage efficiency (normalized score, higher is better)

Transaction Size =>Few EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
Basic Person Test51.190.251.090.251.190.2
Element Collection Test38.582.039.482.038.982.0
Inheritance Test48.080.547.980.548.080.5
Indexing Test51.693.452.394.852.094.1
Graph (Binary Tree) Test13.467.911.750.912.659.4
Multithreading Test52.6failed8.4failed30.5failed
All Tests42.582.835.179.738.881.2

Hibernate with SQLite embedded has failed in 2 tests (see exceptions).

The results above show that in general Hibernate with SQLite embedded is more efficient than EclipseLink with Derby embedded in using disk space. Comparing the normalized score of EclipseLink with Derby embedded database (38.8) to the normalized score of Hibernate with SQLite embedded database (81.2) reveals that in these tests, Hibernate with SQLite embedded is 2.1 times more efficient than EclipseLink with Derby embedded.

A large gap has been detected when using graphs of objects with small transaction size. Comparing the normalized score of EclipseLink with Derby embedded database (13.4) to the normalized score of Hibernate with SQLite embedded database (67.9) reveals that in that case, Hibernate with SQLite embedded is 5.1 times more efficient than EclipseLink with Derby embedded.

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

Transaction/Retrieval SizeFew EntitiesMany EntitiesAverage Score
 EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
EclipseLink
Derby embedded
Hibernate
SQLite embedded
Basic Person Test17.30.6317.50.8117.40.72
Element Collection Test11.30.0925.40.698.30.19
Inheritance Test14.00.6318.20.9116.10.77
Indexing Test8.40.4227.20.9617.80.69
Graph (Binary Tree) Test2.20.332.60.772.40.55
Multithreading Test21.2failed13.9failed17.6failed
All Tests12.70.4214.50.8613.60.62

The results above show that in general EclipseLink with Derby embedded is much more efficient than Hibernate with SQLite embedded in performing JPA database operations. Comparing the normalized speed of Hibernate with SQLite embedded database (0.62) to the normalized speed of EclipseLink with Derby embedded database (13.6) reveals that in these tests, EclipseLink with Derby embedded is 21.9 times faster than Hibernate with SQLite embedded.

A huge performance gap has been detected when using JPA element collections with small transaction/retrieval size. Comparing the normalized speed of Hibernate with SQLite embedded database (0.092) to the normalized speed of EclipseLink with Derby embedded database (11.3) reveals that in that case, EclipseLink with Derby embedded is 123 times faster than Hibernate with SQLite embedded.

Other Head to Head DBMS/JPA Comparisons