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

Fixed test issue in Simple.Data performance test #723

Merged
merged 3 commits into from
Mar 14, 2017
Merged

Fixed test issue in Simple.Data performance test #723

merged 3 commits into from
Mar 14, 2017

Conversation

jovanpop-msft
Copy link
Contributor

Due to the missing FirstOrDefault() in Simple.Data, performance results for this library were too high because nothing was actually loaded (it was much better even that hand coded data reader). I have added FirstOrDefault to fetch row from the database, so the current results are:

Running 500 iterations that load up a post entity

Running...
hand coded took 122ms
Mapper QueryFirstOrDefault took 125ms
Dynamic Mapper Query (buffered) took 130ms
Dynamic Massive ORM Query took 140ms
Dapper.Contrib took 147ms
DataTable via IDataReader.GetValues took 157ms
Mapper Query (buffered) took 160ms
Linq 2 SQL Compiled took 168ms
Mapper Query (non-buffered) took 179ms
Dynamic Mapper Query (non-buffered) took 195ms
Dynamic Mapper QueryQueryFirstOrDefault took 198ms
Entity framework SqlQuery took 202ms
Linq 2 SQL ExecuteQuery took 302ms
Entity framework No Tracking took 365ms
Entity framework took 378ms
Simple.Data took 767ms
Linq 2 SQL took 905ms
Press any key to continue . . .

JocaPC added 3 commits March 14, 2017 09:38
Due to the missing .FirstOrDefault() in Simple.Data test, performance
numbers for Simple.Data were too high (better than hancoded data
reader). Added FirstOrDefault() to actually fetch the data.
@NickCraver NickCraver merged commit 71c16e6 into DapperLib:master Mar 14, 2017
@NickCraver
Copy link
Member

Merged in, thank you for finding and fixing!

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

Successfully merging this pull request may close these issues.

3 participants