-
Notifications
You must be signed in to change notification settings - Fork 147
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
Pin the lang version in the Nuke build project #6411
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 457915 Passed, 2838 Skipped, 19h 55m 47.98s Total Time New Flaky Tests (1)
|
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing the following branches/commits: Execution-time benchmarks measure the whole time it takes to execute a program. And are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are shown in red. The following thresholds were used for comparing the execution times:
Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard. Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph). gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6411) - mean (69ms) : 66, 72
. : milestone, 69,
master - mean (70ms) : 67, 72
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6411) - mean (979ms) : 955, 1002
. : milestone, 979,
master - mean (988ms) : 963, 1014
. : milestone, 988,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6411) - mean (109ms) : 106, 111
. : milestone, 109,
master - mean (110ms) : 107, 114
. : milestone, 110,
section CallTarget+Inlining+NGEN
This PR (6411) - mean (680ms) : 662, 698
. : milestone, 680,
master - mean (687ms) : 669, 704
. : milestone, 687,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6411) - mean (92ms) : 89, 94
. : milestone, 92,
master - mean (93ms) : 91, 96
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (6411) - mean (630ms) : 612, 647
. : milestone, 630,
master - mean (643ms) : 626, 660
. : milestone, 643,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6411) - mean (190ms) : 186, 195
. : milestone, 190,
master - mean (190ms) : 186, 194
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6411) - mean (1,096ms) : 1067, 1124
. : milestone, 1096,
master - mean (1,091ms) : 1063, 1119
. : milestone, 1091,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6411) - mean (277ms) : 272, 282
. : milestone, 277,
master - mean (276ms) : 272, 280
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (6411) - mean (868ms) : 839, 897
. : milestone, 868,
master - mean (869ms) : 839, 900
. : milestone, 869,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6411) - mean (266ms) : 263, 270
. : milestone, 266,
master - mean (266ms) : 262, 269
. : milestone, 266,
section CallTarget+Inlining+NGEN
This PR (6411) - mean (851ms) : 813, 889
. : milestone, 851,
master - mean (850ms) : 818, 882
. : milestone, 850,
|
Benchmarks Report for tracer 🐌Benchmarks for #6411 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ElasticsearchBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch‑net6.0 | 1.140 | 1,165.56 | 1,328.16 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | CallElasticsearch |
net6.0 | 1.17μs | 0.913ns | 3.42ns | 0.0135 | 0 | 0 | 976 B |
master | CallElasticsearch |
netcoreapp3.1 | 1.52μs | 0.919ns | 3.56ns | 0.013 | 0 | 0 | 976 B |
master | CallElasticsearch |
net472 | 2.53μs | 1.08ns | 4.06ns | 0.157 | 0 | 0 | 995 B |
master | CallElasticsearchAsync |
net6.0 | 1.25μs | 0.451ns | 1.69ns | 0.013 | 0 | 0 | 952 B |
master | CallElasticsearchAsync |
netcoreapp3.1 | 1.61μs | 0.657ns | 2.46ns | 0.0137 | 0 | 0 | 1.02 KB |
master | CallElasticsearchAsync |
net472 | 2.57μs | 0.822ns | 3.07ns | 0.167 | 0 | 0 | 1.05 KB |
#6411 | CallElasticsearch |
net6.0 | 1.33μs | 2ns | 7.77ns | 0.0133 | 0 | 0 | 976 B |
#6411 | CallElasticsearch |
netcoreapp3.1 | 1.52μs | 0.748ns | 2.7ns | 0.013 | 0 | 0 | 976 B |
#6411 | CallElasticsearch |
net472 | 2.6μs | 2.31ns | 8.96ns | 0.157 | 0 | 0 | 995 B |
#6411 | CallElasticsearchAsync |
net6.0 | 1.23μs | 0.413ns | 1.55ns | 0.0132 | 0 | 0 | 952 B |
#6411 | CallElasticsearchAsync |
netcoreapp3.1 | 1.56μs | 1.02ns | 3.8ns | 0.014 | 0 | 0 | 1.02 KB |
#6411 | CallElasticsearchAsync |
net472 | 2.64μs | 1.28ns | 4.94ns | 0.167 | 0 | 0 | 1.05 KB |
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | ExecuteAsync |
net6.0 | 1.27μs | 0.882ns | 3.42ns | 0.0133 | 0 | 0 | 952 B |
master | ExecuteAsync |
netcoreapp3.1 | 1.62μs | 1.41ns | 5.26ns | 0.0123 | 0 | 0 | 952 B |
master | ExecuteAsync |
net472 | 1.85μs | 0.582ns | 2.26ns | 0.145 | 0 | 0 | 915 B |
#6411 | ExecuteAsync |
net6.0 | 1.3μs | 0.423ns | 1.58ns | 0.0137 | 0 | 0 | 952 B |
#6411 | ExecuteAsync |
netcoreapp3.1 | 1.71μs | 1.16ns | 4.33ns | 0.0129 | 0 | 0 | 952 B |
#6411 | ExecuteAsync |
net472 | 1.89μs | 0.401ns | 1.55ns | 0.145 | 0 | 0 | 915 B |
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendAsync |
net6.0 | 4.41μs | 2.2ns | 8.22ns | 0.0329 | 0 | 0 | 2.31 KB |
master | SendAsync |
netcoreapp3.1 | 5.33μs | 4.73ns | 18.3ns | 0.0378 | 0 | 0 | 2.85 KB |
master | SendAsync |
net472 | 7.28μs | 1.79ns | 6.71ns | 0.495 | 0 | 0 | 3.12 KB |
#6411 | SendAsync |
net6.0 | 4.57μs | 1.56ns | 5.84ns | 0.032 | 0 | 0 | 2.31 KB |
#6411 | SendAsync |
netcoreapp3.1 | 5.3μs | 4.42ns | 15.9ns | 0.037 | 0 | 0 | 2.85 KB |
#6411 | SendAsync |
net472 | 7.37μs | 1.65ns | 6.37ns | 0.493 | 0 | 0 | 3.12 KB |
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 1.56μs | 0.648ns | 2.43ns | 0.0227 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
netcoreapp3.1 | 2.33μs | 1.04ns | 4.04ns | 0.0224 | 0 | 0 | 1.64 KB |
master | EnrichedLog |
net472 | 2.66μs | 0.633ns | 2.37ns | 0.249 | 0 | 0 | 1.57 KB |
#6411 | EnrichedLog |
net6.0 | 1.48μs | 0.858ns | 3.21ns | 0.023 | 0 | 0 | 1.64 KB |
#6411 | EnrichedLog |
netcoreapp3.1 | 2.23μs | 2.98ns | 11.6ns | 0.0222 | 0 | 0 | 1.64 KB |
#6411 | EnrichedLog |
net472 | 2.51μs | 1.79ns | 6.94ns | 0.249 | 0 | 0 | 1.57 KB |
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 120μs | 108ns | 419ns | 0.0598 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
netcoreapp3.1 | 122μs | 78ns | 270ns | 0 | 0 | 0 | 4.28 KB |
master | EnrichedLog |
net472 | 153μs | 86.2ns | 334ns | 0.689 | 0.23 | 0 | 4.46 KB |
#6411 | EnrichedLog |
net6.0 | 121μs | 119ns | 444ns | 0 | 0 | 0 | 4.28 KB |
#6411 | EnrichedLog |
netcoreapp3.1 | 122μs | 129ns | 484ns | 0 | 0 | 0 | 4.28 KB |
#6411 | EnrichedLog |
net472 | 152μs | 89.1ns | 345ns | 0.681 | 0.227 | 0 | 4.46 KB |
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 3.18μs | 1.5ns | 5.42ns | 0.0303 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
netcoreapp3.1 | 4.29μs | 2.02ns | 7.83ns | 0.0299 | 0 | 0 | 2.2 KB |
master | EnrichedLog |
net472 | 5μs | 1.43ns | 5.53ns | 0.319 | 0 | 0 | 2.02 KB |
#6411 | EnrichedLog |
net6.0 | 3.01μs | 0.967ns | 3.74ns | 0.0301 | 0 | 0 | 2.2 KB |
#6411 | EnrichedLog |
netcoreapp3.1 | 4.23μs | 1.8ns | 6.96ns | 0.0297 | 0 | 0 | 2.2 KB |
#6411 | EnrichedLog |
net472 | 4.99μs | 1.24ns | 4.81ns | 0.319 | 0 | 0 | 2.02 KB |
Benchmarks.Trace.RedisBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6411
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.RedisBenchmark.SendReceive‑netcoreapp3.1
1.149
1,643.81
1,888.30
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.RedisBenchmark.SendReceive‑netcoreapp3.1 | 1.149 | 1,643.81 | 1,888.30 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | SendReceive |
net6.0 | 1.36μs | 0.419ns | 1.57ns | 0.0163 | 0 | 0 | 1.14 KB |
master | SendReceive |
netcoreapp3.1 | 1.64μs | 0.723ns | 2.71ns | 0.0148 | 0 | 0 | 1.14 KB |
master | SendReceive |
net472 | 2.09μs | 1.14ns | 4.42ns | 0.183 | 0 | 0 | 1.16 KB |
#6411 | SendReceive |
net6.0 | 1.42μs | 0.62ns | 2.4ns | 0.0157 | 0 | 0 | 1.14 KB |
#6411 | SendReceive |
netcoreapp3.1 | 1.88μs | 6.14ns | 23.8ns | 0.0157 | 0 | 0 | 1.14 KB |
#6411 | SendReceive |
net472 | 1.98μs | 1.29ns | 4.81ns | 0.183 | 0 | 0 | 1.16 KB |
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | EnrichedLog |
net6.0 | 2.79μs | 1.08ns | 4.17ns | 0.0223 | 0 | 0 | 1.6 KB |
master | EnrichedLog |
netcoreapp3.1 | 3.88μs | 1.36ns | 5.1ns | 0.0217 | 0 | 0 | 1.65 KB |
master | EnrichedLog |
net472 | 4.41μs | 1.34ns | 5ns | 0.322 | 0 | 0 | 2.04 KB |
#6411 | EnrichedLog |
net6.0 | 2.75μs | 1.19ns | 4.62ns | 0.0233 | 0 | 0 | 1.6 KB |
#6411 | EnrichedLog |
netcoreapp3.1 | 3.82μs | 1.9ns | 7.35ns | 0.0211 | 0 | 0 | 1.65 KB |
#6411 | EnrichedLog |
net472 | 4.5μs | 4.04ns | 15.6ns | 0.323 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6411
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0
1.175
481.09
565.05
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.175 | 481.09 | 565.05 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 465ns | 0.701ns | 2.72ns | 0.00818 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 554ns | 0.866ns | 3.35ns | 0.00776 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 710ns | 1.07ns | 4.13ns | 0.0915 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 481ns | 0.636ns | 2.46ns | 0.00985 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 776ns | 0.843ns | 3.26ns | 0.00927 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 823ns | 2.35ns | 9.09ns | 0.104 | 0 | 0 | 658 B |
#6411 | StartFinishSpan |
net6.0 | 453ns | 0.663ns | 2.57ns | 0.00808 | 0 | 0 | 576 B |
#6411 | StartFinishSpan |
netcoreapp3.1 | 553ns | 0.785ns | 2.83ns | 0.00775 | 0 | 0 | 576 B |
#6411 | StartFinishSpan |
net472 | 666ns | 1.08ns | 4.05ns | 0.0916 | 0 | 0 | 578 B |
#6411 | StartFinishScope |
net6.0 | 564ns | 0.635ns | 2.46ns | 0.00969 | 0 | 0 | 696 B |
#6411 | StartFinishScope |
netcoreapp3.1 | 769ns | 0.979ns | 3.79ns | 0.00922 | 0 | 0 | 696 B |
#6411 | StartFinishScope |
net472 | 889ns | 1.22ns | 4.72ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6411
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.245
602.96
750.45
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.245 | 602.96 | 750.45 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 602ns | 0.69ns | 2.67ns | 0.0097 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 956ns | 1.25ns | 4.86ns | 0.00942 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.16μs | 1.96ns | 7.58ns | 0.104 | 0 | 0 | 658 B |
#6411 | RunOnMethodBegin |
net6.0 | 750ns | 1.26ns | 4.87ns | 0.00979 | 0 | 0 | 696 B |
#6411 | RunOnMethodBegin |
netcoreapp3.1 | 912ns | 0.905ns | 3.39ns | 0.00935 | 0 | 0 | 696 B |
#6411 | RunOnMethodBegin |
net472 | 1.08μs | 1.95ns | 7.55ns | 0.104 | 0 | 0 | 658 B |
## Summary of changes Pin the language version to C#11 (i.e. .NET 7) ## Reason for change Without this, Rider/VS prompts you to use C#12/13 constructs, which then cause the build to fail. ## Implementation details Just pin the version ## Test coverage It works
Summary of changes
Pin the language version to C#11 (i.e. .NET 7)
Reason for change
Without this, Rider/VS prompts you to use C#12/13 constructs, which then cause the build to fail.
Implementation details
Just pin the version
Test coverage
It works