-
Notifications
You must be signed in to change notification settings - Fork 137
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-2842 Snapshot exploration test #6064
base: master
Are you sure you want to change the base?
Conversation
Datadog ReportBranch report: ❌ 25 Failed (0 Known Flaky), 295687 Passed, 2645 Skipped, 25h 33m 1.41s Total Time ❌ Failed Tests (25)
|
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 (6064) - mean (69ms) : 67, 72
. : milestone, 69,
master - mean (69ms) : 67, 71
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6064) - mean (1,099ms) : 1075, 1122
. : milestone, 1099,
master - mean (1,097ms) : 1072, 1123
. : milestone, 1097,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6064) - mean (108ms) : 105, 110
. : milestone, 108,
master - mean (109ms) : 106, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (6064) - mean (766ms) : 751, 782
. : milestone, 766,
master - mean (822ms) : 610, 1034
. : milestone, 822,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6064) - mean (92ms) : 90, 94
. : milestone, 92,
master - mean (92ms) : 90, 94
. : milestone, 92,
section CallTarget+Inlining+NGEN
This PR (6064) - mean (721ms) : 703, 739
. : milestone, 721,
master - mean (725ms) : 708, 741
. : milestone, 725,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6064) - mean (190ms) : 187, 193
. : milestone, 190,
master - mean (190ms) : 187, 193
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6064) - mean (1,195ms) : 1170, 1221
. : milestone, 1195,
master - mean (1,196ms) : 1171, 1221
. : milestone, 1196,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6064) - mean (276ms) : 271, 281
. : milestone, 276,
master - mean (277ms) : 272, 282
. : milestone, 277,
section CallTarget+Inlining+NGEN
This PR (6064) - mean (936ms) : 921, 952
. : milestone, 936,
master - mean (940ms) : 899, 981
. : milestone, 940,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6064) - mean (264ms) : 261, 268
. : milestone, 264,
master - mean (264ms) : 261, 268
. : milestone, 264,
section CallTarget+Inlining+NGEN
This PR (6064) - mean (922ms) : 904, 940
. : milestone, 922,
master - mean (929ms) : 910, 949
. : milestone, 929,
|
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 (6064) (11.230M) : 0, 11230192
master (11.235M) : 0, 11235244
benchmarks/2.9.0 (11.081M) : 0, 11080577
section Automatic
This PR (6064) (7.421M) : 0, 7420891
master (7.260M) : 0, 7260359
benchmarks/2.9.0 (7.732M) : 0, 7732233
section Trace stats
master (7.725M) : 0, 7725315
section Manual
master (11.120M) : 0, 11119606
section Manual + Automatic
This PR (6064) (6.721M) : 0, 6721438
master (6.846M) : 0, 6846201
section DD_TRACE_ENABLED=0
master (10.137M) : 0, 10137375
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6064) (9.609M) : 0, 9609199
master (9.648M) : 0, 9648079
benchmarks/2.9.0 (9.798M) : 0, 9798067
section Automatic
This PR (6064) (6.547M) : 0, 6547076
master (6.505M) : 0, 6504554
section Trace stats
master (6.807M) : 0, 6806517
section Manual
master (9.546M) : 0, 9545759
section Manual + Automatic
This PR (6064) (6.092M) : 0, 6091506
master (6.099M) : 0, 6098624
section DD_TRACE_ENABLED=0
master (8.912M) : 0, 8911685
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6064) (10.175M) : 0, 10175434
master (10.077M) : 0, 10076741
benchmarks/2.9.0 (10.067M) : 0, 10067315
section Automatic
This PR (6064) (6.718M) : 0, 6717569
master (6.720M) : 0, 6720262
benchmarks/2.9.0 (7.552M) : 0, 7552193
section Trace stats
master (7.303M) : 0, 7302590
section Manual
master (10.135M) : 0, 10134645
section Manual + Automatic
This PR (6064) (6.215M) : 0, 6215155
master (6.450M) : 0, 6449516
section DD_TRACE_ENABLED=0
master (9.437M) : 0, 9437460
|
Benchmarks Report for tracer 🐌Benchmarks for #6064 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.StartFinishSpan‑net472 | 1.214 | 738.16 | 607.82 | |
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.125 | 536.40 | 476.60 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 399ns | 0.0884ns | 0.319ns | 0.00799 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 550ns | 0.234ns | 0.844ns | 0.00778 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 738ns | 0.441ns | 1.71ns | 0.0917 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 536ns | 0.171ns | 0.663ns | 0.00982 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 680ns | 1.21ns | 4.69ns | 0.00936 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 883ns | 0.902ns | 3.49ns | 0.104 | 0 | 0 | 658 B |
#6064 | StartFinishSpan |
net6.0 | 405ns | 0.13ns | 0.502ns | 0.00818 | 0 | 0 | 576 B |
#6064 | StartFinishSpan |
netcoreapp3.1 | 578ns | 3.27ns | 21.9ns | 0.00765 | 0 | 0 | 576 B |
#6064 | StartFinishSpan |
net472 | 608ns | 0.27ns | 1.04ns | 0.0916 | 0 | 0 | 578 B |
#6064 | StartFinishScope |
net6.0 | 477ns | 0.187ns | 0.726ns | 0.00971 | 0 | 0 | 696 B |
#6064 | StartFinishScope |
netcoreapp3.1 | 721ns | 0.482ns | 1.87ns | 0.00938 | 0 | 0 | 696 B |
#6064 | StartFinishScope |
net472 | 828ns | 0.341ns | 1.32ns | 0.104 | 0 | 0 | 658 B |
Benchmarks.Trace.TraceAnnotationsBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6064
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0
1.177
616.88
726.06
Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
---|---|---|---|---|
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 | 1.177 | 616.88 | 726.06 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | RunOnMethodBegin |
net6.0 | 617ns | 0.29ns | 1.12ns | 0.00996 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 936ns | 0.367ns | 1.37ns | 0.00929 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.09μs | 0.297ns | 1.15ns | 0.104 | 0 | 0 | 658 B |
#6064 | RunOnMethodBegin |
net6.0 | 726ns | 0.533ns | 2.07ns | 0.00985 | 0 | 0 | 696 B |
#6064 | RunOnMethodBegin |
netcoreapp3.1 | 980ns | 0.492ns | 1.91ns | 0.00926 | 0 | 0 | 696 B |
#6064 | RunOnMethodBegin |
net472 | 1.06μs | 0.406ns | 1.57ns | 0.104 | 0 | 0 | 658 B |
Summary of changes
This PR expand the curent exploration test functionality to test not only the produced bytcode but also the snapshot of a probe.
Reason for change
In many cases the instrumentation itself is valid but still we fail to create a valid snapshot for a certain probe.
Implementation details
We run open source projects tests and put probe on each method, then validate the produced snapshot.
Test coverage
Exploration tests