-
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
Expand number of files that require thorough testing #6504
Conversation
91b4e6b
to
546a542
Compare
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.
Thanks 😄
Datadog ReportBranch report: ✅ 0 Failed, 235712 Passed, 2104 Skipped, 18h 53m 35.75s Total Time |
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 (6504) - mean (69ms) : 65, 73
. : milestone, 69,
master - mean (68ms) : 65, 72
. : milestone, 68,
section CallTarget+Inlining+NGEN
This PR (6504) - mean (977ms) : 949, 1005
. : milestone, 977,
master - mean (971ms) : 949, 993
. : milestone, 971,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6504) - mean (107ms) : 105, 110
. : milestone, 107,
master - mean (107ms) : 104, 109
. : milestone, 107,
section CallTarget+Inlining+NGEN
This PR (6504) - mean (674ms) : 660, 689
. : milestone, 674,
master - mean (674ms) : 658, 690
. : milestone, 674,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6504) - mean (91ms) : 89, 92
. : milestone, 91,
master - mean (90ms) : 88, 92
. : milestone, 90,
section CallTarget+Inlining+NGEN
This PR (6504) - mean (632ms) : 616, 648
. : milestone, 632,
master - mean (631ms) : 615, 648
. : milestone, 631,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6504) - mean (194ms) : 190, 198
. : milestone, 194,
master - mean (194ms) : 189, 198
. : milestone, 194,
section CallTarget+Inlining+NGEN
This PR (6504) - mean (1,099ms) : 1072, 1125
. : milestone, 1099,
master - mean (1,102ms) : 1065, 1139
. : milestone, 1102,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6504) - mean (279ms) : 274, 284
. : milestone, 279,
master - mean (279ms) : 275, 283
. : milestone, 279,
section CallTarget+Inlining+NGEN
This PR (6504) - mean (871ms) : 842, 901
. : milestone, 871,
master - mean (870ms) : 844, 896
. : milestone, 870,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6504) - mean (268ms) : 263, 272
. : milestone, 268,
master - mean (268ms) : 263, 272
. : milestone, 268,
section CallTarget+Inlining+NGEN
This PR (6504) - mean (853ms) : 823, 882
. : milestone, 853,
master - mean (855ms) : 820, 890
. : milestone, 855,
|
Benchmarks Report for tracer 🐌Benchmarks for #6504 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 - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.SpanBenchmark - Slower
|
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1 | 1.125 | 561.99 | 631.99 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net472 | 1.117 | 901.61 | 807.45 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 409ns | 0.257ns | 0.995ns | 0.00802 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 564ns | 1.45ns | 5.61ns | 0.00768 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 636ns | 0.721ns | 2.79ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 549ns | 0.265ns | 0.993ns | 0.00987 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 681ns | 0.888ns | 3.44ns | 0.00929 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 901ns | 1.03ns | 3.97ns | 0.104 | 0 | 0 | 658 B |
#6504 | StartFinishSpan |
net6.0 | 399ns | 0.215ns | 0.831ns | 0.00801 | 0 | 0 | 576 B |
#6504 | StartFinishSpan |
netcoreapp3.1 | 632ns | 0.27ns | 1.01ns | 0.00763 | 0 | 0 | 576 B |
#6504 | StartFinishSpan |
net472 | 660ns | 0.468ns | 1.81ns | 0.0918 | 0 | 0 | 578 B |
#6504 | StartFinishScope |
net6.0 | 524ns | 0.182ns | 0.705ns | 0.00972 | 0 | 0 | 696 B |
#6504 | StartFinishScope |
netcoreapp3.1 | 676ns | 0.576ns | 2.23ns | 0.00951 | 0 | 0 | 696 B |
#6504 | StartFinishScope |
net472 | 806ns | 0.853ns | 3.3ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6504
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.122
656.09
736.07
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.122 | 656.09 | 736.07 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 656ns | 0.399ns | 1.54ns | 0.00976 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 932ns | 0.652ns | 2.53ns | 0.00932 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.11μs | 0.355ns | 1.33ns | 0.104 | 0 | 0 | 658 B |
#6504 | RunOnMethodBegin |
net6.0 | 737ns | 0.403ns | 1.56ns | 0.00956 | 0 | 0 | 696 B |
#6504 | RunOnMethodBegin |
netcoreapp3.1 | 943ns | 0.995ns | 3.85ns | 0.00961 | 0 | 0 | 696 B |
#6504 | RunOnMethodBegin |
net472 | 1.08μs | 0.44ns | 1.59ns | 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.
Nice 👍
Summary of changes
Try to catch more integration issues in PRs
Reason for change
We don't run all TFMs on all PRs, because it increases the load on CI, and doesn't add a huge amount of value. Unfortunately, that means we also occasionally merge PRs that break an untested-in-PR TFM which then fails on master. We attempt to mitigate that, but running all TFMs for "high risk of breakage" PRs. This increases the scope of what constitutes "high risk"
Implementation details
Previously, we were only counting PRs which change the calltarget or callsite integration points. This PR updates that to include the implementations too
Test coverage
Tested locally to confirm it works as expected