-
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
[Profiler] Pass memory_resource around #5434
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 328498 Passed, 1794 Skipped, 43m 36.66s Wall 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 (5434) - mean (75ms) : 60, 90
. : milestone, 75,
master - mean (73ms) : 65, 82
. : milestone, 73,
section CallTarget+Inlining+NGEN
This PR (5434) - mean (1,014ms) : 993, 1035
. : milestone, 1014,
master - mean (1,013ms) : 991, 1035
. : milestone, 1013,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5434) - mean (109ms) : 106, 112
. : milestone, 109,
master - mean (109ms) : 106, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (5434) - mean (735ms) : 718, 753
. : milestone, 735,
master - mean (736ms) : 716, 756
. : milestone, 736,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5434) - mean (94ms) : 90, 97
. : milestone, 94,
master - mean (93ms) : 90, 96
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (5434) - mean (690ms) : 660, 719
. : milestone, 690,
master - mean (691ms) : 668, 714
. : milestone, 691,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5434) - mean (187ms) : 185, 190
. : milestone, 187,
master - mean (188ms) : 185, 191
. : milestone, 188,
section CallTarget+Inlining+NGEN
This PR (5434) - mean (1,085ms) : 1057, 1112
. : milestone, 1085,
master - mean (1,091ms) : 1071, 1111
. : milestone, 1091,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5434) - mean (271ms) : 267, 275
. : milestone, 271,
master - mean (273ms) : 269, 277
. : milestone, 273,
section CallTarget+Inlining+NGEN
This PR (5434) - mean (889ms) : 868, 910
. : milestone, 889,
master - mean (890ms) : 863, 916
. : milestone, 890,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (5434) - mean (260ms) : 256, 265
. : milestone, 260,
master - mean (261ms) : 258, 264
. : milestone, 261,
section CallTarget+Inlining+NGEN
This PR (5434) - mean (869ms) : 848, 890
. : milestone, 869,
master - mean (867ms) : 845, 888
. : milestone, 867,
|
Benchmarks Report for tracer 🐌Benchmarks for #5434 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‑netcoreapp3.1 | 1.147 | 663.66 | 760.98 |
Raw results
Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
---|---|---|---|---|---|---|---|---|---|
master | StartFinishSpan |
net6.0 | 478ns | 0.815ns | 3.16ns | 0.00801 | 0 | 0 | 568 B |
master | StartFinishSpan |
netcoreapp3.1 | 663ns | 1.42ns | 5.5ns | 0.00793 | 0 | 0 | 568 B |
master | StartFinishSpan |
net472 | 803ns | 1.57ns | 6.09ns | 0.0904 | 0 | 0 | 570 B |
master | StartFinishScope |
net6.0 | 590ns | 1.1ns | 4.11ns | 0.00949 | 0 | 0 | 688 B |
master | StartFinishScope |
netcoreapp3.1 | 883ns | 1.18ns | 4.57ns | 0.00913 | 0 | 0 | 688 B |
master | StartFinishScope |
net472 | 1μs | 1.35ns | 5.21ns | 0.103 | 0 | 0 | 650 B |
#5434 | StartFinishSpan |
net6.0 | 464ns | 0.859ns | 3.33ns | 0.008 | 0 | 0 | 568 B |
#5434 | StartFinishSpan |
netcoreapp3.1 | 760ns | 1.27ns | 4.75ns | 0.00759 | 0 | 0 | 568 B |
#5434 | StartFinishSpan |
net472 | 782ns | 1.39ns | 5.39ns | 0.0905 | 0 | 0 | 570 B |
#5434 | StartFinishScope |
net6.0 | 625ns | 0.571ns | 2.14ns | 0.00955 | 0 | 0 | 688 B |
#5434 | StartFinishScope |
netcoreapp3.1 | 896ns | 1.33ns | 5.15ns | 0.00954 | 0 | 0 | 688 B |
#5434 | StartFinishScope |
net472 | 983ns | 2ns | 7.74ns | 0.103 | 0 | 0 | 650 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 | 646ns | 0.91ns | 3.52ns | 0.00954 | 0 | 0 | 688 B |
master | RunOnMethodBegin |
netcoreapp3.1 | 902ns | 1.23ns | 4.76ns | 0.00919 | 0 | 0 | 688 B |
master | RunOnMethodBegin |
net472 | 1.16μs | 1.42ns | 5.48ns | 0.103 | 0 | 0 | 650 B |
#5434 | RunOnMethodBegin |
net6.0 | 672ns | 1.14ns | 4.41ns | 0.00974 | 0 | 0 | 688 B |
#5434 | RunOnMethodBegin |
netcoreapp3.1 | 957ns | 1.77ns | 6.61ns | 0.00932 | 0 | 0 | 688 B |
#5434 | RunOnMethodBegin |
net472 | 1.11μs | 2.31ns | 8.94ns | 0.103 | 0 | 0 | 650 B |
Throughput/Crank Report:zap: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 (5434) (11.444M) : 0, 11444305
master (11.027M) : 0, 11026822
benchmarks/2.9.0 (11.441M) : 0, 11440819
section Automatic
This PR (5434) (7.852M) : 0, 7851824
master (7.668M) : 0, 7667630
benchmarks/2.9.0 (8.279M) : 0, 8278641
section Trace stats
This PR (5434) (8.153M) : 0, 8153254
master (7.941M) : 0, 7940559
section Manual
This PR (5434) (9.779M) : 0, 9779386
master (9.543M) : 0, 9542981
section Manual + Automatic
This PR (5434) (7.386M) : 0, 7386185
master (7.329M) : 0, 7329210
section Version Conflict
This PR (5434) (6.714M) : 0, 6714218
master (6.506M) : 0, 6505794
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5434) (9.591M) : 0, 9591435
master (9.868M) : 0, 9868320
benchmarks/2.9.0 (9.449M) : 0, 9448631
section Automatic
This PR (5434) (6.662M) : 0, 6662092
master (6.641M) : 0, 6641481
section Trace stats
This PR (5434) (7.022M) : 0, 7022321
master (6.996M) : 0, 6996397
section Manual
This PR (5434) (8.134M) : 0, 8134435
master (8.395M) : 0, 8395069
section Manual + Automatic
This PR (5434) (6.204M) : 0, 6204426
master (6.209M) : 0, 6209484
section Version Conflict
This PR (5434) (5.726M) : 0, 5725626
master (5.724M) : 0, 5723880
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (5434) (10.086M) : 0, 10085844
master (9.937M) : 0, 9937171
benchmarks/2.9.0 (9.815M) : 0, 9814765
section Automatic
This PR (5434) (7.143M) : 0, 7142636
master (7.202M) : 0, 7202285
benchmarks/2.9.0 (7.255M) : 0, 7254797
section Trace stats
This PR (5434) (7.489M) : 0, 7488643
master (7.422M) : 0, 7422329
section Manual
This PR (5434) (8.814M) : 0, 8813699
master (8.985M) : 0, 8984711
section Manual + Automatic
This PR (5434) (6.926M) : 0, 6926301
master (6.966M) : 0, 6966271
section Version Conflict
This PR (5434) (6.200M) : 0, 6200237
master (6.248M) : 0, 6248072
|
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.
LGTM
Summary of changes
Provide
memory_resource
instance to provider.Reason for change
This is mainly plumbing PR. The goal is to pass a memory_resource to the
LinkedList
.For now we use the default one (new/delete).
In next PR(s), we may use Pooled resource memory instances.
Implementation details
LinkedList
Test coverage
Current tests must pass
Other details