-
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
[Dynamic Instrumentation] DEBUG-3492 Remove duration from non method snapshots #6735
base: master
Are you sure you want to change the base?
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 (6735) - mean (69ms) : 66, 72
. : milestone, 69,
master - mean (70ms) : 65, 74
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (6735) - mean (1,001ms) : 980, 1022
. : milestone, 1001,
master - mean (1,003ms) : 977, 1029
. : milestone, 1003,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6735) - mean (102ms) : 100, 104
. : milestone, 102,
master - mean (102ms) : 100, 105
. : milestone, 102,
section CallTarget+Inlining+NGEN
This PR (6735) - mean (685ms) : 668, 702
. : milestone, 685,
master - mean (688ms) : 664, 711
. : milestone, 688,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6735) - mean (89ms) : 87, 91
. : milestone, 89,
master - mean (89ms) : 87, 91
. : milestone, 89,
section CallTarget+Inlining+NGEN
This PR (6735) - mean (641ms) : 624, 659
. : milestone, 641,
master - mean (640ms) : 626, 654
. : milestone, 640,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6735) - mean (191ms) : 185, 196
. : milestone, 191,
master - mean (191ms) : 187, 196
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6735) - mean (1,112ms) : 1084, 1139
. : milestone, 1112,
master - mean (1,107ms) : 1081, 1133
. : milestone, 1107,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6735) - mean (270ms) : 265, 274
. : milestone, 270,
master - mean (271ms) : 266, 275
. : milestone, 271,
section CallTarget+Inlining+NGEN
This PR (6735) - mean (878ms) : 850, 906
. : milestone, 878,
master - mean (877ms) : 842, 913
. : milestone, 877,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6735) - mean (261ms) : 256, 267
. : milestone, 261,
master - mean (262ms) : 259, 266
. : milestone, 262,
section CallTarget+Inlining+NGEN
This PR (6735) - mean (861ms) : 825, 896
. : milestone, 861,
master - mean (855ms) : 817, 892
. : milestone, 855,
|
Datadog ReportAll test runs ❌ 2 Total Test Services: 1 Failed, 1 Passed Test Services
❌ Failed Tests (1320)
|
Benchmarks Report for tracer 🐌Benchmarks for #6735 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.StartFinishScope‑net6.0 | 1.157 | 481.86 | 557.59 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 392ns | 0.434ns | 1.68ns | 0.00798 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 606ns | 1.38ns | 5.36ns | 0.0079 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 589ns | 0.892ns | 3.46ns | 0.0916 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 481ns | 0.798ns | 3.09ns | 0.00986 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 725ns | 1.74ns | 6.72ns | 0.00921 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 842ns | 1.98ns | 7.67ns | 0.104 | 0 | 0 | 658 B |
#6735 | StartFinishSpan |
net6.0 | 396ns | 0.139ns | 0.52ns | 0.00813 | 0 | 0 | 576 B |
#6735 | StartFinishSpan |
netcoreapp3.1 | 558ns | 0.341ns | 1.32ns | 0.00784 | 0 | 0 | 576 B |
#6735 | StartFinishSpan |
net472 | 640ns | 0.22ns | 0.792ns | 0.0915 | 0 | 0 | 578 B |
#6735 | StartFinishScope |
net6.0 | 558ns | 0.338ns | 1.27ns | 0.00964 | 0 | 0 | 696 B |
#6735 | StartFinishScope |
netcoreapp3.1 | 706ns | 0.746ns | 2.79ns | 0.00941 | 0 | 0 | 696 B |
#6735 | StartFinishScope |
net472 | 822ns | 2.31ns | 8.93ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 615ns | 1.18ns | 4.58ns | 0.00981 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 922ns | 1.49ns | 5.78ns | 0.00937 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.06μs | 2.1ns | 8.12ns | 0.104 | 0 | 0 | 658 B |
#6735 | RunOnMethodBegin |
net6.0 | 660ns | 0.292ns | 1.13ns | 0.00987 | 0 | 0 | 696 B |
#6735 | RunOnMethodBegin |
netcoreapp3.1 | 1.01μs | 0.418ns | 1.62ns | 0.00953 | 0 | 0 | 696 B |
#6735 | RunOnMethodBegin |
net472 | 1.09μs | 0.336ns | 1.3ns | 0.104 | 0 | 0 | 658 B |
Summary of changes
Removes the duration property from non method snapshots
Reason for change
We have seen customers used @duration in the expression. It seems they wanted to know how much it took for the selected line to execute and have a metric on that. Since @duration works only for method probes (where it shows the execution time time in milliseconds of the method) and in line probes it’s not useful (and I’m not sure why it’s even there) since the line is executed similar to a breakpoint in the IDE - before the line executes. It does not surround the method in any way - then @duration means nothing.