Skip to content

[Dynamic instrumentation] DEBUG-3321 Fix malformed local var sig parsing in PDB reader#8532

Merged
dudikeleti merged 3 commits intomasterfrom
dudik/fix-localvarsig-reading
Apr 29, 2026
Merged

[Dynamic instrumentation] DEBUG-3321 Fix malformed local var sig parsing in PDB reader#8532
dudikeleti merged 3 commits intomasterfrom
dudik/fix-localvarsig-reading

Conversation

@dudikeleti
Copy link
Copy Markdown
Contributor

Summary of changes

Harden DatadogMetadataReader so malformed or truncated local variable signatures are treated as best-effort misses instead of throwing.
Add focused regression tests for both valid and truncated local signatures in DatadogMetadataReaderTests.

Reason for change

Some customer assemblies appear to contain malformed local variable signature metadata.
In the debugger metadata path, that could surface as Failed to obtain local variable names from PDB with BadImageFormatException, even though local names are best-effort metadata.

Implementation details

The local signature parser now validates the blob shape before reading the compressed local count.
Invalid or truncated signatures now fall back to 0 locals instead of propagating an exception through the debugger local-name lookup flow.

Test coverage

Added unit coverage for:
a valid local variable signature
a truncated local variable signature
in DatadogMetadataReaderTests

@dudikeleti dudikeleti requested review from a team as code owners April 28, 2026 11:47
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2bbdd9790

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +229 to +231
if (TryReadLocalVariablesCount(ref blobReader, out var variableCount))
{
return variableCount;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate the full local signature before returning a count

When a malformed LocalVarSig still has a valid count byte (for example, 07 01 but no following type entry), this branch returns a positive count. GetLocalSymbols then continues to signature.Value.DecodeLocalSignature(...) outside this protected block and still throws BadImageFormatException, so the PDB metadata path remains non-best-effort for truncated signatures past the count. Consider validating/decoding the full local signature under the guarded path before trusting the count.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Apr 28, 2026

Benchmarks

Benchmark execution time: 2026-04-29 14:28:17

Comparing candidate commit 9c34a41 in PR branch dudik/fix-localvarsig-reading with baseline commit bc123ee in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 63 known flaky benchmarks, 24 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0

  • 🟩 throughput [+11344.724op/s; +13653.135op/s] or [+9.536%; +11.476%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+305.603ms; +309.829ms] or [+151.651%; +153.748%]
  • 🟥 throughput [-48.978op/s; -44.643op/s] or [-8.812%; -8.032%]

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

  • 🟥 execution_time [+381.080ms; +382.500ms] or [+301.077%; +302.198%]
  • 🟩 throughput [+92.764op/s; +96.215op/s] or [+12.231%; +12.686%]

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

  • 🟥 execution_time [+394.090ms; +396.983ms] or [+348.755%; +351.315%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-16.185ms; -12.008ms] or [-7.559%; -5.608%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.502%; +27.510%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • 🟥 throughput [-269411.823op/s; -265982.624op/s] or [-27.508%; -27.158%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-24.376ms; -19.104ms] or [-10.870%; -8.520%]
  • 🟥 throughput [-75229.151op/s; -51289.063op/s] or [-8.037%; -5.479%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • 🟥 throughput [-138629.705op/s; -122388.427op/s] or [-19.918%; -17.585%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0

  • 🟩 throughput [+8970.189op/s; +12003.016op/s] or [+5.708%; +7.637%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟩 throughput [+357452.387op/s; +398841.344op/s] or [+11.919%; +13.299%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-18.501ms; -14.141ms] or [-8.528%; -6.519%]
  • 🟩 throughput [+156114.580op/s; +209667.516op/s] or [+6.197%; +8.322%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net472

  • 🟥 execution_time [+299.803ms; +300.416ms] or [+149.801%; +150.108%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net6.0

  • 🟥 execution_time [+298.982ms; +302.195ms] or [+150.778%; +152.397%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs netcoreapp3.1

  • 🟥 execution_time [+299.906ms; +302.425ms] or [+151.070%; +152.338%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net472

  • 🟥 execution_time [+296.947ms; +297.630ms] or [+145.848%; +146.184%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • 🟥 execution_time [+295.951ms; +298.725ms] or [+144.680%; +146.036%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+301.647ms; +303.342ms] or [+150.763%; +151.610%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0

  • 🟥 execution_time [+28.180µs; +55.302µs] or [+6.463%; +12.684%]
  • 🟥 throughput [-266.057op/s; -144.311op/s] or [-11.567%; -6.274%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net6.0

  • 🟥 execution_time [+21.787µs; +45.400µs] or [+6.956%; +14.494%]
  • 🟥 throughput [-423.284op/s; -224.581op/s] or [-13.195%; -7.001%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.656ms; +300.343ms] or [+149.559%; +149.902%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • unstable execution_time [+374.890ms; +408.555ms] or [+407.333%; +443.912%]
  • 🟩 throughput [+1178.530op/s; +1328.417op/s] or [+9.684%; +10.916%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • unstable execution_time [+277.746ms; +322.545ms] or [+210.890%; +244.905%]
  • 🟩 throughput [+622.000op/s; +825.450op/s] or [+6.021%; +7.991%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.884KB; +2.889KB] or [+5.125%; +5.133%]
  • unstable execution_time [+276.733ms; +311.866ms] or [+127.239%; +143.393%]
  • 🟥 throughput [-508.613op/s; -478.354op/s] or [-46.085%; -43.344%]

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

  • unstable execution_time [+182.758ms; +319.505ms] or [+77.884%; +136.160%]
  • 🟥 throughput [-679.780op/s; -596.087op/s] or [-45.342%; -39.759%]

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

  • 🟥 execution_time [+342.878ms; +351.366ms] or [+205.081%; +210.157%]
  • 🟥 throughput [-392.179op/s; -356.275op/s] or [-27.307%; -24.807%]

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

  • unstable throughput [-4.211op/s; +53.388op/s] or [-0.786%; +9.965%]

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

  • 🟩 execution_time [-194.860µs; -172.406µs] or [-9.871%; -8.733%]
  • 🟩 throughput [+49.271op/s; +55.653op/s] or [+9.727%; +10.986%]

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

  • 🟩 throughput [+12.969op/s; +38.028op/s] or [+5.114%; +14.996%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+303.778ms; +305.402ms] or [+152.977%; +153.795%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • 🟥 execution_time [+301.644ms; +303.191ms] or [+151.154%; +151.930%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • 🟥 execution_time [+301.764ms; +304.861ms] or [+151.593%; +153.149%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+302.154ms; +303.234ms] or [+151.732%; +152.274%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net6.0

  • 🟥 execution_time [+299.110ms; +301.012ms] or [+147.897%; +148.837%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync netcoreapp3.1

  • 🟥 execution_time [+303.096ms; +306.623ms] or [+153.622%; +155.410%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+302.406ms; +303.603ms] or [+151.781%; +152.382%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net6.0

  • 🟥 execution_time [+298.722ms; +300.919ms] or [+148.885%; +149.980%]
  • 🟩 throughput [+54673.902op/s; +60247.932op/s] or [+10.856%; +11.963%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • 🟥 execution_time [+298.870ms; +301.572ms] or [+148.685%; +150.029%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-16.895ms; -13.237ms] or [-7.856%; -6.155%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472

  • unstable execution_time [+4.662µs; +45.515µs] or [+1.152%; +11.242%]

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

  • 🟩 allocated_mem [-19.893KB; -19.872KB] or [-7.257%; -7.249%]
  • unstable execution_time [-50.469µs; +1.660µs] or [-9.975%; +0.328%]

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

  • 🟩 allocated_mem [-18.527KB; -18.511KB] or [-6.754%; -6.748%]

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

  • 🟥 execution_time [+5.913µs; +10.028µs] or [+13.977%; +23.702%]
  • 🟥 throughput [-4542.274op/s; -2765.929op/s] or [-19.122%; -11.644%]

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

  • unstable execution_time [-14.228µs; -7.020µs] or [-22.075%; -10.891%]
  • 🟩 throughput [+1831.499op/s; +3354.448op/s] or [+11.237%; +20.581%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.680ms; +302.969ms] or [+152.486%; +153.137%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+303.579ms; +305.699ms] or [+154.521%; +155.600%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+297.109ms; +300.222ms] or [+148.740%; +150.298%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0

  • 🟩 throughput [+32769.201op/s; +37776.900op/s] or [+6.203%; +7.150%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.985ms; +302.551ms] or [+150.014%; +150.794%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+302.093ms; +303.289ms] or [+151.697%; +152.297%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+303.906ms; +306.535ms] or [+154.122%; +155.455%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.149ms; +300.708ms] or [+149.716%; +149.995%]
  • 🟩 throughput [+61105845.657op/s; +61337490.177op/s] or [+44.501%; +44.670%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net6.0

  • unstable execution_time [+402.300ms; +419.395ms] or [+500.331%; +521.592%]
  • 🟩 throughput [+1061.771op/s; +1240.377op/s] or [+8.208%; +9.589%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • 🟥 execution_time [+299.519ms; +300.500ms] or [+149.393%; +149.882%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • 🟩 throughput [+93658.350op/s; +103570.264op/s] or [+8.745%; +9.670%]

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

  • 🟩 throughput [+52052.823op/s; +71257.529op/s] or [+6.025%; +8.248%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • 🟥 throughput [-65073.098op/s; -60554.150op/s] or [-5.957%; -5.543%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0

  • 🟩 throughput [+72616.405op/s; +103654.375op/s] or [+5.621%; +8.023%]

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

  • 🟩 throughput [+85699.410op/s; +93248.337op/s] or [+8.511%; +9.261%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • 🟩 throughput [+53230.222op/s; +58014.863op/s] or [+9.666%; +10.534%]

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

  • 🟩 throughput [+27404.367op/s; +37014.060op/s] or [+6.134%; +8.285%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0

  • 🟩 throughput [+74015.421op/s; +94272.888op/s] or [+8.269%; +10.533%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@dudikeleti dudikeleti force-pushed the dudik/fix-localvarsig-reading branch from 607c657 to 2855f6c Compare April 28, 2026 22:15
@dudikeleti dudikeleti enabled auto-merge (squash) April 28, 2026 22:18
@dd-trace-dotnet-ci-bot
Copy link
Copy Markdown

dd-trace-dotnet-ci-bot Bot commented Apr 28, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8532) 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
duration75.75 ± (75.56 - 76.07) ms72.59 ± (72.64 - 73.05) ms-4.2%
.NET Framework 4.8 - Bailout
duration78.63 ± (78.59 - 79.09) ms76.52 ± (76.31 - 76.73) ms-2.7%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1080.55 ± (1077.44 - 1085.09) ms1070.21 ± (1070.05 - 1077.29) ms-1.0%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.96 ± (22.89 - 23.03) ms22.58 ± (22.53 - 22.63) ms-1.7%
process.time_to_main_ms88.18 ± (87.83 - 88.53) ms85.76 ± (85.50 - 86.02) ms-2.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.91) MB10.91 ± (10.91 - 10.92) MB+0.0%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.42 ± (22.38 - 22.45) ms22.33 ± (22.30 - 22.37) ms-0.4%
process.time_to_main_ms85.79 ± (85.59 - 85.99) ms85.94 ± (85.73 - 86.14) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.88 - 10.89) MB10.94 ± (10.93 - 10.94) MB+0.5%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms214.21 ± (213.41 - 215.01) ms212.87 ± (211.82 - 213.93) ms-0.6%
process.time_to_main_ms529.00 ± (527.64 - 530.37) ms527.99 ± (526.27 - 529.70) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed47.85 ± (47.82 - 47.88) MB47.92 ± (47.88 - 47.95) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.67 ± (21.60 - 21.73) ms21.56 ± (21.50 - 21.63) ms-0.5%
process.time_to_main_ms76.00 ± (75.67 - 76.32) ms76.26 ± (75.94 - 76.58) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.62) MB10.64 ± (10.64 - 10.64) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.42 ± (21.36 - 21.47) ms21.13 ± (21.09 - 21.17) ms-1.3%
process.time_to_main_ms75.15 ± (74.90 - 75.40) ms74.66 ± (74.47 - 74.85) ms-0.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.72 - 10.73) MB10.75 ± (10.75 - 10.76) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms380.48 ± (378.49 - 382.47) ms380.49 ± (378.56 - 382.43) ms+0.0%✅⬆️
process.time_to_main_ms529.95 ± (528.70 - 531.21) ms531.52 ± (530.23 - 532.80) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.18 ± (49.15 - 49.20) MB49.38 ± (49.35 - 49.41) MB+0.4%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.57 ± (19.54 - 19.61) ms19.44 ± (19.41 - 19.48) ms-0.7%
process.time_to_main_ms72.97 ± (72.82 - 73.13) ms73.35 ± (73.16 - 73.54) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.68) MB7.67 ± (7.66 - 7.67) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms20.00 ± (19.95 - 20.06) ms19.89 ± (19.84 - 19.95) ms-0.6%
process.time_to_main_ms76.75 ± (76.45 - 77.05) ms77.28 ± (77.01 - 77.56) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.73 ± (7.73 - 7.74) MB7.71 ± (7.71 - 7.72) MB-0.3%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms299.46 ± (297.27 - 301.65) ms301.11 ± (298.72 - 303.49) ms+0.5%✅⬆️
process.time_to_main_ms491.31 ± (490.23 - 492.39) ms493.62 ± (492.36 - 494.87) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.49 ± (36.46 - 36.51) MB36.57 ± (36.54 - 36.60) MB+0.2%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.0%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration203.19 ± (203.30 - 204.63) ms202.96 ± (203.35 - 204.61) ms-0.1%
.NET Framework 4.8 - Bailout
duration206.72 ± (206.65 - 207.75) ms206.99 ± (206.78 - 207.93) ms+0.1%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1204.13 ± (1204.12 - 1211.12) ms1200.00 ± (1199.63 - 1206.52) ms-0.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms197.31 ± (196.69 - 197.92) ms198.14 ± (197.48 - 198.80) ms+0.4%✅⬆️
process.time_to_main_ms85.66 ± (85.33 - 85.99) ms85.92 ± (85.61 - 86.22) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.06 ± (16.04 - 16.08) MB16.04 ± (16.02 - 16.05) MB-0.1%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+1.2%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms196.71 ± (196.16 - 197.27) ms197.14 ± (196.49 - 197.80) ms+0.2%✅⬆️
process.time_to_main_ms86.88 ± (86.65 - 87.12) ms87.09 ± (86.77 - 87.40) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.09 ± (16.07 - 16.10) MB16.06 ± (16.04 - 16.08) MB-0.2%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.1%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms394.37 ± (393.12 - 395.62) ms394.71 ± (393.28 - 396.14) ms+0.1%✅⬆️
process.time_to_main_ms535.10 ± (533.86 - 536.33) ms536.27 ± (534.78 - 537.76) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.53 ± (58.41 - 58.66) MB58.15 ± (57.99 - 58.30) MB-0.7%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms201.71 ± (201.16 - 202.25) ms202.51 ± (201.84 - 203.19) ms+0.4%✅⬆️
process.time_to_main_ms74.24 ± (73.98 - 74.49) ms74.48 ± (74.20 - 74.75) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.29 ± (16.27 - 16.31) MB16.31 ± (16.29 - 16.33) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.2%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms201.03 ± (200.47 - 201.60) ms202.43 ± (201.75 - 203.11) ms+0.7%✅⬆️
process.time_to_main_ms75.21 ± (74.98 - 75.43) ms76.01 ± (75.72 - 76.30) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.34 ± (16.32 - 16.36) MB16.27 ± (16.25 - 16.29) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.1%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms593.14 ± (590.35 - 595.93) ms598.84 ± (596.62 - 601.05) ms+1.0%✅⬆️
process.time_to_main_ms534.30 ± (533.12 - 535.47) ms538.19 ± (536.86 - 539.52) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed60.90 ± (60.80 - 61.01) MB61.14 ± (61.05 - 61.23) MB+0.4%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms199.26 ± (198.80 - 199.72) ms201.11 ± (200.49 - 201.74) ms+0.9%✅⬆️
process.time_to_main_ms73.53 ± (73.29 - 73.77) ms73.78 ± (73.53 - 74.03) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.62 ± (11.61 - 11.64) MB11.57 ± (11.56 - 11.59) MB-0.4%
runtime.dotnet.threads.count19 ± (18 - 19)19 ± (19 - 19)+0.3%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms196.86 ± (196.37 - 197.35) ms200.08 ± (199.54 - 200.62) ms+1.6%✅⬆️
process.time_to_main_ms73.95 ± (73.76 - 74.14) ms75.14 ± (74.91 - 75.38) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.69 ± (11.67 - 11.71) MB11.64 ± (11.62 - 11.65) MB-0.4%
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (20 - 20)+1.4%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms517.49 ± (514.73 - 520.26) ms516.29 ± (512.88 - 519.69) ms-0.2%
process.time_to_main_ms489.46 ± (488.40 - 490.53) ms496.51 ± (495.25 - 497.77) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.19 ± (50.15 - 50.22) MB50.13 ± (50.09 - 50.17) MB-0.1%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+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 (8532) - mean (73ms)  : 70, 76
    master - mean (76ms)  : 72, 79

    section Bailout
    This PR (8532) - mean (77ms)  : 74, 79
    master - mean (79ms)  : 75, 82

    section CallTarget+Inlining+NGEN
    This PR (8532) - mean (1,074ms)  : 1019, 1128
    master - mean (1,081ms)  : 1024, 1138

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 (8532) - mean (115ms)  : 110, 121
    master - mean (118ms)  : 112, 125

    section Bailout
    This PR (8532) - mean (115ms)  : 112, 118
    master - mean (115ms)  : 112, 118

    section CallTarget+Inlining+NGEN
    This PR (8532) - mean (777ms)  : 754, 800
    master - mean (780ms)  : 755, 805

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

    section Bailout
    This PR (8532) - mean (102ms)  : 99, 105
    master - mean (103ms)  : 98, 108

    section CallTarget+Inlining+NGEN
    This PR (8532) - mean (941ms)  : 912, 970
    master - mean (939ms)  : 900, 977

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8532) - mean (101ms)  : 97, 104
    master - mean (101ms)  : 96, 105

    section Bailout
    This PR (8532) - mean (105ms)  : 100, 111
    master - mean (105ms)  : 99, 110

    section CallTarget+Inlining+NGEN
    This PR (8532) - mean (825ms)  : 785, 865
    master - mean (824ms)  : 783, 864

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 (8532) - mean (204ms)  : 195, 213
    master - mean (204ms)  : 194, 214

    section Bailout
    This PR (8532) - mean (207ms)  : 199, 216
    master - mean (207ms)  : 199, 215

    section CallTarget+Inlining+NGEN
    This PR (8532) - mean (1,203ms)  : 1154, 1252
    master - mean (1,208ms)  : 1156, 1259

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 (8532) - mean (295ms)  : 278, 311
    master - mean (293ms)  : 280, 306

    section Bailout
    This PR (8532) - mean (296ms)  : 278, 314
    master - mean (294ms)  : 283, 305

    section CallTarget+Inlining+NGEN
    This PR (8532) - mean (967ms)  : 930, 1003
    master - mean (966ms)  : 929, 1002

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8532) - mean (288ms)  : 273, 302
    master - mean (286ms)  : 272, 299

    section Bailout
    This PR (8532) - mean (290ms)  : 271, 310
    master - mean (286ms)  : 273, 299

    section CallTarget+Inlining+NGEN
    This PR (8532) - mean (1,167ms)  : 1125, 1208
    master - mean (1,158ms)  : 1114, 1202

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8532) - mean (286ms)  : 273, 300
    master - mean (283ms)  : 273, 292

    section Bailout
    This PR (8532) - mean (287ms)  : 275, 299
    master - mean (281ms)  : 273, 289

    section CallTarget+Inlining+NGEN
    This PR (8532) - mean (1,046ms)  : 995, 1096
    master - mean (1,040ms)  : 991, 1089

Loading

@dudikeleti dudikeleti force-pushed the dudik/fix-localvarsig-reading branch from 2855f6c to 9c34a41 Compare April 29, 2026 13:17
@dudikeleti dudikeleti merged commit 26249cd into master Apr 29, 2026
142 checks passed
@dudikeleti dudikeleti deleted the dudik/fix-localvarsig-reading branch April 29, 2026 21:19
@github-actions github-actions Bot added this to the vNext-v3 milestone Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants