-
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
Try to catch memory dump for instrumentation telemetry tests #6675
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 (6675) - mean (69ms) : 67, 71
. : milestone, 69,
master - mean (69ms) : 66, 71
. : milestone, 69,
section CallTarget+Inlining+NGEN
This PR (6675) - mean (1,000ms) : 980, 1020
. : milestone, 1000,
master - mean (996ms) : 972, 1019
. : milestone, 996,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6675) - mean (102ms) : 100, 104
. : milestone, 102,
master - mean (101ms) : 99, 103
. : milestone, 101,
section CallTarget+Inlining+NGEN
This PR (6675) - mean (677ms) : 660, 694
. : milestone, 677,
master - mean (675ms) : 660, 691
. : milestone, 675,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6675) - mean (89ms) : 87, 90
. : milestone, 89,
master - mean (89ms) : 87, 91
. : milestone, 89,
section CallTarget+Inlining+NGEN
This PR (6675) - mean (634ms) : 611, 657
. : milestone, 634,
master - mean (634ms) : 614, 654
. : milestone, 634,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6675) - mean (191ms) : 187, 195
. : milestone, 191,
master - mean (191ms) : 187, 195
. : milestone, 191,
section CallTarget+Inlining+NGEN
This PR (6675) - mean (1,111ms) : 1080, 1142
. : milestone, 1111,
master - mean (1,113ms) : 1085, 1140
. : milestone, 1113,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6675) - mean (272ms) : 267, 277
. : milestone, 272,
master - mean (271ms) : 266, 276
. : milestone, 271,
section CallTarget+Inlining+NGEN
This PR (6675) - mean (867ms) : 844, 889
. : milestone, 867,
master - mean (868ms) : 837, 898
. : milestone, 868,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6675) - mean (262ms) : 257, 268
. : milestone, 262,
master - mean (262ms) : 258, 267
. : milestone, 262,
section CallTarget+Inlining+NGEN
This PR (6675) - mean (846ms) : 809, 882
. : milestone, 846,
master - mean (848ms) : 818, 878
. : milestone, 848,
|
Benchmarks Report for tracer 🐌Benchmarks for #6675 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.160 | 692.21 | 596.62 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 468ns | 0.208ns | 0.806ns | 0.00798 | 0 | 0 | 576 B |
master | StartFinishSpan |
netcoreapp3.1 | 556ns | 0.587ns | 2.27ns | 0.00776 | 0 | 0 | 576 B |
master | StartFinishSpan |
net472 | 692ns | 0.499ns | 1.93ns | 0.0918 | 0 | 0 | 578 B |
master | StartFinishScope |
net6.0 | 495ns | 0.249ns | 0.964ns | 0.00981 | 0 | 0 | 696 B |
master | StartFinishScope |
netcoreapp3.1 | 706ns | 0.646ns | 2.5ns | 0.00956 | 0 | 0 | 696 B |
master | StartFinishScope |
net472 | 886ns | 1.58ns | 6.11ns | 0.104 | 0 | 0 | 658 B |
#6675 | StartFinishSpan |
net6.0 | 464ns | 0.578ns | 2.24ns | 0.00805 | 0 | 0 | 576 B |
#6675 | StartFinishSpan |
netcoreapp3.1 | 536ns | 0.917ns | 3.55ns | 0.00781 | 0 | 0 | 576 B |
#6675 | StartFinishSpan |
net472 | 597ns | 1.42ns | 5.51ns | 0.0917 | 0 | 0 | 578 B |
#6675 | StartFinishScope |
net6.0 | 482ns | 0.923ns | 3.57ns | 0.0098 | 0 | 0 | 696 B |
#6675 | StartFinishScope |
netcoreapp3.1 | 681ns | 1.07ns | 4.16ns | 0.00934 | 0 | 0 | 696 B |
#6675 | StartFinishScope |
net472 | 805ns | 1.56ns | 5.63ns | 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 | 610ns | 0.318ns | 1.23ns | 0.00978 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 916ns | 1.36ns | 5.28ns | 0.00932 | 0 | 0 | 696 B |
master | RunOnMethodBegin |
net472 | 1.17μs | 0.969ns | 3.63ns | 0.104 | 0 | 0 | 658 B |
#6675 | RunOnMethodBegin |
net6.0 | 668ns | 0.851ns | 3.3ns | 0.00964 | 0 | 0 | 696 B |
#6675 | RunOnMethodBegin |
netcoreapp3.1 | 913ns | 1.71ns | 6.61ns | 0.00943 | 0 | 0 | 696 B |
#6675 | RunOnMethodBegin |
net472 | 1.11μs | 2.62ns | 10.2ns | 0.104 | 0 | 0 | 658 B |
Summary of changes
Try to grab a memory dump if
dotnet build
fails as part of the instrumentation testsReason for change
Since updating to 9.0.102, we've seen cases of the
dotnet build
hanging on arm64. In this test we explicitly build a "forwarder" app, and that has a hung several times in CI now.Implementation details
Use the memory dump helper to try to grab a dump. We've only seen this happen on linux arm64 so far, so haven't bothered to hook up the Windows monitoring or anything like that
Test coverage
If the tests pass, that's good enough for me until we see this flake manifest again.