Skip to content

[Debugger] Bound root filter capture expressions#8780

Merged
dudikeleti merged 8 commits into
masterfrom
dudik/bounded-capture-filters
Jun 17, 2026
Merged

[Debugger] Bound root filter capture expressions#8780
dudikeleti merged 8 commits into
masterfrom
dudik/bounded-capture-filters

Conversation

@dudikeleti

@dudikeleti dudikeleti commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

  • Adds bounded evaluation for root-level filter(...) capture expressions.
  • Wraps bounded filtered capture results in BoundedCaptureCollectionResult<T>, exposing:
    • WasTruncated
    • IsDictionary
    • Count
  • Updates snapshot serialization to emit notCapturedReason: "collectionSize" when a bounded filtered capture was truncated.
  • Preserves dictionary-shaped output for filtered dictionary captures by carrying dictionary metadata through the bounded result.
  • Optimizes direct root filter chains such as filter(filter(collection, p1), p2) by flattening them into one bounded enumeration with a combined predicate.

Reason for change

  • Capture expressions can currently materialize large filtered collections before snapshot serialization applies collection limits.
  • This can create unnecessary CPU and memory pressure when a probe captures filter(largeCollection, predicate) and only a small number of items can be serialized anyway.
  • The goal of this PR is to make root filtered capture output respect the capture collection limit during evaluation, while avoiding behavior changes for expressions whose result depends on exact filter semantics.

Implementation details

  • Bounding applies only to root-level capture expressions whose final expression is filter(...).
    • Example capped: capture expression filter(collection, predicate).
    • Example capped and optimized: capture expression filter(filter(collection, p1), p2).
  • Bounding does not apply to filters used inside semantic consumers, conditions, templates, or predicates.
    • len(filter(collection, predicate)) still evaluates the complete filtered collection so the count remains exact.
    • any(filter(collection, p1), p2) and all(filter(...), ...) keep existing exact semantics.
    • index(filter(...), key) keeps existing exact semantics.
    • Filters in probe conditions and templates are unchanged, because truncating them could change truth values or rendered output.
  • Direct root filter chains are flattened before bounded evaluation.
    • filter(filter(source, p1), p2) becomes one pass over source with p1 && p2.
    • Only the immediate source filter chain is flattened; filters nested under other source operators still materialize before those operators run.
    • For example, filter(index(filter(source, p1), 0), p2) keeps the inner index(filter(...), 0) semantics before bounding the root filter output.
    • This avoids materializing direct inner filtered collections while preserving existing behavior for semantic consumers.
  • The bounded helper enumerates the original source and stores at most MaxCollectionSize matching items.
    • It continues only until it sees one additional matching item.
    • That extra match is not stored; it only sets WasTruncated = true.
    • If no extra matching item exists, WasTruncated = false.
  • Snapshot serialization detects IBoundedCaptureCollectionResult.
    • If WasTruncated is true and serialization completes the bounded result, it emits notCapturedReason: "collectionSize" even when the wrapper count is below the normal serializer limit. If serialization is canceled before all bounded result items are written, timeout takes priority.
    • If IsDictionary is true, the result is serialized using dictionary/entry shape instead of normal collection element shape.
  • Performance considerations:
    • Runtime bounded filtering uses an explicit loop instead of LINQ iterator chains.
    • The result list is pre-sized from known collection counts when possible, capped at the capture limit.
    • New expression parser reflection lookups use the existing ProbeExpressionParserHelper cache; cache keys snapshot method signature arrays and precompute their hash for stable, cheap lookups.
    • Predicate compilation happens once while building the capture expression delegate, not per enumerated item.
    • No time-budget or cancellation behavior is introduced in this PR.

Test coverage

  • Added expression evaluator coverage for:
    • Root filtered capture truncating at the capture collection limit.
    • Root filtered capture under the capture collection limit not marking truncation.
    • Root filtered dictionary capture preserving dictionary metadata.
    • Direct root filter chains being bounded and preserving predicate behavior.
    • Nested index(filter(...), 0) under a bounded root filter source preserving materialized filter semantics.
    • Nested dictionary index(filter(...), 0).Value under a bounded root filter source preserving materialized filter semantics.
    • len(filter(...)) preserving exact nested filter semantics.
    • Bounded helper stopping after the limit plus one extra matching item.
  • Added snapshot serializer coverage for:
    • Bounded capture result with truncation emitting collectionSize.
    • Bounded capture result without truncation not emitting collectionSize.
    • Bounded truncated capture result canceled before all bounded items are serialized emitting timeout instead of collectionSize.

Local test runs:

  • DebuggerExpressionLanguageTests.ProbeExpressionEvaluator_CaptureExpressionRootFilter|DebuggerExpressionLanguageTests.ProbeExpressionEvaluator_LenOfFilter_KeepsExactSemantics|DebuggerExpressionLanguageTests.FilterEvaluationHelpers_FilterForCapture_StopsAfterLimitAndOneExtraMatch"
  • DebuggerSnapshotCreatorTests.Limits_BoundedCaptureCollectionResult|DebuggerSnapshotCreatorTests.CaptureExpressions_AreWrittenWithoutArgumentsOrLocals"
  • dotnet test "tracer/test/Datadog.Trace.Tests/Datadog.Trace.Tests.csproj" --no-restore --filter "FullyQualifiedName~DebuggerExpressionLanguageTests"

Other details

  • This PR intentionally does not implement a time budget for filter evaluation.
  • A follow-up PR can build on this bounded root-capture path to add time-budget handling separately.

@dudikeleti
dudikeleti requested a review from a team as a code owner June 11, 2026 10:55
@dudikeleti
dudikeleti requested review from Copilot and jpbempel and removed request for a team June 11, 2026 10:55
@datadog-datadog-prod-us1-2

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the debugger expression evaluator and snapshot serializer so that root-level capture expressions of the form filter(...) are evaluated with a bounded enumeration (respecting MaxCollectionSize) rather than materializing full filtered collections before serialization. It introduces a bounded result wrapper to carry truncation and dictionary-shape metadata through to snapshot JSON, and adds an optimization that flattens direct root filter chains into a single bounded pass with a combined predicate.

Changes:

  • Add bounded evaluation for root capture filter(...) expressions, returning BoundedCaptureCollectionResult<T> (implements IBoundedCaptureCollectionResult) with WasTruncated and dictionary-shape metadata.
  • Update snapshot serialization to recognize bounded results and emit notCapturedReason: "collectionSize" when the bounded evaluation truncated the capture.
  • Add/adjust unit tests for bounded filter capture behavior and serializer output, including root filter-chain flattening.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tracer/test/Datadog.Trace.Tests/Debugger/DebuggerSnapshotCreatorTests.cs Adds serializer tests for bounded truncation reason; updates helper to pass wasTruncated into serializer internals.
tracer/test/Datadog.Trace.Tests/Debugger/DebuggerExpressionLanguageTests.cs Adds evaluator tests for bounded root filter(...), dictionary metadata preservation, chain flattening, and exact semantics for len(filter(...)).
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.cs Prefers collectionSize not-captured reason when bounded results indicate truncation.
tracer/src/Datadog.Trace/Debugger/Snapshots/DebuggerSnapshotSerializer.CollectionDescriptors.cs Plumbs bounded result metadata into SupportedEnumerableInfo (count, dictionary-shape, truncation).
tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.cs Adds ParserContext + capture-limit plumbing and a dedicated ParseCaptureExpression(...) entrypoint.
tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs Implements bounded root-filter parsing, filter-chain flattening, and predicate combination.
tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionEvaluator.cs Uses ParseCaptureExpression(...) for capture expressions so root-level filter(...) can be bounded.
tracer/src/Datadog.Trace/Debugger/Expressions/ParserContext.cs Introduces parsing context enum to enable capture-expression-specific behavior.
tracer/src/Datadog.Trace/Debugger/Expressions/ParameterReplacingVisitor.cs Adds helper ExpressionVisitor for combining filter predicates safely.
tracer/src/Datadog.Trace/Debugger/Expressions/IBoundedCaptureCollectionResult.cs Defines interface for bounded collection results (count, truncation, dictionary-shape).
tracer/src/Datadog.Trace/Debugger/Expressions/FilterExpression.cs Adds internal expression node used to defer/filter-chain flattening.
tracer/src/Datadog.Trace/Debugger/Expressions/FilterEvaluationHelpers.cs Adds bounded filtering helper that stops after limit + 1 matching items.
tracer/src/Datadog.Trace/Debugger/Expressions/BoundedCaptureCollectionResult.cs Implements bounded collection wrapper used by root capture filter(...).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs Outdated

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

Copy link
Copy Markdown

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: 9f18516b89

ℹ️ 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 thread tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs Outdated
@dudikeleti
dudikeleti marked this pull request as draft June 11, 2026 11:08
@pr-commenter

pr-commenter Bot commented Jun 11, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-17 13:25:55

Comparing candidate commit 2d250e5 in PR branch dudik/bounded-capture-filters with baseline commit 2d3de8b in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 72 metrics, 0 unstable metrics, 60 known flaky benchmarks, 66 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 net472

  • 🟥 throughput [-6869.307op/s; -6408.213op/s] or [-8.145%; -7.598%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1

  • 🟥 throughput [-6438.689op/s; -5178.277op/s] or [-6.547%; -5.265%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+317.107ms; +324.003ms] or [+157.360%; +160.782%]
  • 🟥 throughput [-42.714op/s; -39.164op/s] or [-7.685%; -7.046%]

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

  • 🟥 execution_time [+375.868ms; +377.987ms] or [+296.959%; +298.633%]
  • 🟩 throughput [+97.755op/s; +101.412op/s] or [+12.889%; +13.371%]

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

  • 🟥 execution_time [+391.795ms; +393.278ms] or [+346.723%; +348.036%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.528%; +27.540%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-16.141ms; -11.938ms] or [-7.539%; -5.575%]
  • 🟩 throughput [+7912.449op/s; +10682.588op/s] or [+5.776%; +7.798%]

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

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

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-269468.519op/s; -265719.015op/s] or [-27.514%; -27.131%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.369ms; -21.508ms] or [-11.759%; -9.592%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-149802.075op/s; -133828.462op/s] or [-21.524%; -19.229%]

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

  • 🟩 throughput [+8840.857op/s; +11843.883op/s] or [+5.625%; +7.536%]

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

  • 🟩 throughput [+8555.814op/s; +11291.087op/s] or [+6.816%; +8.995%]

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

  • 🟩 throughput [+420551.485op/s; +458594.636op/s] or [+14.023%; +15.292%]

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

  • 🟩 execution_time [-18.323ms; -13.776ms] or [-8.446%; -6.350%]

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

  • 🟥 execution_time [+299.543ms; +300.290ms] or [+149.671%; +150.045%]

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

  • 🟥 execution_time [+298.175ms; +314.196ms] or [+150.371%; +158.450%]

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

  • 🟥 execution_time [+300.748ms; +304.100ms] or [+151.494%; +153.182%]

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

  • 🟥 execution_time [+296.688ms; +297.705ms] or [+145.722%; +146.221%]

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

  • 🟥 execution_time [+292.075ms; +293.935ms] or [+142.785%; +143.694%]

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

  • 🟥 execution_time [+300.629ms; +301.793ms] or [+150.254%; +150.836%]

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

  • 🟥 execution_time [+23.357µs; +47.217µs] or [+7.457%; +15.074%]
  • 🟥 throughput [-437.715op/s; -237.198op/s] or [-13.645%; -7.394%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.731ms; +300.611ms] or [+149.597%; +150.036%]

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

  • 🟥 execution_time [+414.296ms; +422.208ms] or [+450.150%; +458.746%]
  • 🟩 throughput [+824.777op/s; +1000.170op/s] or [+6.777%; +8.219%]

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

  • unstable execution_time [+300.107ms; +353.733ms] or [+227.868%; +268.586%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+327.968ms; +419.191ms] or [+150.796%; +192.740%]
  • 🟥 throughput [-566.692op/s; -507.957op/s] or [-51.348%; -46.026%]

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

  • unstable execution_time [+209.772ms; +342.989ms] or [+89.396%; +146.167%]
  • 🟥 throughput [-670.638op/s; -587.091op/s] or [-44.732%; -39.159%]

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

  • 🟥 execution_time [+334.807ms; +345.557ms] or [+200.253%; +206.683%]
  • 🟥 throughput [-406.627op/s; -369.893op/s] or [-28.313%; -25.755%]

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

  • 🟩 throughput [+56.431op/s; +130.064op/s] or [+6.084%; +14.024%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+301.169ms; +303.252ms] or [+151.663%; +152.712%]

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

  • 🟥 execution_time [+301.780ms; +303.147ms] or [+151.222%; +151.907%]

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

  • 🟥 execution_time [+301.613ms; +305.243ms] or [+151.518%; +153.341%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+303.257ms; +306.476ms] or [+152.286%; +153.902%]

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

  • 🟥 execution_time [+298.330ms; +300.268ms] or [+147.511%; +148.469%]

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

  • 🟥 execution_time [+302.179ms; +305.906ms] or [+153.157%; +155.046%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.188ms; +302.989ms] or [+151.169%; +152.073%]

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

  • 🟥 execution_time [+302.286ms; +304.331ms] or [+150.662%; +151.681%]
  • 🟩 throughput [+46441.705op/s; +52106.614op/s] or [+9.222%; +10.347%]

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

  • 🟥 execution_time [+298.937ms; +302.891ms] or [+148.719%; +150.686%]

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

  • 🟩 execution_time [-17.050ms; -13.396ms] or [-7.928%; -6.229%]

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

  • unstable execution_time [+9.454µs; +53.120µs] or [+2.335%; +13.121%]

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

  • 🟩 allocated_mem [-20.437KB; -20.412KB] or [-7.455%; -7.446%]
  • unstable execution_time [-49.398µs; +5.960µs] or [-9.763%; +1.178%]

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

  • unstable execution_time [-49.961µs; +13.171µs] or [-8.658%; +2.283%]
  • unstable throughput [-25.421op/s; +150.297op/s] or [-1.452%; +8.587%]

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

  • unstable execution_time [+7.630µs; +12.269µs] or [+18.035%; +28.999%]
  • 🟥 throughput [-5377.427op/s; -3501.709op/s] or [-22.637%; -14.741%]

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

  • unstable execution_time [-14.623µs; -6.847µs] or [-22.687%; -10.623%]
  • unstable throughput [+1756.487op/s; +3421.299op/s] or [+10.777%; +20.991%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.131ms; +303.591ms] or [+152.714%; +153.452%]

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

  • 🟥 execution_time [+302.309ms; +304.770ms] or [+153.875%; +155.127%]

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

  • 🟥 execution_time [+301.142ms; +303.594ms] or [+150.759%; +151.986%]

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

  • 🟩 throughput [+41898.247op/s; +45486.989op/s] or [+7.930%; +8.610%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.115ms; +302.845ms] or [+150.079%; +150.941%]

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

  • 🟥 execution_time [+301.164ms; +303.735ms] or [+151.230%; +152.521%]

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

  • 🟥 execution_time [+304.945ms; +308.348ms] or [+154.649%; +156.374%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.552ms; +300.569ms] or [+149.418%; +149.926%]
  • 🟩 throughput [+61054978.873op/s; +61406656.983op/s] or [+44.464%; +44.720%]

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

  • 🟥 execution_time [+421.613ms; +425.909ms] or [+524.351%; +529.693%]

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

  • 🟥 execution_time [+300.757ms; +301.942ms] or [+150.010%; +150.602%]
  • 🟩 throughput [+17949144.510op/s; +18922121.271op/s] or [+7.950%; +8.381%]

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

  • 🟩 throughput [+99500.269op/s; +107921.466op/s] or [+9.290%; +10.076%]

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

  • 🟩 throughput [+49457.906op/s; +69998.467op/s] or [+5.725%; +8.102%]

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

  • 🟩 throughput [+83403.419op/s; +93983.732op/s] or [+8.283%; +9.334%]

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

  • 🟩 throughput [+47245.830op/s; +51938.858op/s] or [+8.579%; +9.431%]

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

  • 🟩 throughput [+24189.362op/s; +34236.209op/s] or [+5.414%; +7.663%]

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

  • 🟩 throughput [+81808.938op/s; +100297.444op/s] or [+9.140%; +11.206%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • 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 netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • 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.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs:94

  • ReturnDefaultValueExpression() is called when the source evaluates to UndefinedValueType, but the result is not returned. This is a no-op (the return expression is discarded) and can lead to misleading follow-up errors (e.g., "Source must be an array...") instead of short-circuiting to the default return value.
            source = ParseTree(reader, parameters, outerItParameter);
            if (source.Type == ProbeExpressionParserHelper.UndefinedValueType)
            {
                ReturnDefaultValueExpression();
            }

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jun 11, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8780) 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
duration72.80 ± (72.88 - 73.21) ms74.33 ± (74.18 - 74.58) ms+2.1%✅⬆️
.NET Framework 4.8 - Bailout
duration78.73 ± (78.60 - 79.06) ms77.84 ± (77.82 - 78.16) ms-1.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1089.67 ± (1090.31 - 1096.10) ms1094.81 ± (1094.93 - 1102.64) ms+0.5%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.67 ± (22.62 - 22.73) ms22.68 ± (22.63 - 22.73) ms+0.0%✅⬆️
process.time_to_main_ms84.55 ± (84.29 - 84.82) ms85.40 ± (85.16 - 85.65) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.90 - 10.91) MB10.92 ± (10.92 - 10.92) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.69 ± (22.65 - 22.74) ms22.40 ± (22.35 - 22.45) ms-1.3%
process.time_to_main_ms86.52 ± (86.28 - 86.75) ms84.96 ± (84.79 - 85.13) ms-1.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.94 - 10.95) MB10.96 ± (10.95 - 10.96) MB+0.2%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms212.35 ± (211.47 - 213.24) ms214.97 ± (214.02 - 215.91) ms+1.2%✅⬆️
process.time_to_main_ms540.48 ± (539.22 - 541.73) ms540.81 ± (539.45 - 542.18) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.40 ± (48.36 - 48.44) MB48.37 ± (48.33 - 48.41) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.4%
.NET 6 - Baseline
process.internal_duration_ms21.68 ± (21.63 - 21.72) ms21.27 ± (21.23 - 21.30) ms-1.9%
process.time_to_main_ms74.69 ± (74.49 - 74.89) ms73.18 ± (73.03 - 73.34) ms-2.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.61 ± (10.61 - 10.61) MB10.65 ± (10.64 - 10.65) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.42 ± (21.37 - 21.47) ms21.41 ± (21.36 - 21.45) ms-0.1%
process.time_to_main_ms74.93 ± (74.73 - 75.13) ms75.57 ± (75.36 - 75.79) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.73) MB10.74 ± (10.74 - 10.74) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms372.85 ± (370.68 - 375.02) ms371.52 ± (369.44 - 373.60) ms-0.4%
process.time_to_main_ms546.05 ± (544.88 - 547.22) ms545.50 ± (544.35 - 546.64) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.89 ± (49.87 - 49.91) MB49.76 ± (49.74 - 49.79) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 8 - Baseline
process.internal_duration_ms19.45 ± (19.42 - 19.48) ms19.56 ± (19.52 - 19.60) ms+0.6%✅⬆️
process.time_to_main_ms72.16 ± (72.01 - 72.32) ms72.95 ± (72.75 - 73.14) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.68) MB7.67 ± (7.67 - 7.68) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.62 ± (19.57 - 19.66) ms19.34 ± (19.30 - 19.38) ms-1.4%
process.time_to_main_ms75.15 ± (74.94 - 75.36) ms72.74 ± (72.59 - 72.89) ms-3.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.71 ± (7.71 - 7.72) MB7.72 ± (7.71 - 7.73) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms294.61 ± (292.26 - 296.96) ms297.55 ± (295.60 - 299.51) ms+1.0%✅⬆️
process.time_to_main_ms495.06 ± (494.12 - 496.01) ms496.37 ± (495.43 - 497.30) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.87 ± (36.84 - 36.91) MB36.97 ± (36.94 - 36.99) MB+0.3%✅⬆️
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
duration199.04 ± (198.95 - 199.92) ms199.08 ± (198.78 - 199.46) ms+0.0%✅⬆️
.NET Framework 4.8 - Bailout
duration203.44 ± (203.31 - 204.25) ms203.07 ± (202.80 - 203.47) ms-0.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1189.58 ± (1189.07 - 1194.93) ms1199.85 ± (1199.08 - 1205.29) ms+0.9%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms191.35 ± (190.86 - 191.85) ms192.87 ± (192.47 - 193.27) ms+0.8%✅⬆️
process.time_to_main_ms82.74 ± (82.41 - 83.07) ms84.02 ± (83.79 - 84.25) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.13 ± (16.10 - 16.16) MB16.04 ± (16.01 - 16.07) MB-0.6%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.2%
.NET Core 3.1 - Bailout
process.internal_duration_ms193.66 ± (193.23 - 194.10) ms192.92 ± (192.47 - 193.37) ms-0.4%
process.time_to_main_ms85.28 ± (85.03 - 85.52) ms84.84 ± (84.58 - 85.09) ms-0.5%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.13 ± (16.10 - 16.16) MB16.15 ± (16.12 - 16.17) MB+0.1%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (20 - 21)-0.3%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms384.82 ± (383.48 - 386.16) ms387.92 ± (386.54 - 389.30) ms+0.8%✅⬆️
process.time_to_main_ms539.42 ± (538.01 - 540.84) ms540.56 ± (539.40 - 541.72) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.33 ± (57.16 - 57.49) MB57.99 ± (57.75 - 58.22) MB+1.2%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.8%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms196.48 ± (195.97 - 196.98) ms198.27 ± (197.83 - 198.71) ms+0.9%✅⬆️
process.time_to_main_ms72.29 ± (71.99 - 72.60) ms72.68 ± (72.43 - 72.93) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.37 ± (16.34 - 16.39) MB16.41 ± (16.38 - 16.44) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.8%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms195.14 ± (194.66 - 195.62) ms196.88 ± (196.57 - 197.18) ms+0.9%✅⬆️
process.time_to_main_ms72.65 ± (72.45 - 72.85) ms74.05 ± (73.85 - 74.26) ms+1.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.46 ± (16.43 - 16.48) MB16.48 ± (16.45 - 16.51) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms585.92 ± (583.37 - 588.47) ms586.65 ± (584.28 - 589.02) ms+0.1%✅⬆️
process.time_to_main_ms542.62 ± (541.68 - 543.57) ms546.98 ± (545.83 - 548.14) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.15 ± (61.06 - 61.24) MB61.23 ± (61.14 - 61.32) MB+0.1%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms194.67 ± (194.21 - 195.12) ms195.76 ± (195.37 - 196.15) ms+0.6%✅⬆️
process.time_to_main_ms71.75 ± (71.47 - 72.03) ms72.30 ± (72.01 - 72.60) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.70 ± (11.68 - 11.72) MB11.75 ± (11.73 - 11.77) MB+0.4%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.2%
.NET 8 - Bailout
process.internal_duration_ms194.53 ± (194.20 - 194.86) ms194.74 ± (194.29 - 195.18) ms+0.1%✅⬆️
process.time_to_main_ms72.52 ± (72.29 - 72.75) ms72.74 ± (72.52 - 72.96) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.79 ± (11.77 - 11.82) MB11.76 ± (11.74 - 11.78) MB-0.3%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms510.99 ± (508.42 - 513.56) ms515.11 ± (512.44 - 517.78) ms+0.8%✅⬆️
process.time_to_main_ms492.11 ± (491.24 - 492.98) ms493.10 ± (492.11 - 494.09) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.65 ± (50.61 - 50.69) MB50.69 ± (50.65 - 50.72) MB+0.1%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 30)+0.6%✅⬆️
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 (8780) - mean (74ms)  : 72, 77
    master - mean (73ms)  : 71, 75

    section Bailout
    This PR (8780) - mean (78ms)  : 76, 80
    master - mean (79ms)  : 75, 82

    section CallTarget+Inlining+NGEN
    This PR (8780) - mean (1,099ms)  : 1040, 1157
    master - mean (1,093ms)  : 1051, 1135

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 (8780) - mean (116ms)  : 110, 122
    master - mean (115ms)  : 109, 122

    section Bailout
    This PR (8780) - mean (115ms)  : 112, 118
    master - mean (117ms)  : 112, 122

    section CallTarget+Inlining+NGEN
    This PR (8780) - mean (793ms)  : 766, 820
    master - mean (788ms)  : 769, 808

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

    section Bailout
    This PR (8780) - mean (104ms)  : 100, 109
    master - mean (103ms)  : 100, 107

    section CallTarget+Inlining+NGEN
    This PR (8780) - mean (950ms)  : 910, 989
    master - mean (953ms)  : 916, 990

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8780) - mean (101ms)  : 96, 106
    master - mean (99ms)  : 96, 103

    section Bailout
    This PR (8780) - mean (101ms)  : 98, 103
    master - mean (103ms)  : 99, 106

    section CallTarget+Inlining+NGEN
    This PR (8780) - mean (823ms)  : 789, 858
    master - mean (819ms)  : 778, 861

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 (8780) - mean (199ms)  : 196, 203
    master - mean (199ms)  : 193, 206

    section Bailout
    This PR (8780) - mean (203ms)  : 200, 206
    master - mean (204ms)  : 199, 208

    section CallTarget+Inlining+NGEN
    This PR (8780) - mean (1,202ms)  : 1156, 1248
    master - mean (1,192ms)  : 1156, 1228

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 (8780) - mean (286ms)  : 281, 291
    master - mean (284ms)  : 277, 291

    section Bailout
    This PR (8780) - mean (287ms)  : 283, 292
    master - mean (289ms)  : 284, 294

    section CallTarget+Inlining+NGEN
    This PR (8780) - mean (967ms)  : 950, 984
    master - mean (966ms)  : 948, 985

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8780) - mean (280ms)  : 275, 286
    master - mean (278ms)  : 272, 285

    section Bailout
    This PR (8780) - mean (281ms)  : 277, 284
    master - mean (277ms)  : 269, 285

    section CallTarget+Inlining+NGEN
    This PR (8780) - mean (1,161ms)  : 1125, 1197
    master - mean (1,157ms)  : 1119, 1196

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8780) - mean (278ms)  : 273, 283
    master - mean (276ms)  : 268, 285

    section Bailout
    This PR (8780) - mean (278ms)  : 271, 285
    master - mean (277ms)  : 273, 281

    section CallTarget+Inlining+NGEN
    This PR (8780) - mean (1,039ms)  : 999, 1079
    master - mean (1,035ms)  : 995, 1076

Loading

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

@dudikeleti
dudikeleti marked this pull request as ready for review June 11, 2026 15:25
@dudikeleti
dudikeleti requested review from jpbempel and removed request for jpbempel June 11, 2026 15:25
@dudikeleti
dudikeleti force-pushed the dudik/bounded-capture-filters branch from 09a1d71 to 609168d Compare June 12, 2026 07:43
@dudikeleti
dudikeleti enabled auto-merge (squash) June 12, 2026 09:39
@dudikeleti
dudikeleti merged commit af21006 into master Jun 17, 2026
141 of 143 checks passed
@dudikeleti
dudikeleti deleted the dudik/bounded-capture-filters branch June 17, 2026 15:56
@github-actions github-actions Bot added this to the vNext-v3 milestone Jun 17, 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