-
Notifications
You must be signed in to change notification settings - Fork 145
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
Validate data before EnumNgenModuleMethodsInliningThisMethod call #6410
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 470128 Passed, 3702 Skipped, 33h 2m 12.18s 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 (6410) - mean (70ms) : 66, 73
. : milestone, 70,
master - mean (70ms) : 67, 72
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6410) - mean (974ms) : 953, 995
. : milestone, 974,
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 (6410) - mean (108ms) : 103, 113
. : milestone, 108,
master - mean (110ms) : 107, 114
. : milestone, 110,
section CallTarget+Inlining+NGEN
This PR (6410) - mean (676ms) : 658, 694
. : milestone, 676,
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 (6410) - mean (91ms) : 89, 94
. : milestone, 91,
master - mean (93ms) : 91, 96
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (6410) - mean (632ms) : 616, 648
. : milestone, 632,
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 (6410) - mean (191ms) : 184, 198
. : milestone, 191,
master - mean (190ms) : 186, 194
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6410) - mean (1,093ms) : 1068, 1118
. : milestone, 1093,
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 (6410) - mean (276ms) : 272, 280
. : milestone, 276,
master - mean (276ms) : 272, 280
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (6410) - mean (869ms) : 833, 904
. : milestone, 869,
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 (6410) - mean (266ms) : 261, 271
. : milestone, 266,
master - mean (266ms) : 262, 269
. : milestone, 266,
section CallTarget+Inlining+NGEN
This PR (6410) - mean (848ms) : 812, 884
. : milestone, 848,
master - mean (850ms) : 818, 882
. : milestone, 850,
|
Benchmarks Report for tracer 🐌Benchmarks for #6410 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.RedisBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.RedisBenchmark.SendReceive‑netcoreapp3.1 | 1.142 | 1,643.81 | 1,876.66 |
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 |
#6410 | SendReceive |
net6.0 | 1.26μs | 1.39ns | 5.39ns | 0.0157 | 0 | 0 | 1.14 KB |
#6410 | SendReceive |
netcoreapp3.1 | 1.88μs | 1.12ns | 4.35ns | 0.015 | 0 | 0 | 1.14 KB |
#6410 | SendReceive |
net472 | 2.09μs | 3.31ns | 12.8ns | 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 |
#6410 | EnrichedLog |
net6.0 | 2.85μs | 0.99ns | 3.7ns | 0.0229 | 0 | 0 | 1.6 KB |
#6410 | EnrichedLog |
netcoreapp3.1 | 4.05μs | 1.42ns | 5.3ns | 0.0223 | 0 | 0 | 1.65 KB |
#6410 | EnrichedLog |
net472 | 4.53μs | 2.96ns | 11.4ns | 0.322 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️
Faster 🎉 in #6410
Benchmark
base/diff
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0
1.168
465.57
398.72
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net472
1.136
711.23
626.31
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0 | 1.168 | 465.57 | 398.72 | |
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net472 | 1.136 | 711.23 | 626.31 |
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 |
#6410 | StartFinishSpan |
net6.0 | 399ns | 0.376ns | 1.46ns | 0.00806 | 0 | 0 | 576 B |
#6410 | StartFinishSpan |
netcoreapp3.1 | 601ns | 1.13ns | 4.37ns | 0.00789 | 0 | 0 | 576 B |
#6410 | StartFinishSpan |
net472 | 626ns | 1.11ns | 4.32ns | 0.0918 | 0 | 0 | 578 B |
#6410 | StartFinishScope |
net6.0 | 486ns | 0.515ns | 1.99ns | 0.00977 | 0 | 0 | 696 B |
#6410 | StartFinishScope |
netcoreapp3.1 | 752ns | 1.01ns | 3.89ns | 0.00945 | 0 | 0 | 696 B |
#6410 | StartFinishScope |
net472 | 880ns | 1.48ns | 5.75ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6410
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.161
602.96
700.13
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.161 | 602.96 | 700.13 |
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 |
#6410 | RunOnMethodBegin |
net6.0 | 701ns | 1.1ns | 4.27ns | 0.00983 | 0 | 0 | 696 B |
#6410 | RunOnMethodBegin |
netcoreapp3.1 | 900ns | 1.29ns | 5.01ns | 0.00909 | 0 | 0 | 696 B |
#6410 | RunOnMethodBegin |
net472 | 1.1μs | 1.87ns | 7.25ns | 0.104 | 0 | 0 | 658 B |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Summary of changes
Add some checks to the native side before using a module info
Ticket: SDTEST-1308