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 with latest results. #2016

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

kant2002
Copy link
Contributor

@kant2002 kant2002 commented Dec 18, 2023

BenchmarkDotNet v0.13.7, Windows 10 (10.0.19045.3693/22H2/2022Update)
Intel Core i7-3630QM CPU 2.40GHz (Ivy Bridge), 1 CPU, 8 logical and 4 physical cores
.NET SDK 8.0.100
  [Host]   : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX
  ShortRun : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX
ORM Method Return Mean StdDev Error Gen0 Gen1 Gen2 Allocated
Dapper cache impact QueryFirstParameters_Cache Void 104.0 us 0.64 us 0.97 us 0.8750 - - 2824 B
Dapper cache impact ExecuteParameters_Cache Void 106.6 us 1.24 us 2.08 us 0.6250 - - 2184 B
Hand Coded SqlCommand Post 129.1 us 0.60 us 0.91 us 1.2500 1.0000 - 7584 B
Hand Coded DataTable dynamic 133.4 us 1.55 us 2.34 us 3.0000 - - 9576 B
SqlMarshal SqlCommand Post 141.9 us 2.56 us 3.88 us 1.7500 1.5000 - 11529 B
LINQ to DB Query Post 144.3 us 2.14 us 3.24 us 1.7500 1.2500 - 10904 B
Mighty SingleFromQuery Post 144.5 us 1.30 us 2.19 us 2.2500 1.2500 - 12201 B
Mighty SingleFromQuery dynamic 145.5 us 2.50 us 3.79 us 2.0000 1.7500 - 12710 B
Mighty Query dynamic 146.3 us 1.38 us 2.32 us 2.0000 1.7500 - 12710 B
Dapper 'Query (buffered)' dynamic 148.4 us 1.19 us 2.00 us 2.0000 1.5000 - 11968 B
Mighty Query Post 149.1 us 2.63 us 3.98 us 1.7500 1.5000 - 12201 B
LINQ to DB 'First (Compiled)' Post 150.1 us 1.97 us 3.31 us 2.0000 1.5000 - 12128 B
Dapper QueryFirstOrDefault dynamic 151.0 us 5.48 us 8.29 us 3.5000 - - 11648 B
ServiceStack SingleById Post 154.1 us 2.24 us 3.38 us 2.5000 1.2500 0.2500 15248 B
Dapper QueryFirstOrDefault Post 154.9 us 4.10 us 6.20 us 1.7500 1.5000 - 11608 B
Norm 'Read<> (tuples)' ValueTuple`8 157.2 us 3.16 us 5.31 us 2.0000 1.7500 - 12745 B
Dapper 'Contrib Get' Post 157.9 us 3.14 us 4.75 us 2.0000 1.5000 - 12440 B
Norm 'Read<()> (named tuples)' ValueTuple`8 163.3 us 1.03 us 1.56 us 2.2500 2.0000 1.2500 14562 B
Dapper cache impact ExecuteNoParameters_Cache Void 177.0 us 6.37 us 9.64 us - - - 760 B
Dapper cache impact QueryFirstNoParameters_NoCache Void 177.6 us 2.62 us 3.96 us 0.5000 - - 1576 B
DevExpress.XPO FindObject Post 182.0 us 3.41 us 5.73 us 8.5000 - - 28099 B
LINQ to DB First Post 183.3 us 5.28 us 7.98 us 2.5000 1.5000 - 14041 B
EF 6 SqlQuery Post 185.9 us 3.08 us 4.66 us 4.5000 0.5000 - 24210 B
Dapper cache impact ExecuteNoParameters_NoCache Void 187.5 us 3.17 us 4.80 us - - - 760 B
Dapper cache impact QueryFirstNoParameters_Cache Void 187.6 us 7.54 us 11.40 us - - - 1520 B
DevExpress.XPO GetObjectByKey Post 188.0 us 2.66 us 4.46 us 4.5000 1.0000 - 30114 B
Norm 'Read<> (class)' Post 199.9 us 1.98 us 3.79 us 3.0000 0.5000 - 17579 B
Dapper 'Query (unbuffered)' dynamic 204.3 us 2.79 us 4.22 us 1.5000 1.0000 - 12048 B
NHibernate HQL Post 239.4 us 6.76 us 10.21 us 6.5000 0.5000 - 31885 B
NHibernate Get Post 247.1 us 6.55 us 9.91 us 6.0000 0.5000 - 29885 B
EF 6 First Post 297.6 us 28.83 us 48.45 us 13.0000 - - 43309 B
NHibernate Criteria Post 300.1 us 13.37 us 25.57 us 14.0000 1.0000 - 57562 B
EF Core 'First (No Tracking)' Post 314.2 us 43.80 us 73.60 us 3.0000 1.0000 - 17987 B
EF Core First Post 319.8 us 32.72 us 54.99 us 3.0000 - - 11306 B
EF 6 'First (No Tracking)' Post 327.2 us 33.05 us 55.54 us 12.0000 1.0000 - 50237 B
NHibernate SQL Post 327.7 us 16.66 us 28.00 us 21.0000 1.0000 - 80007 B
EF Core SqlQuery Post 334.2 us 33.86 us 56.90 us 5.0000 - - 18195 B
Belgrade FirstOrDefault Task`1 384.4 us 20.30 us 34.11 us 4.0000 1.0000 - 20556 B
Dapper cache impact QueryFirstParameters_NoCache Void 677.3 us 5.55 us 8.40 us 3.0000 2.0000 - 10640 B
NHibernate LINQ Post 936.0 us 168.35 us 254.52 us 10.0000 - - 46181 B
Dapper cache impact ExecuteParameters_NoCache Void 986.8 us 198.13 us 299.55 us 3.0000 2.0000 - 10001 B

@mgravell mgravell merged commit 4160c9f into DapperLib:main Dec 18, 2023
1 of 2 checks passed
@kant2002 kant2002 deleted the kant/update-benchmarks branch December 18, 2023 12:22
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.

2 participants