Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update benchmarks to include EF7 #246

Closed
zam6ak opened this issue Feb 27, 2015 · 6 comments
Closed

Update benchmarks to include EF7 #246

zam6ak opened this issue Feb 27, 2015 · 6 comments

Comments

@zam6ak
Copy link

zam6ak commented Feb 27, 2015

Would it be too early to request benchmarks be updated to include Entity Framework 7.
It is supposed to perform better and be more 'lightweight'..
Also I am not sure if this would depend on #241 .

Thoughts?

@mgravell
Copy link
Member

That's probably very worthwhile and overdue; it will require me to figure
out how to use EF 7, though - a direct upgrade might not be the most
appropriate comparison.

On 27 February 2015 at 03:20, zam6ak [email protected] wrote:

Would it be too early to request benchmarks be updated to include Entity
Framework 7 https://github.com/aspnet/EntityFramework.
It is supposed to perform better and be more 'lightweight'..
Also I am not sure if this would depend on #241
#241 .

Thoughts?


Reply to this email directly or view it on GitHub
#246.

Regards,

Marc

@zam6ak
Copy link
Author

zam6ak commented Mar 2, 2015

I'd love to see the comparison once benchmarks are updated.
Thanks for considering it!

@NickStrupat
Copy link

The EF6 performance results are already much better than indicated in the performance chart. Can we get an updated performance chart?

I'm getting these numbers in the performance test with EF 6.1.3

Running 500 iterations that load up a post entity
50ms hand coded
55ms Dynamic Mapper Query (buffered)
56ms Mapper Query (buffered)
56ms DataTable via IDataReader.GetValues
57ms PetaPoco (Fast)
59ms PetaPoco (Normal)
60ms Dapper.Cotrib
61ms Dynamic Massive ORM Query
63ms OrmLite QueryById
71ms BLToolkit
73ms Linq 2 SQL Compiled
75ms Simple.Data
75ms Susanoo Dynamic Mapping Static
79ms Mapper Query (non-buffered)
79ms Dynamic Mapper Query (non-buffered)
79ms Susanoo Dynamic Mapping Cache Retrieval
80ms Susanoo Mapping Static
81ms Susanoo Mapping Cache Retrieval
85ms Entity framework SqlQuery
92ms NHibernate Session.Get
93ms SubSonic Coding Horror
98ms NHibernate SQL
100ms NHibernate HQL
121ms NHibernate Criteria
143ms Entity framework No Tracking
144ms Linq 2 SQL ExecuteQuery
146ms Entity framework
324ms NHibernate LINQ
357ms Linq 2 SQL
2289ms SubSonic ActiveRecord.SingleOrDefault
Press any key to continue . . .

@NickStrupat
Copy link

README.md is still showing significantly inaccurate performance results for Entity Framework.

@NickCraver
Copy link
Member

NickCraver commented Dec 1, 2016

@NickStrupat it's not, but we need to label the versions and do tests with many. This would also more accurately show the gains between EF versions for others to see. Is there an outstanding PR to update the benchmarks project? After MiniProfiler I can try and find time to re-run this on a controlled system.

@NickCraver
Copy link
Member

EF Core (latest!) is now in the benchmark suite and the README is updated with results :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants