Rejit NGEN/R2R inliners in cascade#6165
Conversation
Datadog ReportBranch report: ❌ 538 Failed (1 Known Flaky), 367107 Passed, 2735 Skipped, 27h 11m 21.01s Total Time ❌ Failed Tests (538)
|
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 (6165) - mean (70ms) : 68, 72
. : milestone, 70,
master - mean (71ms) : 68, 75
. : milestone, 71,
section CallTarget+Inlining+NGEN
This PR (6165) - mean (1,114ms) : 1097, 1132
. : milestone, 1114,
master - mean (1,120ms) : 1092, 1149
. : milestone, 1120,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6165) - mean (110ms) : 107, 113
. : milestone, 110,
master - mean (109ms) : 107, 112
. : milestone, 109,
section CallTarget+Inlining+NGEN
This PR (6165) - mean (858ms) : crit, 846, 869
. : crit, milestone, 858,
master - mean (776ms) : 757, 795
. : milestone, 776,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6165) - mean (92ms) : 90, 95
. : milestone, 92,
master - mean (93ms) : 89, 97
. : milestone, 93,
section CallTarget+Inlining+NGEN
This PR (6165) - mean (812ms) : crit, 797, 826
. : crit, milestone, 812,
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 (6165) - mean (191ms) : 187, 196
. : milestone, 191,
master - mean (190ms) : 187, 193
. : milestone, 190,
section CallTarget+Inlining+NGEN
This PR (6165) - mean (1,205ms) : 1184, 1226
. : milestone, 1205,
master - mean (1,193ms) : 1168, 1218
. : milestone, 1193,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6165) - mean (275ms) : 271, 279
. : milestone, 275,
master - mean (275ms) : 270, 279
. : milestone, 275,
section CallTarget+Inlining+NGEN
This PR (6165) - mean (1,034ms) : crit, 1017, 1050
. : crit, milestone, 1034,
master - mean (943ms) : 924, 961
. : milestone, 943,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Baseline
This PR (6165) - mean (264ms) : 260, 267
. : milestone, 264,
master - mean (264ms) : 260, 268
. : milestone, 264,
section CallTarget+Inlining+NGEN
This PR (6165) - mean (1,015ms) : crit, 998, 1032
. : crit, milestone, 1015,
master - mean (923ms) : 907, 938
. : milestone, 923,
|
Benchmarks Report for appsec 🐌Benchmarks for #6165 compared to master:
The following thresholds were used for comparing the benchmark speeds:
Allocation changes below 0.5% are ignored. Benchmark detailsBenchmarks.Trace.Asm.AppSecBodyBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecEncoderBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Asm.AppSecWafBenchmark - Same speed ✔️ Same allocations ✔️Raw results
Benchmarks.Trace.Iast.StringAspectsBenchmark - Same speed ✔️ More allocations
|
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark‑net472 | 58.41 KB | 60.41 KB | 2 KB | 3.42% |
| Benchmark | Base Allocated | Diff Allocated | Change | Change % |
|---|---|---|---|---|
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑netcoreapp3.1 | 254.48 KB | 251.89 KB | -2.59 KB | -1.02% |
| Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark‑net6.0 | 265.39 KB | 253.65 KB | -11.74 KB | -4.43% |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StringConcatBenchmark |
net6.0 | 63.1μs | 1.48μs | 14.4μs | 0 | 0 | 0 | 43.44 KB |
| master | StringConcatBenchmark |
netcoreapp3.1 | 61.7μs | 742ns | 7.42μs | 0 | 0 | 0 | 42.64 KB |
| master | StringConcatBenchmark |
net472 | 38.5μs | 179ns | 669ns | 0 | 0 | 0 | 58.41 KB |
| master | StringConcatAspectBenchmark |
net6.0 | 328μs | 1.78μs | 10.4μs | 0 | 0 | 0 | 265.39 KB |
| master | StringConcatAspectBenchmark |
netcoreapp3.1 | 355μs | 1.94μs | 12.7μs | 0 | 0 | 0 | 254.48 KB |
| master | StringConcatAspectBenchmark |
net472 | 291μs | 6.53μs | 63.4μs | 0 | 0 | 0 | 278.53 KB |
| #6165 | StringConcatBenchmark |
net6.0 | 61.9μs | 748ns | 7.33μs | 0 | 0 | 0 | 43.44 KB |
| #6165 | StringConcatBenchmark |
netcoreapp3.1 | 62.2μs | 986ns | 9.61μs | 0 | 0 | 0 | 42.64 KB |
| #6165 | StringConcatBenchmark |
net472 | 37.4μs | 104ns | 390ns | 0 | 0 | 0 | 60.41 KB |
| #6165 | StringConcatAspectBenchmark |
net6.0 | 300μs | 1.66μs | 9.66μs | 0 | 0 | 0 | 253.65 KB |
| #6165 | StringConcatAspectBenchmark |
netcoreapp3.1 | 333μs | 1.7μs | 10.7μs | 0 | 0 | 0 | 251.89 KB |
| #6165 | StringConcatAspectBenchmark |
net472 | 275μs | 4.46μs | 43.4μs | 0 | 0 | 0 | 278.53 KB |
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 (6165) (11.042M) : 0, 11042014
master (11.141M) : 0, 11140719
benchmarks/2.9.0 (11.081M) : 0, 11080577
section Automatic
This PR (6165) (7.187M) : 0, 7186588
master (7.280M) : 0, 7279870
benchmarks/2.9.0 (7.732M) : 0, 7732233
section Trace stats
master (7.669M) : 0, 7668885
section Manual
master (11.075M) : 0, 11074558
section Manual + Automatic
This PR (6165) (6.767M) : 0, 6767370
master (6.727M) : 0, 6727438
section DD_TRACE_ENABLED=0
master (10.143M) : 0, 10143410
gantt
title Throughput Linux arm64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6165) (9.410M) : 0, 9410018
master (9.575M) : 0, 9575114
benchmarks/2.9.0 (9.798M) : 0, 9798067
section Automatic
This PR (6165) (6.457M) : 0, 6456763
master (6.573M) : 0, 6573227
section Trace stats
master (6.889M) : 0, 6888898
section Manual
master (9.554M) : 0, 9554430
section Manual + Automatic
This PR (6165) (6.076M) : 0, 6075820
master (6.223M) : 0, 6222792
section DD_TRACE_ENABLED=0
master (8.834M) : 0, 8833554
gantt
title Throughput Windows x64 (Total requests)
dateFormat X
axisFormat %s
section Baseline
This PR (6165) (9.836M) : 0, 9836001
master (10.041M) : 0, 10040592
benchmarks/2.9.0 (10.067M) : 0, 10067315
section Automatic
This PR (6165) (6.500M) : 0, 6499784
master (6.448M) : 0, 6447976
benchmarks/2.9.0 (7.552M) : 0, 7552193
section Trace stats
master (7.067M) : 0, 7067450
section Manual
master (9.677M) : 0, 9676828
section Manual + Automatic
This PR (6165) (6.072M) : 0, 6071813
master (6.140M) : 0, 6140399
section DD_TRACE_ENABLED=0
master (9.137M) : 0, 9137058
|
Benchmarks Report for tracer 🐌Benchmarks for #6165 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 - Faster 🎉 Same allocations ✔️
|
| Benchmark | base/diff | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.ILoggerBenchmark.EnrichedLog‑net6.0 | 1.146 | 1,645.10 | 1,435.97 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net6.0 | 1.65μs | 1.65ns | 6.4ns | 0.0227 | 0 | 0 | 1.64 KB |
| master | EnrichedLog |
netcoreapp3.1 | 2.11μs | 0.716ns | 2.68ns | 0.0221 | 0 | 0 | 1.64 KB |
| master | EnrichedLog |
net472 | 2.68μs | 1.33ns | 5.17ns | 0.249 | 0 | 0 | 1.57 KB |
| #6165 | EnrichedLog |
net6.0 | 1.44μs | 1.11ns | 4.31ns | 0.023 | 0 | 0 | 1.64 KB |
| #6165 | EnrichedLog |
netcoreapp3.1 | 2.25μs | 1.13ns | 4.22ns | 0.0225 | 0 | 0 | 1.64 KB |
| #6165 | EnrichedLog |
net472 | 2.55μs | 1.46ns | 5.47ns | 0.249 | 0 | 0 | 1.57 KB |
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net6.0 | 116μs | 153ns | 594ns | 0.0579 | 0 | 0 | 4.28 KB |
| master | EnrichedLog |
netcoreapp3.1 | 122μs | 191ns | 741ns | 0 | 0 | 0 | 4.28 KB |
| master | EnrichedLog |
net472 | 149μs | 120ns | 466ns | 0.674 | 0.225 | 0 | 4.46 KB |
| #6165 | EnrichedLog |
net6.0 | 116μs | 215ns | 832ns | 0.058 | 0 | 0 | 4.28 KB |
| #6165 | EnrichedLog |
netcoreapp3.1 | 121μs | 191ns | 741ns | 0 | 0 | 0 | 4.28 KB |
| #6165 | EnrichedLog |
net472 | 151μs | 116ns | 449ns | 0.679 | 0.226 | 0 | 4.46 KB |
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net6.0 | 3.08μs | 0.781ns | 3.03ns | 0.031 | 0 | 0 | 2.2 KB |
| master | EnrichedLog |
netcoreapp3.1 | 4.16μs | 1.1ns | 4.25ns | 0.0291 | 0 | 0 | 2.2 KB |
| master | EnrichedLog |
net472 | 4.75μs | 2.05ns | 7.95ns | 0.321 | 0 | 0 | 2.02 KB |
| #6165 | EnrichedLog |
net6.0 | 3.03μs | 1.89ns | 7.33ns | 0.0311 | 0 | 0 | 2.2 KB |
| #6165 | EnrichedLog |
netcoreapp3.1 | 4.22μs | 1.38ns | 5.15ns | 0.0295 | 0 | 0 | 2.2 KB |
| #6165 | EnrichedLog |
net472 | 4.86μs | 7.21ns | 27.9ns | 0.318 | 0 | 0 | 2.02 KB |
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | SendReceive |
net6.0 | 1.34μs | 1.24ns | 4.82ns | 0.0161 | 0 | 0 | 1.14 KB |
| master | SendReceive |
netcoreapp3.1 | 1.7μs | 0.574ns | 2.15ns | 0.0146 | 0 | 0 | 1.14 KB |
| master | SendReceive |
net472 | 2.29μs | 0.971ns | 3.63ns | 0.183 | 0.00115 | 0 | 1.16 KB |
| #6165 | SendReceive |
net6.0 | 1.3μs | 0.78ns | 3.02ns | 0.0162 | 0 | 0 | 1.14 KB |
| #6165 | SendReceive |
netcoreapp3.1 | 1.74μs | 0.794ns | 2.97ns | 0.0157 | 0 | 0 | 1.14 KB |
| #6165 | SendReceive |
net472 | 2.22μs | 5.24ns | 20.3ns | 0.183 | 0 | 0 | 1.16 KB |
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | EnrichedLog |
net6.0 | 2.77μs | 1ns | 3.88ns | 0.0223 | 0 | 0 | 1.6 KB |
| master | EnrichedLog |
netcoreapp3.1 | 3.99μs | 1.67ns | 6.47ns | 0.0219 | 0 | 0 | 1.65 KB |
| master | EnrichedLog |
net472 | 4.47μs | 1.07ns | 4.14ns | 0.322 | 0 | 0 | 2.04 KB |
| #6165 | EnrichedLog |
net6.0 | 2.84μs | 1.1ns | 4.26ns | 0.0227 | 0 | 0 | 1.6 KB |
| #6165 | EnrichedLog |
netcoreapp3.1 | 3.89μs | 1.82ns | 7.03ns | 0.0213 | 0 | 0 | 1.65 KB |
| #6165 | EnrichedLog |
net472 | 4.32μs | 4.25ns | 16.5ns | 0.323 | 0 | 0 | 2.04 KB |
Benchmarks.Trace.SpanBenchmark - Slower ⚠️ Same allocations ✔️
Slower ⚠️ in #6165
Benchmark
diff/base
Base Median (ns)
Diff Median (ns)
Modality
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0
1.142
476.13
543.97
| Benchmark | diff/base | Base Median (ns) | Diff Median (ns) | Modality |
|---|---|---|---|---|
| Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 | 1.142 | 476.13 | 543.97 |
Raw results
| Branch | Method | Toolchain | Mean | StdError | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|---|---|---|---|---|---|---|---|---|---|
| master | StartFinishSpan |
net6.0 | 420ns | 0.237ns | 0.917ns | 0.00806 | 0 | 0 | 576 B |
| master | StartFinishSpan |
netcoreapp3.1 | 612ns | 0.556ns | 2.08ns | 0.00786 | 0 | 0 | 576 B |
| master | StartFinishSpan |
net472 | 706ns | 0.537ns | 2.08ns | 0.0918 | 0 | 0 | 578 B |
| master | StartFinishScope |
net6.0 | 476ns | 0.391ns | 1.52ns | 0.00976 | 0 | 0 | 696 B |
| master | StartFinishScope |
netcoreapp3.1 | 700ns | 0.817ns | 3.16ns | 0.00963 | 0 | 0 | 696 B |
| master | StartFinishScope |
net472 | 846ns | 0.938ns | 3.63ns | 0.104 | 0 | 0 | 658 B |
| #6165 | StartFinishSpan |
net6.0 | 399ns | 0.16ns | 0.62ns | 0.00811 | 0 | 0 | 576 B |
| #6165 | StartFinishSpan |
netcoreapp3.1 | 625ns | 0.458ns | 1.77ns | 0.00752 | 0 | 0 | 576 B |
| #6165 | StartFinishSpan |
net472 | 706ns | 1.09ns | 4.23ns | 0.0918 | 0 | 0 | 578 B |
| #6165 | StartFinishScope |
net6.0 | 544ns | 0.289ns | 1.12ns | 0.00984 | 0 | 0 | 696 B |
| #6165 | StartFinishScope |
netcoreapp3.1 | 725ns | 0.385ns | 1.44ns | 0.00906 | 0 | 0 | 696 B |
| #6165 | StartFinishScope |
net472 | 903ns | 0.495ns | 1.79ns | 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 | 587ns | 0.62ns | 2.4ns | 0.00967 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
netcoreapp3.1 | 880ns | 0.765ns | 2.86ns | 0.0092 | 0 | 0 | 696 B |
| master | RunOnMethodBegin |
net472 | 1.17μs | 1.09ns | 4.21ns | 0.105 | 0 | 0 | 658 B |
| #6165 | RunOnMethodBegin |
net6.0 | 582ns | 0.259ns | 0.933ns | 0.00964 | 0 | 0 | 696 B |
| #6165 | RunOnMethodBegin |
netcoreapp3.1 | 947ns | 0.557ns | 2.08ns | 0.00949 | 0 | 0 | 696 B |
| #6165 | RunOnMethodBegin |
net472 | 1.13μs | 0.172ns | 0.644ns | 0.104 | 0 | 0 | 658 B |
Summary of changes
Reason for change
Implementation details
Test coverage
Other details