Skip to content

[Profiler] Fix bug in managed code cache#8177

Merged
gleocadie merged 2 commits intomasterfrom
gleocadie/fix-managed-code-cache-x86-3
Feb 16, 2026
Merged

[Profiler] Fix bug in managed code cache#8177
gleocadie merged 2 commits intomasterfrom
gleocadie/fix-managed-code-cache-x86-3

Conversation

@gleocadie
Copy link
Collaborator

@gleocadie gleocadie commented Feb 9, 2026

Summary of changes

Fix a bug in the ManagedCodeCache.

Reason for change

This PR introduces the managed code cache. But a bug slipped into it(😱 )
This PR disabled the x86 tests to prevent from blocking others.

This PR fixes the issue.

Implementation details

  • beginAddress & endAddress actually represent the (module) code range but inclusive: endAddress it the last instruction pointer belonging to the function.
  • contains must take this into account.

Test coverage

Add unit tests

Other details

@github-actions github-actions bot added the area:profiler Issues related to the continous-profiler label Feb 9, 2026
@pr-commenter
Copy link

pr-commenter bot commented Feb 9, 2026

Benchmarks

Benchmark execution time: 2026-02-16 09:55:24

Comparing candidate commit 9421068 in PR branch gleocadie/fix-managed-code-cache-x86-3 with baseline commit f7897cd in branch master.

Found 8 performance improvements and 6 performance regressions! Performance is the same for 165 metrics, 13 unstable metrics.

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 execution_time [+21.236ms; +21.898ms] or [+21.146%; +21.806%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟩 execution_time [-87.694ms; -87.132ms] or [-44.049%; -43.766%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 throughput [-70125.951op/s; -64275.205op/s] or [-7.132%; -6.537%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟩 execution_time [-41.604ms; -37.046ms] or [-17.650%; -15.716%]
  • 🟩 throughput [+111.066op/s; +133.828op/s] or [+10.906%; +13.141%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟩 execution_time [-47.872ms; -43.933ms] or [-21.525%; -19.754%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟩 throughput [+365.599op/s; +397.849op/s] or [+26.639%; +28.989%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1

  • 🟩 execution_time [-944.417µs; -690.929µs] or [-34.193%; -25.016%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0

  • 🟥 execution_time [+100.034µs; +103.912µs] or [+5.190%; +5.391%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • 🟥 throughput [-4151.082op/s; -2076.791op/s] or [-17.428%; -8.719%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • 🟥 throughput [-3194.449op/s; -1384.859op/s] or [-15.199%; -6.589%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 throughput [-63626870.383op/s; -62696999.970op/s] or [-31.759%; -31.295%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1

  • 🟩 execution_time [-16.119ms; -12.358ms] or [-7.546%; -5.786%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • 🟩 throughput [+43624.461op/s; +45622.649op/s] or [+6.711%; +7.018%]

@dd-trace-dotnet-ci-bot
Copy link

dd-trace-dotnet-ci-bot bot commented Feb 9, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8177) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration69.12 ± (69.15 - 69.38) ms69.11 ± (69.07 - 69.34) ms-0.0%
.NET Framework 4.8 - Bailout
duration73.08 ± (72.98 - 73.22) ms73.02 ± (73.05 - 73.36) ms-0.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1039.27 ± (1039.31 - 1046.37) ms1032.11 ± (1036.27 - 1043.96) ms-0.7%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.34 ± (22.31 - 22.38) ms22.38 ± (22.34 - 22.43) ms+0.2%✅⬆️
process.time_to_main_ms87.44 ± (87.29 - 87.58) ms87.07 ± (86.93 - 87.20) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.48 ± (15.47 - 15.48) MB15.46 ± (15.46 - 15.47) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.16 ± (22.13 - 22.18) ms22.27 ± (22.25 - 22.29) ms+0.5%✅⬆️
process.time_to_main_ms88.58 ± (88.47 - 88.69) ms88.14 ± (88.01 - 88.27) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.52 ± (15.52 - 15.53) MB15.49 ± (15.49 - 15.49) MB-0.2%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms254.72 ± (251.63 - 257.82) ms254.39 ± (251.05 - 257.73) ms-0.1%
process.time_to_main_ms495.16 ± (494.62 - 495.70) ms493.21 ± (492.67 - 493.75) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed52.12 ± (52.10 - 52.15) MB52.08 ± (52.05 - 52.11) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms21.07 ± (21.04 - 21.10) ms21.02 ± (20.99 - 21.05) ms-0.2%
process.time_to_main_ms75.33 ± (75.18 - 75.49) ms75.18 ± (75.04 - 75.32) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.19 ± (15.19 - 15.19) MB15.17 ± (15.17 - 15.18) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.01 ± (20.98 - 21.04) ms20.97 ± (20.94 - 21.00) ms-0.2%
process.time_to_main_ms76.56 ± (76.43 - 76.70) ms76.40 ± (76.25 - 76.56) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.31 ± (15.30 - 15.31) MB15.29 ± (15.29 - 15.30) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms257.86 ± (257.18 - 258.54) ms257.10 ± (256.37 - 257.83) ms-0.3%
process.time_to_main_ms474.36 ± (473.77 - 474.95) ms475.43 ± (474.55 - 476.30) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed52.98 ± (52.95 - 53.01) MB53.00 ± (52.98 - 53.03) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 8 - Baseline
process.internal_duration_ms18.92 ± (18.90 - 18.95) ms18.87 ± (18.84 - 18.90) ms-0.3%
process.time_to_main_ms68.52 ± (68.39 - 68.64) ms68.10 ± (67.96 - 68.24) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.68 - 7.69) MB7.67 ± (7.66 - 7.68) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.94 ± (18.91 - 18.97) ms18.95 ± (18.92 - 18.98) ms+0.1%✅⬆️
process.time_to_main_ms69.46 ± (69.36 - 69.56) ms69.39 ± (69.27 - 69.52) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.76 ± (7.74 - 7.77) MB7.72 ± (7.71 - 7.72) MB-0.5%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms179.91 ± (179.02 - 180.79) ms179.24 ± (178.39 - 180.08) ms-0.4%
process.time_to_main_ms430.94 ± (430.12 - 431.75) ms429.14 ± (428.50 - 429.78) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed35.89 ± (35.85 - 35.92) MB35.90 ± (35.87 - 35.93) MB+0.0%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.4%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration190.62 ± (190.67 - 191.39) ms191.13 ± (191.02 - 191.94) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration194.48 ± (194.31 - 194.91) ms194.63 ± (194.40 - 194.99) ms+0.1%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1128.34 ± (1132.74 - 1141.99) ms1127.32 ± (1131.74 - 1139.90) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms189.14 ± (188.84 - 189.43) ms189.68 ± (189.30 - 190.06) ms+0.3%✅⬆️
process.time_to_main_ms87.52 ± (87.28 - 87.75) ms87.91 ± (87.63 - 88.19) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed20.71 ± (20.68 - 20.74) MB20.62 ± (20.60 - 20.65) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.4%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms188.35 ± (188.05 - 188.65) ms188.67 ± (188.33 - 189.01) ms+0.2%✅⬆️
process.time_to_main_ms88.35 ± (88.24 - 88.47) ms88.60 ± (88.45 - 88.74) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed20.83 ± (20.81 - 20.86) MB20.78 ± (20.74 - 20.81) MB-0.3%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (20 - 21)-0.9%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms435.52 ± (433.03 - 438.01) ms438.71 ± (435.79 - 441.63) ms+0.7%✅⬆️
process.time_to_main_ms491.57 ± (491.08 - 492.05) ms492.77 ± (492.34 - 493.21) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed62.42 ± (62.30 - 62.53) MB62.62 ± (62.50 - 62.73) MB+0.3%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.0%
.NET 6 - Baseline
process.internal_duration_ms189.15 ± (188.85 - 189.45) ms189.01 ± (188.66 - 189.36) ms-0.1%
process.time_to_main_ms69.66 ± (69.51 - 69.81) ms69.59 ± (69.43 - 69.76) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.94 ± (15.78 - 16.11) MB15.89 ± (15.72 - 16.05) MB-0.4%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.4%
.NET 6 - Bailout
process.internal_duration_ms187.96 ± (187.73 - 188.20) ms188.71 ± (188.36 - 189.06) ms+0.4%✅⬆️
process.time_to_main_ms70.30 ± (70.22 - 70.37) ms70.74 ± (70.59 - 70.89) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.85 ± (15.68 - 16.02) MB15.98 ± (15.81 - 16.15) MB+0.9%✅⬆️
runtime.dotnet.threads.count19 ± (18 - 19)19 ± (19 - 19)+2.3%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms441.56 ± (438.67 - 444.45) ms445.51 ± (443.29 - 447.72) ms+0.9%✅⬆️
process.time_to_main_ms444.24 ± (443.67 - 444.82) ms444.70 ± (444.23 - 445.17) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.24 ± (58.09 - 58.39) MB58.07 ± (57.96 - 58.19) MB-0.3%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.2%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms190.13 ± (189.75 - 190.52) ms189.09 ± (188.82 - 189.37) ms-0.5%
process.time_to_main_ms75.25 ± (75.05 - 75.46) ms74.70 ± (74.52 - 74.88) ms-0.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.27 ± (16.24 - 16.30) MB16.32 ± (16.28 - 16.35) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.6%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms189.74 ± (189.50 - 189.98) ms189.51 ± (189.11 - 189.90) ms-0.1%
process.time_to_main_ms76.10 ± (76.02 - 76.18) ms76.24 ± (76.09 - 76.38) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.36 ± (16.33 - 16.39) MB16.38 ± (16.35 - 16.41) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms369.87 ± (368.44 - 371.30) ms368.50 ± (367.15 - 369.84) ms-0.4%
process.time_to_main_ms453.71 ± (453.03 - 454.39) ms453.42 ± (452.69 - 454.16) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed52.24 ± (52.21 - 52.27) MB52.21 ± (52.18 - 52.24) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.1%✅⬆️
Comparison explanation

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 highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

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).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (69ms)  : 68, 71
    master - mean (69ms)  : 68, 71

    section Bailout
    This PR (8177) - mean (73ms)  : 72, 75
    master - mean (73ms)  : 72, 74

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (1,040ms)  : 986, 1095
    master - mean (1,043ms)  : 993, 1093

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (116ms)  : 113, 119
    master - mean (116ms)  : 112, 120

    section Bailout
    This PR (8177) - mean (116ms)  : 115, 118
    master - mean (117ms)  : 115, 118

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (771ms)  : 707, 835
    master - mean (787ms)  : 732, 842

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (102ms)  : 99, 104
    master - mean (102ms)  : 99, 105

    section Bailout
    This PR (8177) - mean (103ms)  : 101, 105
    master - mean (103ms)  : 101, 106

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (761ms)  : 738, 784
    master - mean (767ms)  : 743, 791

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (93ms)  : 91, 96
    master - mean (94ms)  : 91, 97

    section Bailout
    This PR (8177) - mean (95ms)  : 93, 97
    master - mean (95ms)  : 93, 96

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (636ms)  : 619, 654
    master - mean (639ms)  : 624, 654

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (191ms)  : 187, 196
    master - mean (191ms)  : 188, 194

    section Bailout
    This PR (8177) - mean (195ms)  : 192, 197
    master - mean (195ms)  : 192, 197

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (1,136ms)  : 1077, 1195
    master - mean (1,137ms)  : 1070, 1204

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (286ms)  : 279, 293
    master - mean (285ms)  : 281, 290

    section Bailout
    This PR (8177) - mean (285ms)  : 281, 290
    master - mean (285ms)  : 281, 289

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (961ms)  : 921, 1002
    master - mean (958ms)  : 918, 999

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (267ms)  : 262, 272
    master - mean (267ms)  : 263, 271

    section Bailout
    This PR (8177) - mean (267ms)  : 263, 272
    master - mean (266ms)  : 263, 269

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (918ms)  : 885, 951
    master - mean (917ms)  : 882, 951

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (274ms)  : 269, 278
    master - mean (276ms)  : 270, 281

    section Bailout
    This PR (8177) - mean (276ms)  : 270, 281
    master - mean (275ms)  : 272, 278

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (854ms)  : 835, 873
    master - mean (854ms)  : 830, 877

Loading

@gleocadie gleocadie marked this pull request as ready for review February 9, 2026 11:53
@gleocadie gleocadie requested a review from a team as a code owner February 9, 2026 11:53
Copy link
Contributor

@chrisnas chrisnas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gleocadie gleocadie force-pushed the gleocadie/fix-managed-code-cache-x86-3 branch from ee4fb57 to 0127852 Compare February 9, 2026 18:22
@dd-trace-dotnet-ci-bot
Copy link

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8177) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration78.83 ± (78.76 - 79.09) ms78.37 ± (78.29 - 78.70) ms-0.6%
.NET Framework 4.8 - Bailout
duration83.84 ± (83.72 - 84.15) ms83.31 ± (83.04 - 83.44) ms-0.6%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1123.18 ± (1120.70 - 1127.37) ms1119.91 ± (1117.52 - 1122.70) ms-0.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms24.72 ± (24.65 - 24.78) ms24.73 ± (24.67 - 24.79) ms+0.0%✅⬆️
process.time_to_main_ms102.28 ± (102.06 - 102.50) ms101.43 ± (101.18 - 101.69) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.53 ± (15.53 - 15.54) MB15.54 ± (15.54 - 15.55) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms24.74 ± (24.67 - 24.81) ms24.64 ± (24.58 - 24.70) ms-0.4%
process.time_to_main_ms104.79 ± (104.55 - 105.04) ms103.78 ± (103.52 - 104.05) ms-1.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.58 ± (15.58 - 15.59) MB15.57 ± (15.57 - 15.58) MB-0.1%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms293.02 ± (290.97 - 295.07) ms294.34 ± (292.76 - 295.92) ms+0.5%✅⬆️
process.time_to_main_ms563.69 ± (562.85 - 564.54) ms562.52 ± (561.56 - 563.48) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed53.12 ± (53.09 - 53.14) MB53.16 ± (53.14 - 53.18) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.4%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms23.31 ± (23.24 - 23.37) ms23.19 ± (23.12 - 23.25) ms-0.5%
process.time_to_main_ms88.78 ± (88.57 - 89.00) ms88.32 ± (88.09 - 88.56) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.24 ± (15.24 - 15.24) MB15.26 ± (15.25 - 15.26) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms23.33 ± (23.28 - 23.39) ms23.06 ± (23.00 - 23.12) ms-1.2%
process.time_to_main_ms90.91 ± (90.66 - 91.15) ms89.85 ± (89.61 - 90.10) ms-1.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed15.37 ± (15.36 - 15.37) MB15.37 ± (15.37 - 15.37) MB+0.0%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms280.05 ± (278.82 - 281.28) ms279.95 ± (278.87 - 281.03) ms-0.0%
process.time_to_main_ms534.35 ± (533.41 - 535.28) ms534.56 ± (533.74 - 535.38) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed53.94 ± (53.92 - 53.96) MB53.88 ± (53.86 - 53.91) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms21.52 ± (21.46 - 21.58) ms21.24 ± (21.18 - 21.29) ms-1.3%
process.time_to_main_ms88.06 ± (87.83 - 88.28) ms86.85 ± (86.63 - 87.07) ms-1.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed12.31 ± (12.30 - 12.31) MB12.27 ± (12.27 - 12.28) MB-0.3%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms21.45 ± (21.40 - 21.51) ms21.45 ± (21.39 - 21.52) ms-0.0%
process.time_to_main_ms89.56 ± (89.39 - 89.74) ms89.88 ± (89.66 - 90.10) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed12.35 ± (12.34 - 12.36) MB12.32 ± (12.31 - 12.32) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms204.00 ± (203.15 - 204.86) ms204.23 ± (203.27 - 205.19) ms+0.1%✅⬆️
process.time_to_main_ms514.75 ± (513.38 - 516.11) ms512.82 ± (511.77 - 513.86) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed41.67 ± (41.63 - 41.70) MB41.70 ± (41.66 - 41.75) MB+0.1%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.2%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration210.37 ± (210.25 - 212.14) ms207.74 ± (207.72 - 209.18) ms-1.3%
.NET Framework 4.8 - Bailout
duration211.53 ± (210.66 - 212.04) ms212.38 ± (212.71 - 214.50) ms+0.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1201.46 ± (1203.41 - 1211.88) ms1218.56 ± (1218.24 - 1225.83) ms+1.4%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms203.80 ± (203.10 - 204.51) ms208.51 ± (207.63 - 209.39) ms+2.3%✅⬆️
process.time_to_main_ms94.82 ± (94.46 - 95.17) ms97.48 ± (97.00 - 97.97) ms+2.8%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed20.68 ± (20.66 - 20.69) MB20.53 ± (20.52 - 20.55) MB-0.7%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms203.59 ± (202.93 - 204.25) ms206.21 ± (205.44 - 206.99) ms+1.3%✅⬆️
process.time_to_main_ms96.13 ± (95.74 - 96.51) ms97.73 ± (97.32 - 98.15) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed20.66 ± (20.64 - 20.67) MB20.61 ± (20.60 - 20.63) MB-0.2%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.1%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms465.03 ± (462.05 - 468.00) ms467.18 ± (464.07 - 470.30) ms+0.5%✅⬆️
process.time_to_main_ms546.53 ± (544.76 - 548.31) ms543.53 ± (542.31 - 544.75) ms-0.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed62.52 ± (62.36 - 62.68) MB62.66 ± (62.50 - 62.83) MB+0.2%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 30)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms218.66 ± (217.98 - 219.34) ms210.15 ± (209.56 - 210.74) ms-3.9%
process.time_to_main_ms87.65 ± (87.31 - 88.00) ms82.92 ± (82.61 - 83.23) ms-5.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed20.73 ± (20.72 - 20.75) MB20.81 ± (20.79 - 20.83) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.9%
.NET 6 - Bailout
process.internal_duration_ms220.00 ± (219.39 - 220.61) ms210.57 ± (209.97 - 211.17) ms-4.3%
process.time_to_main_ms90.42 ± (90.00 - 90.84) ms84.21 ± (83.97 - 84.45) ms-6.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed20.79 ± (20.77 - 20.80) MB20.86 ± (20.85 - 20.88) MB+0.4%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.3%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms489.53 ± (487.39 - 491.67) ms483.26 ± (481.38 - 485.14) ms-1.3%
process.time_to_main_ms520.98 ± (519.65 - 522.30) ms512.78 ± (511.88 - 513.68) ms-1.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed62.32 ± (62.22 - 62.42) MB62.50 ± (62.41 - 62.60) MB+0.3%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 8 - Baseline
process.internal_duration_ms214.42 ± (213.32 - 215.52) ms207.96 ± (207.37 - 208.55) ms-3.0%
process.time_to_main_ms83.98 ± (83.63 - 84.34) ms81.43 ± (81.20 - 81.66) ms-3.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.18 ± (16.16 - 16.20) MB16.22 ± (16.20 - 16.24) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.2%
.NET 8 - Bailout
process.internal_duration_ms214.14 ± (213.12 - 215.15) ms207.78 ± (207.23 - 208.33) ms-3.0%
process.time_to_main_ms85.35 ± (84.99 - 85.71) ms83.02 ± (82.78 - 83.26) ms-2.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.19 ± (16.18 - 16.21) MB16.30 ± (16.28 - 16.31) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.2%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms456.61 ± (449.10 - 464.12) ms452.36 ± (444.98 - 459.75) ms-0.9%
process.time_to_main_ms511.78 ± (510.73 - 512.84) ms496.00 ± (495.30 - 496.71) ms-3.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed55.06 ± (54.98 - 55.13) MB55.10 ± (55.06 - 55.13) MB+0.1%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.2%
Comparison explanation

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 highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

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).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (78ms)  : 76, 81
    master - mean (79ms)  : 77, 81

    section Bailout
    This PR (8177) - mean (83ms)  : 81, 86
    master - mean (84ms)  : 81, 87

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (1,120ms)  : 1083, 1157
    master - mean (1,124ms)  : 1075, 1173

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (135ms)  : 129, 141
    master - mean (136ms)  : 132, 140

    section Bailout
    This PR (8177) - mean (137ms)  : 132, 142
    master - mean (138ms)  : 134, 142

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (897ms)  : 858, 935
    master - mean (897ms)  : 859, 936

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (120ms)  : 114, 125
    master - mean (120ms)  : 115, 125

    section Bailout
    This PR (8177) - mean (121ms)  : 116, 125
    master - mean (122ms)  : 118, 126

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (856ms)  : 826, 887
    master - mean (854ms)  : 826, 882

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (117ms)  : 113, 121
    master - mean (119ms)  : 114, 123

    section Bailout
    This PR (8177) - mean (120ms)  : 117, 124
    master - mean (120ms)  : 118, 123

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (762ms)  : 742, 782
    master - mean (762ms)  : 740, 783

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (208ms)  : 198, 219
    master - mean (211ms)  : 196, 226

    section Bailout
    This PR (8177) - mean (214ms)  : 200, 227
    master - mean (211ms)  : 201, 221

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (1,222ms)  : 1168, 1276
    master - mean (1,208ms)  : 1143, 1273

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (318ms)  : 297, 339
    master - mean (310ms)  : 295, 325

    section Bailout
    This PR (8177) - mean (316ms)  : 297, 334
    master - mean (311ms)  : 296, 327

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (1,050ms)  : 992, 1109
    master - mean (1,056ms)  : 1003, 1110

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (304ms)  : 289, 318
    master - mean (318ms)  : 301, 335

    section Bailout
    This PR (8177) - mean (305ms)  : 296, 315
    master - mean (322ms)  : 307, 337

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (1,040ms)  : 994, 1086
    master - mean (1,058ms)  : 1012, 1104

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8177) - mean (301ms)  : 290, 313
    master - mean (312ms)  : 292, 331

    section Bailout
    This PR (8177) - mean (303ms)  : 292, 313
    master - mean (313ms)  : 291, 335

    section CallTarget+Inlining+NGEN
    This PR (8177) - mean (989ms)  : 882, 1097
    master - mean (1,017ms)  : 908, 1126

Loading

@gleocadie gleocadie force-pushed the gleocadie/fix-managed-code-cache-x86-3 branch 2 times, most recently from 2012326 to bd4926f Compare February 10, 2026 20:15
@gleocadie gleocadie force-pushed the gleocadie/fix-managed-code-cache-x86-3 branch from bd4926f to 9421068 Compare February 16, 2026 09:13
@gleocadie gleocadie merged commit 5972c84 into master Feb 16, 2026
145 of 147 checks passed
@gleocadie gleocadie deleted the gleocadie/fix-managed-code-cache-x86-3 branch February 16, 2026 12:08
@github-actions github-actions bot added this to the vNext-v3 milestone Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:profiler Issues related to the continous-profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants