Home > Programming > NHibernate vs Entity Framework: a performance test

NHibernate vs Entity Framework: a performance test

September 21st, 2009 Leave a comment Go to comments

I just found an interesting comparison in performance of two common ORM frameworks: Microsoft Entity Framework and NHibernate. Here’s a quick summary of the performance comparison:

Operation \ Number of operations NHiberante – 4K Entity Framework – 4K NHiberante – 40K Entity Framework- 40K Winner
Store 37.37 9.19 1500 98 Entity Framework
Read over relations 1.01 0.54 10.13 4.18 Entity Framework
Read by ID 3.06 25.22 246 230 NHibernate with smaller amount of objects
Update 6.61 7.34 77 72 Both
Delete 3.35 16.76 58 1824 NHibernate

If you’re interested in the details of the performance measurements, please go to GregDoesIt.com.

  1. No comments yet.
  1. No trackbacks yet.