I don't think you'll find performance tests which are worthwhile. As 
pointed out NH (and EF) performance varies as you use them. With this in 
mind, you should optimize according to your usage. Try looking at 
differences in the generated SQL between the systems and configurations to 
see if there is something there. Otherwise code profilers could tell you 
where the systems are spending their time. However, if you are going to 
optimize your NH code just to win the argument and convert, it's not really 
fair if you don't do the same to the EF code. Ultimately, if the only way 
to convice people to move from EF is through performance, I think you're 
better off looking at one of the other ORMs which have speed as a selling 
point.

Good luck

Wes

On Friday, December 21, 2012 1:14:23 AM UTC+2, Randar Puust wrote:
>
> So I'm a huge fan of NHibernate and trying to move our current platform 
> from Entity Framework 4.0 to NHibernate.  Unfortunately, I just ran into a 
> problem, which is that the performance seems much worse when we tested it 
> in an isolated set of tests, using the same patterns we currently use.  Of 
> course my concern is that to win the NH argument, I have to show solid 
> evidence that NH will give us a performance boost, along with all the other 
> things I love so much about NH.  
>
> My baseline is EF 4.0 with Model First.  The tests included operations 
> like Create, Publish and Edit, which are specific to our application.
>
>    - EF 5.0 and Code First – 166% slower
>    - EF 5.0 and Model First with .Net 4.5 – 100.8% slower
>    - EF 5.0 and Code First with .Net 4.5 – 171% slower
>    - NHibernate 3.3.1 – 163% slower
>
> So based on this, my best solution is just to stick with Model First and 
> probably upgrade to 4.5.  What I'm really looking for is some good 
> performance data that compares EF 5.0 to NH.  The best I can find is this, 
> but it's from 2009
>
>
> http://gregdoesit.com/2009/08/nhibernate-vs-entity-framework-a-performance-test/
> I really don't think I'm going to be able to convince people to re-factor 
> the entire DAL without more solid evidence that NH is on average faster.  
> Does anybody know of any analysis that has been done?
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/wghJzZOcjlUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to