-
Notifications
You must be signed in to change notification settings - Fork 140
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 version conflict test #6226
Conversation
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 (6226) - mean (71ms) : 68, 74
. : milestone, 71,
master - mean (71ms) : 68, 74
. : milestone, 71,
section CallTarget+Inlining+NGEN
This PR (6226) - mean (1,120ms) : 1097, 1144
. : milestone, 1120,
master - mean (1,117ms) : 1097, 1138
. : milestone, 1117,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6226) - mean (110ms) : 107, 113
. : milestone, 110,
master - mean (110ms) : 105, 115
. : milestone, 110,
section CallTarget+Inlining+NGEN
This PR (6226) - mean (779ms) : 760, 798
. : milestone, 779,
master - mean (780ms) : 764, 796
. : milestone, 780,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6226) - mean (93ms) : 91, 95
. : milestone, 93,
master - mean (93ms) : 91, 96
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (6226) - mean (735ms) : 718, 752
. : milestone, 735,
master - mean (734ms) : 721, 747
. : milestone, 734,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6226) - mean (190ms) : 186, 193
. : milestone, 190,
master - mean (190ms) : 186, 194
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6226) - mean (1,219ms) : 1196, 1243
. : milestone, 1219,
master - mean (1,221ms) : 1199, 1243
. : milestone, 1221,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6226) - mean (276ms) : 271, 281
. : milestone, 276,
master - mean (277ms) : 270, 284
. : milestone, 277,
section CallTarget+Inlining+NGEN
This PR (6226) - mean (942ms) : 925, 960
. : milestone, 942,
master - mean (949ms) : 929, 969
. : milestone, 949,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6226) - mean (264ms) : 260, 268
. : milestone, 264,
master - mean (264ms) : 261, 268
. : milestone, 264,
section CallTarget+Inlining+NGEN
This PR (6226) - mean (928ms) : 909, 947
. : milestone, 928,
master - mean (932ms) : 911, 952
. : milestone, 932,
|
Datadog ReportBranch report: ✅ 0 Failed, 367186 Passed, 2084 Skipped, 15h 2m 32.41s Total Time |
Benchmarks Report for tracer 🐌Benchmarks for #6226 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 - Faster 🎉 Same allocations ✔️
|
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.344 | 644.21 | 479.39 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 408ns | 0.297ns | 1.15ns | 0.00812 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 566ns | 0.468ns | 1.69ns | 0.00776 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 736ns | 0.851ns | 3.3ns | 0.0918 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 644ns | 0.427ns | 1.65ns | 0.00972 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 703ns | 0.348ns | 1.3ns | 0.00939 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 868ns | 0.541ns | 2.1ns | 0.104 | 0 | 0 | 658 B |
#6226 | StartFinishSpan |
net6.0 | 399ns | 0.185ns | 0.691ns | 0.00804 | 0 | 0 | 576 B |
#6226 | StartFinishSpan |
netcoreapp3.1 | 576ns | 0.252ns | 0.942ns | 0.00755 | 0 | 0 | 576 B |
#6226 | StartFinishSpan |
net472 | 696ns | 0.262ns | 0.943ns | 0.0918 | 0 | 0 | 578 B |
#6226 | StartFinishScope |
net6.0 | 479ns | 0.113ns | 0.421ns | 0.00964 | 0 | 0 | 696 B |
#6226 | StartFinishScope |
netcoreapp3.1 | 768ns | 0.294ns | 1.1ns | 0.0092 | 0 | 0 | 696 B |
#6226 | StartFinishScope |
net472 | 914ns | 0.658ns | 2.55ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6226
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.158
649.81
752.23
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.158 | 649.81 | 752.23 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 650ns | 0.213ns | 0.795ns | 0.0097 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 998ns | 0.185ns | 0.669ns | 0.00899 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.19μs | 0.613ns | 2.37ns | 0.104 | 0 | 0 | 658 B |
#6226 | RunOnMethodBegin |
net6.0 | 752ns | 0.416ns | 1.61ns | 0.00979 | 0 | 0 | 696 B |
#6226 | RunOnMethodBegin |
netcoreapp3.1 | 979ns | 0.441ns | 1.65ns | 0.00932 | 0 | 0 | 696 B |
#6226 | RunOnMethodBegin |
net472 | 1.19μs | 0.95ns | 3.56ns | 0.104 | 0 | 0 | 658 B |
Did you mean ".NET 9"? |
Summary of changes
Change the version conflict test to something sane
Reason for change
Since 3.x, this test doesn't really make sense - it's meant to test the behaviour of the app when the manual version is higher than the automatic version. Since 3.x, we don't ship Datadog.Trace.dll in the NuGet package, so this scenario, where the manual version is higher than the automatic, can't happen in practice.
What we can still have is a manual version 2.x with automatic 3.x, so changed the test to check that scenario instead.
Implementation details
Test coverage
Kinda the same, kinda different. We're testing auto > manual instead of manual > auto now.
Other details
This is particularly necessarily for supporting .NET 9, seeing as the existing 255.x.x package won't support it, so we would need to create a new one, which isn't worth the hassle seeing as it can't happen.