-
Notifications
You must be signed in to change notification settings - Fork 142
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-2916 Stabilize the probe processor #6077
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 456328 Passed, 3593 Skipped, 32h 27m 20.27s 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 (6077) - mean (72ms) : 63, 81
. : milestone, 72,
master - mean (71ms) : 65, 77
. : milestone, 71,
section CallTarget+Inlining+NGEN
This PR (6077) - mean (1,111ms) : 1090, 1132
. : milestone, 1111,
master - mean (1,106ms) : 1082, 1131
. : milestone, 1106,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6077) - mean (109ms) : 107, 111
. : milestone, 109,
master - mean (108ms) : 106, 110
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (6077) - mean (769ms) : 754, 785
. : milestone, 769,
master - mean (773ms) : 759, 788
. : milestone, 773,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6077) - mean (92ms) : 90, 94
. : milestone, 92,
master - mean (93ms) : 89, 97
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (6077) - mean (728ms) : 709, 747
. : milestone, 728,
master - mean (728ms) : 710, 746
. : milestone, 728,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6077) - mean (191ms) : 185, 196
. : milestone, 191,
master - mean (190ms) : 187, 194
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6077) - mean (1,222ms) : 1137, 1307
. : milestone, 1222,
master - mean (1,227ms) : 1201, 1254
. : milestone, 1227,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6077) - mean (276ms) : 273, 280
. : milestone, 276,
master - mean (276ms) : 270, 282
. : milestone, 276,
section CallTarget+Inlining+NGEN
This PR (6077) - mean (947ms) : 924, 970
. : milestone, 947,
master - mean (945ms) : 919, 971
. : milestone, 945,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6077) - mean (265ms) : 260, 269
. : milestone, 265,
master - mean (265ms) : 260, 271
. : milestone, 265,
section CallTarget+Inlining+NGEN
This PR (6077) - mean (927ms) : 908, 946
. : milestone, 927,
master - mean (929ms) : 914, 945
. : milestone, 929,
|
Benchmarks Report for tracer 🐌Benchmarks for #6077 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‑net6.0 | 1.206 | 403.32 | 486.32 |
Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑netcoreapp3.1 | 1.217 | 668.85 | 549.51 | |
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑netcoreapp3.1 | 1.115 | 789.71 | 708.20 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 403ns | 0.158ns | 0.592ns | 0.0081 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 664ns | 2.96ns | 11.5ns | 0.00776 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 718ns | 0.792ns | 3.07ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 475ns | 0.58ns | 2.25ns | 0.00968 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 790ns | 0.64ns | 2.48ns | 0.00911 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 902ns | 0.888ns | 3.44ns | 0.104 | 0 | 0 | 658 B |
#6077 | StartFinishSpan |
net6.0 | 486ns | 0.326ns | 1.26ns | 0.00807 | 0 | 0 | 576 B |
#6077 | StartFinishSpan |
netcoreapp3.1 | 549ns | 0.43ns | 1.55ns | 0.0077 | 0 | 0 | 576 B |
#6077 | StartFinishSpan |
net472 | 723ns | 0.81ns | 3.14ns | 0.0917 | 0 | 0 | 578 B |
#6077 | StartFinishScope |
net6.0 | 499ns | 0.436ns | 1.69ns | 0.00981 | 0 | 0 | 696 B |
#6077 | StartFinishScope |
netcoreapp3.1 | 708ns | 0.848ns | 3.17ns | 0.00917 | 0 | 0 | 696 B |
#6077 | StartFinishScope |
net472 | 894ns | 1.13ns | 4.39ns | 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 | 667ns | 0.484ns | 1.87ns | 0.00964 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 933ns | 3.18ns | 12.3ns | 0.0095 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.15μs | 0.798ns | 3.09ns | 0.104 | 0 | 0 | 658 B |
#6077 | RunOnMethodBegin |
net6.0 | 717ns | 0.711ns | 2.75ns | 0.00979 | 0 | 0 | 696 B |
#6077 | RunOnMethodBegin |
netcoreapp3.1 | 876ns | 0.74ns | 2.87ns | 0.00925 | 0 | 0 | 696 B |
#6077 | RunOnMethodBegin |
net472 | 1.22μs | 0.485ns | 1.88ns | 0.104 | 0 | 0 | 658 B |
Throughput/Crank Report ⚡Throughput results for AspNetCoreSimpleController comparing the following branches/commits: Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red. Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards! gantt
title Throughput Linux x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6077) (11.233M) : 0, 11232671
master (11.174M) : 0, 11173945
benchmarks/2.9.0 (11.033M) : 0, 11032866
section Automatic
This PR (6077) (7.274M) : 0, 7273653
master (7.312M) : 0, 7312280
benchmarks/2.9.0 (7.786M) : 0, 7785853
section Trace stats
master (7.553M) : 0, 7553254
section Manual
master (11.102M) : 0, 11101684
section Manual + Automatic
This PR (6077) (6.768M) : 0, 6768003
master (6.740M) : 0, 6739647
section DD_TRACE_ENABLED=0
master (10.282M) : 0, 10282028
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6077) (9.586M) : 0, 9585683
master (9.530M) : 0, 9530431
benchmarks/2.9.0 (9.495M) : 0, 9494821
section Automatic
This PR (6077) (6.370M) : 0, 6370359
master (6.395M) : 0, 6394628
section Trace stats
master (6.680M) : 0, 6679934
section Manual
master (9.631M) : 0, 9630609
section Manual + Automatic
This PR (6077) (6.182M) : 0, 6181721
master (5.995M) : 0, 5995215
section DD_TRACE_ENABLED=0
master (8.922M) : 0, 8921645
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6077) (9.871M) : 0, 9870687
master (9.758M) : 0, 9758058
benchmarks/2.9.0 (10.020M) : 0, 10019592
section Automatic
This PR (6077) (6.611M) : 0, 6610991
master (6.513M) : 0, 6512759
benchmarks/2.9.0 (7.255M) : 0, 7255257
section Trace stats
master (7.074M) : 0, 7073637
section Manual
master (9.827M) : 0, 9827350
section Manual + Automatic
This PR (6077) (5.930M) : 0, 5929593
master (5.944M) : 0, 5943752
section DD_TRACE_ENABLED=0
master (9.348M) : 0, 9348488
|
2474738
to
8bc0a63
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.
Great, thank you! Just verified the tracing side, but LGTM 👍
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!
8bc0a63
to
9bfc188
Compare
655b66a
to
aa64466
Compare
aa64466
to
fe872fe
Compare
Summary of changes
This PR aims to fix various isue in the probe processor.
Implementation details
Any of the expressions (template, condition and metric) can be in an invalid state during the creation phase and compile\evaluation phase.