Skip to content

[DSM] Guard against future timestamps when extracting pathway context#8672

Merged
andrewlock merged 6 commits into
masterfrom
andrew/data-streams-unbounded-growth
May 22, 2026
Merged

[DSM] Guard against future timestamps when extracting pathway context#8672
andrewlock merged 6 commits into
masterfrom
andrew/data-streams-unbounded-growth

Conversation

@andrewlock

Copy link
Copy Markdown
Member

Summary of changes

Guards against future timestamps when extracting pathwayContext and calculating pathwayLatencyNs

Reason for change

We decode the dd-pathway-ctx from inbound headers, and use the decoded PathwayStart to compute pathwayLatencyNs. This is then used to calculate an originTimestamp and is added to _originBuckets. We then only flush _originBuckets for which the start time is <= the current bucket window.

If a "future" timestamp ends up in PathwayStart, then we would end up with that future bucket never being flushed and accumulating. This PR guards against those future timestamps so we don't end up with unbounded growth.

Implementation details

Add two guards:

  • In SetCheckpoint, guard against generating negative pathwayLatencyNs or edgeLatencyNs
  • In PathwayContextEncoder.Decode, reject data points with a "future" PathwayStart time
    • Using a tolerance here of 60s to make sure clock skew issues don't bite us. I think that number seems reasonable, but open to suggestions.
    • I was initially concerned about daylight savings etc, but given we're using UTC for all of this, that shouldn't be an issue

Test coverage

Added a bunch of additional unit tests around this.

@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented May 21, 2026

Copy link
Copy Markdown

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/apm-reliability/dd-trace-dotnet | check-big-regressions   View in Datadog   GitLab

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: a8e05f0 | Docs | Datadog PR Page | Give us feedback!

@vandonr vandonr 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.

approving with minor comments

Comment thread tracer/src/Datadog.Trace/DataStreamsMonitoring/DataStreamsManager.cs Outdated
/// Tolerance (in nanoseconds) applied when validating that decoded pathway/edge timestamps
/// are not in the future. Allows for normal clock drift between hosts.
/// </summary>
internal const long MaxClockSkewNs = 60L * 1_000_000_000L;

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.

yeah idk I'd have used something more loose like 5 minutes, but really this is wet finger engineering

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, exactly, I'm fine with 5 minutes too 🤷‍♂️ I don't know if it's something we have actually observed in practice, so we probably don't have any data to go on either 🤷‍♂️

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.

if only we had observability :trollface:

Comment thread tracer/src/Datadog.Trace/DataStreamsMonitoring/DataStreamsManager.cs Outdated
Comment thread tracer/src/Datadog.Trace/DataStreamsMonitoring/DataStreamsManager.cs Outdated
@pr-commenter

pr-commenter Bot commented May 21, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-21 15:37:36

Comparing candidate commit a8e05f0 in PR branch andrew/data-streams-unbounded-growth with baseline commit ba7828b in branch master.

Some scenarios are present only in baseline or only in candidate runs. If you didn't create or remove some scenarios in your branch, this maybe a sign of crashed benchmarks 💥💥💥
Check Gitlab CI job log to find if any benchmark has crashed.

Scenarios present only in baseline:

  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

Found 8 performance improvements and 12 performance regressions! Performance is the same for 45 metrics, 7 unstable metrics, 92 known flaky benchmarks, 34 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 ----------------------------------'

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan net6.0

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+6.738%; +6.746%]
  • 🟥 throughput [-100205.522op/s; -94830.246op/s] or [-35.943%; -34.015%]
  • 🟩 execution_time [-75.951ms; -73.096ms] or [-37.856%; -36.433%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan netcoreapp3.1

  • 🟩 execution_time [-113.294ms; -111.673ms] or [-56.331%; -55.525%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartRootSpan net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • 🟥 throughput [-108352.643op/s; -93112.782op/s] or [-40.302%; -34.633%]
  • 🟩 execution_time [-70.652ms; -54.255ms] or [-35.237%; -27.059%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan net6.0

  • 🟥 allocated_mem [+95 bytes; +96 bytes] or [+6.738%; +6.746%]
  • 🟥 throughput [-93677.167op/s; -90559.714op/s] or [-34.465%; -33.318%]
  • 🟩 execution_time [-69.392ms; -50.838ms] or [-34.681%; -25.408%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_GetCurrentSpan net6.0

  • 🟥 throughput [-115064.701op/s; -99742.145op/s] or [-42.388%; -36.743%]
  • 🟩 execution_time [-70.390ms; -53.136ms] or [-35.022%; -26.438%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_GetCurrentSpan netcoreapp3.1

  • 🟩 execution_time [-115.684ms; -113.842ms] or [-57.299%; -56.386%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_SetActive net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+7.889%; +7.898%]
  • 🟥 throughput [-145185.664op/s; -125772.355op/s] or [-57.329%; -49.663%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_SetActive netcoreapp3.1

  • 🟩 execution_time [-111.613ms; -109.428ms] or [-55.685%; -54.595%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5984.634op/s; -5418.732op/s] or [-6.832%; -6.186%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net6.0

  • 🟥 throughput [-78805.417op/s; -72312.157op/s] or [-53.534%; -49.123%]

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

  • 🟥 throughput [-35213.181op/s; -30784.249op/s] or [-17.656%; -15.435%]
  • 🟩 execution_time [-83.984ms; -79.890ms] or [-42.473%; -40.403%]

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.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0

  • unstable execution_time [-61.061ms; -28.574ms] or [-30.475%; -14.261%]
  • 🟥 throughput [-138365.078op/s; -115083.627op/s] or [-47.229%; -39.282%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1

  • unstable execution_time [-80.721ms; -50.640ms] or [-40.248%; -25.249%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0

  • 🟩 execution_time [-78.790ms; -76.326ms] or [-39.190%; -37.965%]
  • 🟥 throughput [-100470.405op/s; -96309.367op/s] or [-38.553%; -36.956%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • 🟩 execution_time [-111.273ms; -110.028ms] or [-55.305%; -54.687%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0

  • unstable execution_time [-57.319ms; -35.933ms] or [-28.597%; -17.927%]
  • 🟥 throughput [-138032.140op/s; -117408.597op/s] or [-48.367%; -41.141%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • 🟩 execution_time [-112.523ms; -111.658ms] or [-56.116%; -55.685%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • 🟩 execution_time [-59.891ms; -46.242ms] or [-29.805%; -23.012%]
  • 🟥 throughput [-104909.074op/s; -94927.586op/s] or [-45.487%; -41.159%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • 🟩 execution_time [-109.176ms; -107.859ms] or [-54.600%; -53.941%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0

  • unstable execution_time [-40.936ms; +0.877ms] or [-20.413%; +0.437%]
  • unstable throughput [-147191.085op/s; -117340.892op/s] or [-51.177%; -40.798%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • unstable execution_time [-101.683ms; -76.272ms] or [-50.862%; -38.151%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0

  • unstable execution_time [-52.231ms; -20.178ms] or [-26.058%; -10.067%]
  • unstable throughput [-140847.985op/s; -102589.924op/s] or [-46.818%; -34.101%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • 🟩 execution_time [-113.984ms; -112.221ms] or [-56.703%; -55.826%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472

  • 🟥 throughput [-14638.069op/s; -13082.069op/s] or [-7.640%; -6.828%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • 🟩 execution_time [-73.991ms; -72.163ms] or [-36.830%; -35.920%]
  • 🟥 throughput [-105064.115op/s; -97827.035op/s] or [-38.032%; -35.413%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1

  • unstable execution_time [-102.071ms; -76.442ms] or [-50.975%; -38.176%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0

  • unstable execution_time [-42.422ms; -21.144ms] or [-21.192%; -10.563%]
  • 🟥 throughput [-125357.513op/s; -109044.821op/s] or [-50.225%; -43.689%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • 🟩 execution_time [-112.616ms; -110.766ms] or [-56.179%; -55.256%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • unstable execution_time [-55.663ms; -34.722ms] or [-27.702%; -17.280%]
  • 🟥 throughput [-94595.825op/s; -71675.078op/s] or [-34.267%; -25.964%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • 🟩 execution_time [-113.323ms; -111.950ms] or [-56.465%; -55.780%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+5.487%; +5.496%]
  • unstable execution_time [-83.657ms; -60.165ms] or [-41.711%; -29.998%]
  • unstable throughput [-63798.600op/s; -45643.028op/s] or [-36.472%; -26.093%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1

  • 🟩 execution_time [-112.545ms; -110.963ms] or [-56.434%; -55.641%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+7.434%; +7.442%]
  • 🟩 execution_time [-42.800ms; -25.686ms] or [-21.342%; -12.808%]
  • 🟥 throughput [-114416.355op/s; -103735.422op/s] or [-51.949%; -47.099%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • 🟩 execution_time [-110.169ms; -108.734ms] or [-54.944%; -54.229%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0

  • 🟩 execution_time [-66.306ms; -50.346ms] or [-33.118%; -25.146%]
  • 🟥 throughput [-127460.607op/s; -114529.968op/s] or [-47.675%; -42.839%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • unstable execution_time [-82.181ms; -51.140ms] or [-41.024%; -25.529%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0

  • unstable execution_time [-64.517ms; -29.790ms] or [-32.231%; -14.882%]
  • 🟥 throughput [-131595.856op/s; -110297.369op/s] or [-46.875%; -39.288%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • 🟩 execution_time [-113.355ms; -112.289ms] or [-56.332%; -55.802%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-7213.630op/s; -6374.444op/s] or [-8.553%; -7.558%]

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

  • unstable execution_time [-70.900ms; -50.637ms] or [-35.372%; -25.263%]
  • 🟥 throughput [-44209.675op/s; -32838.665op/s] or [-37.160%; -27.602%]

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

  • unstable execution_time [-90.283ms; -67.564ms] or [-45.410%; -33.983%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+312.618ms; +327.998ms] or [+155.132%; +162.764%]
  • 🟥 throughput [-58.619op/s; -45.314op/s] or [-10.547%; -8.153%]

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

  • unstable execution_time [+157.502ms; +229.083ms] or [+124.436%; +180.989%]
  • unstable throughput [-132.837op/s; -12.308op/s] or [-17.514%; -1.623%]

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

  • 🟥 execution_time [+82.913ms; +83.618ms] or [+73.375%; +73.999%]

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 [+439 bytes; +440 bytes] or [+9.299%; +9.310%]
  • 🟩 execution_time [-64.658ms; -46.894ms] or [-30.198%; -21.901%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • 🟩 execution_time [-88.161ms; -83.854ms] or [-41.982%; -39.930%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-267240.175op/s; -262612.479op/s] or [-27.287%; -26.814%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • 🟩 execution_time [-108.879ms; -88.094ms] or [-48.555%; -39.286%]
  • unstable throughput [-150670.124op/s; -55897.426op/s] or [-16.096%; -5.972%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟩 execution_time [-76.033ms; -57.081ms] or [-37.952%; -28.492%]
  • 🟥 throughput [-132502.470op/s; -115631.965op/s] or [-19.038%; -16.614%]

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

  • unstable throughput [-35093.674op/s; -19374.876op/s] or [-22.330%; -12.328%]

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

  • 🟩 execution_time [-61.281ms; -44.915ms] or [-31.243%; -22.900%]
  • 🟩 throughput [+8848.664op/s; +11495.543op/s] or [+7.049%; +9.158%]

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

  • unstable execution_time [-59.244ms; -38.326ms] or [-29.292%; -18.950%]
  • unstable throughput [-225342.771op/s; +130271.103op/s] or [-7.514%; +4.344%]

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

  • 🟩 execution_time [-47.125ms; -25.601ms] or [-21.723%; -11.801%]
  • 🟩 throughput [+164773.064op/s; +223333.532op/s] or [+6.540%; +8.865%]

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

  • 🟥 execution_time [+300.814ms; +314.664ms] or [+150.307%; +157.227%]

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

  • unstable execution_time [+147.645ms; +187.037ms] or [+74.458%; +94.323%]

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

  • unstable execution_time [+258.512ms; +295.548ms] or [+130.218%; +148.874%]

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

  • 🟥 execution_time [+299.769ms; +313.328ms] or [+147.235%; +153.895%]

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

  • 🟥 execution_time [+240.429ms; +256.333ms] or [+117.537%; +125.312%]

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

  • 🟥 execution_time [+302.598ms; +308.836ms] or [+151.238%; +154.356%]

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

  • 🟥 execution_time [+23.055µs; +46.682µs] or [+7.360%; +14.903%]
  • 🟥 throughput [-434.207op/s; -235.408op/s] or [-13.536%; -7.338%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.524ms; +301.375ms] or [+149.992%; +150.417%]

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

  • unstable execution_time [+355.053ms; +376.090ms] or [+385.780%; +408.638%]
  • 🟥 throughput [-7074.091op/s; -6853.940op/s] or [-58.129%; -56.320%]

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

  • unstable execution_time [+282.099ms; +333.538ms] or [+214.195%; +253.253%]
  • 🟥 throughput [-1802.826op/s; -1558.031op/s] or [-17.453%; -15.083%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+298.253ms; +314.916ms] or [+137.134%; +144.795%]
  • 🟥 throughput [-683.913op/s; -666.041op/s] or [-61.969%; -60.350%]

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

  • unstable execution_time [-44.973ms; +89.063ms] or [-19.166%; +37.955%]
  • 🟥 throughput [-715.781op/s; -621.597op/s] or [-47.743%; -41.461%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+341.675ms; +350.583ms] or [+204.361%; +209.689%]
  • 🟥 throughput [-723.564op/s; -689.499op/s] or [-50.381%; -48.009%]

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

  • 🟩 execution_time [-173.935µs; -154.594µs] or [-8.811%; -7.831%]
  • 🟩 throughput [+43.278op/s; +49.063op/s] or [+8.543%; +9.685%]

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

  • 🟩 throughput [+12.976op/s; +15.608op/s] or [+5.117%; +6.155%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+301.569ms; +313.535ms] or [+151.865%; +157.890%]

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

  • 🟥 execution_time [+241.431ms; +253.097ms] or [+120.982%; +126.827%]

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

  • 🟥 execution_time [+301.812ms; +308.872ms] or [+151.617%; +155.164%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+303.006ms; +317.302ms] or [+152.160%; +159.338%]

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

  • unstable execution_time [+140.883ms; +179.979ms] or [+69.661%; +88.992%]

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

  • 🟥 execution_time [+302.576ms; +309.350ms] or [+153.359%; +156.792%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+304.323ms; +317.139ms] or [+152.743%; +159.175%]

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

  • 🟥 execution_time [+304.712ms; +313.149ms] or [+151.871%; +156.076%]
  • 🟩 throughput [+41008.878op/s; +50568.350op/s] or [+8.143%; +10.041%]

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

  • 🟥 execution_time [+301.908ms; +308.382ms] or [+150.196%; +153.417%]

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

  • unstable execution_time [-40.384ms; -8.642ms] or [-18.779%; -4.019%]
  • unstable throughput [-176671.086op/s; -132813.672op/s] or [-48.466%; -36.434%]

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

  • unstable execution_time [-70.973ms; -43.899ms] or [-35.601%; -22.020%]

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

  • 🟩 allocated_mem [-26.616KB; -26.593KB] or [-9.709%; -9.700%]
  • unstable execution_time [-67.837µs; -10.128µs] or [-13.408%; -2.002%]
  • unstable throughput [+61.934op/s; +275.553op/s] or [+3.091%; +13.750%]

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

  • 🟥 allocated_mem [+8.190KB; +8.196KB] or [+16.663%; +16.675%]

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

  • unstable execution_time [+4.287µs; +9.104µs] or [+10.133%; +21.518%]
  • 🟥 throughput [-4084.530op/s; -2128.429op/s] or [-17.195%; -8.960%]

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

  • unstable execution_time [-12.295µs; -2.631µs] or [-19.075%; -4.082%]
  • unstable throughput [+857.260op/s; +2815.374op/s] or [+5.260%; +17.273%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.796ms; +311.180ms] or [+151.533%; +157.288%]

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

  • 🟥 execution_time [+302.939ms; +305.188ms] or [+154.195%; +155.340%]

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

  • 🟥 execution_time [+302.900ms; +307.955ms] or [+151.639%; +154.170%]

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

  • unstable execution_time [-71.480ms; -46.351ms] or [-35.729%; -23.168%]
  • unstable throughput [-186973.590op/s; -125307.320op/s] or [-35.390%; -23.718%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1

  • unstable execution_time [-31.502ms; -6.117ms] or [-15.968%; -3.101%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.043ms; +314.328ms] or [+149.544%; +156.664%]

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

  • unstable execution_time [+256.631ms; +289.996ms] or [+128.868%; +145.622%]

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

  • 🟥 execution_time [+301.534ms; +306.946ms] or [+152.919%; +155.663%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.433ms; +301.251ms] or [+149.857%; +150.266%]
  • 🟩 throughput [+64824443.352op/s; +65117588.253op/s] or [+47.209%; +47.423%]

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

  • unstable execution_time [+365.459ms; +375.324ms] or [+454.513%; +466.783%]
  • 🟥 throughput [-7480.713op/s; -7294.428op/s] or [-57.830%; -56.390%]

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

  • 🟥 execution_time [+301.335ms; +302.819ms] or [+150.299%; +151.039%]
  • 🟥 throughput [-29916268.764op/s; -28917986.544op/s] or [-13.251%; -12.809%]

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

  • unstable execution_time [-94.139ms; -71.556ms] or [-46.107%; -35.047%]
  • unstable throughput [-119352.657op/s; +2768.464op/s] or [-11.144%; +0.258%]

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

  • unstable execution_time [-55.581ms; -28.272ms] or [-28.124%; -14.306%]
  • 🟩 throughput [+53705.903op/s; +73273.169op/s] or [+6.216%; +8.481%]

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

  • unstable execution_time [-81.133ms; -60.499ms] or [-42.271%; -31.520%]
  • unstable throughput [-128624.533op/s; +13908.343op/s] or [-9.956%; +1.077%]

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

  • unstable execution_time [-77.098ms; -49.893ms] or [-37.880%; -24.513%]
  • 🟩 throughput [+77677.430op/s; +92011.577op/s] or [+7.715%; +9.138%]

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

  • unstable execution_time [-54.696ms; -29.980ms] or [-27.315%; -14.972%]
  • unstable throughput [-165237.750op/s; -91428.214op/s] or [-30.004%; -16.602%]

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

  • 🟩 execution_time [-99.170ms; -95.063ms] or [-49.827%; -47.763%]

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

  • 🟩 execution_time [-108.833ms; -105.238ms] or [-54.436%; -52.638%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

  • unstable execution_time [-52.232ms; -23.908ms] or [-26.528%; -12.143%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • 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 net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8672) 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.82 ± (72.88 - 73.30) ms73.37 ± (73.53 - 73.99) ms+0.8%✅⬆️
.NET Framework 4.8 - Bailout
duration76.83 ± (76.74 - 77.12) ms77.25 ± (77.23 - 77.61) ms+0.5%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1113.77 ± (1112.61 - 1120.81) ms1111.24 ± (1111.36 - 1121.03) ms-0.2%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.43 ± (22.38 - 22.47) ms22.53 ± (22.48 - 22.58) ms+0.5%✅⬆️
process.time_to_main_ms84.86 ± (84.66 - 85.07) ms84.52 ± (84.29 - 84.74) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.91 - 10.92) MB10.93 ± (10.92 - 10.93) 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.64 - 22.74) ms22.65 ± (22.60 - 22.70) ms-0.2%
process.time_to_main_ms88.64 ± (88.37 - 88.92) ms87.09 ± (86.79 - 87.39) 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.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms213.13 ± (212.20 - 214.07) ms211.56 ± (210.58 - 212.54) ms-0.7%
process.time_to_main_ms539.51 ± (538.21 - 540.80) ms541.15 ± (539.85 - 542.45) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.64 ± (48.61 - 48.67) MB48.54 ± (48.50 - 48.58) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.3%
.NET 6 - Baseline
process.internal_duration_ms21.64 ± (21.58 - 21.70) ms21.77 ± (21.71 - 21.84) ms+0.6%✅⬆️
process.time_to_main_ms76.44 ± (76.18 - 76.71) ms76.86 ± (76.58 - 77.15) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.62) MB10.65 ± (10.65 - 10.66) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.11 ± (21.07 - 21.14) ms21.46 ± (21.39 - 21.53) ms+1.7%✅⬆️
process.time_to_main_ms75.05 ± (74.86 - 75.25) ms77.10 ± (76.79 - 77.40) ms+2.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.74 ± (10.73 - 10.74) MB10.76 ± (10.76 - 10.76) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms369.73 ± (367.67 - 371.79) ms370.30 ± (368.31 - 372.28) ms+0.2%✅⬆️
process.time_to_main_ms548.90 ± (547.48 - 550.32) ms553.18 ± (551.74 - 554.62) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.00 ± (49.98 - 50.03) MB50.06 ± (50.03 - 50.08) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.35 ± (19.31 - 19.40) ms19.28 ± (19.23 - 19.32) ms-0.4%
process.time_to_main_ms72.59 ± (72.38 - 72.79) ms72.46 ± (72.33 - 72.60) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.67) MB7.70 ± (7.69 - 7.70) MB+0.4%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.57 ± (19.53 - 19.62) ms19.70 ± (19.64 - 19.76) ms+0.6%✅⬆️
process.time_to_main_ms75.86 ± (75.60 - 76.12) ms76.31 ± (76.01 - 76.60) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.72) MB7.75 ± (7.74 - 7.75) MB+0.4%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms294.56 ± (292.34 - 296.77) ms297.41 ± (295.31 - 299.51) ms+1.0%✅⬆️
process.time_to_main_ms495.99 ± (494.85 - 497.13) ms500.07 ± (498.81 - 501.32) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.95 ± (36.92 - 36.97) MB36.97 ± (36.94 - 37.00) MB+0.1%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.6%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration201.72 ± (201.29 - 202.12) ms202.41 ± (202.11 - 202.89) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration205.55 ± (205.24 - 205.95) ms205.51 ± (205.26 - 206.11) ms-0.0%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1204.09 ± (1203.07 - 1209.50) ms1205.50 ± (1206.22 - 1213.35) ms+0.1%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms196.37 ± (196.02 - 196.71) ms196.65 ± (196.17 - 197.13) ms+0.1%✅⬆️
process.time_to_main_ms85.02 ± (84.66 - 85.38) ms85.29 ± (84.97 - 85.60) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.02 ± (15.99 - 16.04) MB16.03 ± (16.00 - 16.05) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.3%
.NET Core 3.1 - Bailout
process.internal_duration_ms196.05 ± (195.62 - 196.48) ms195.74 ± (195.28 - 196.20) ms-0.2%
process.time_to_main_ms85.93 ± (85.68 - 86.19) ms86.05 ± (85.74 - 86.35) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.04 - 16.10) MB16.10 ± (16.07 - 16.13) MB+0.2%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+1.3%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms388.20 ± (386.87 - 389.53) ms388.54 ± (387.29 - 389.79) ms+0.1%✅⬆️
process.time_to_main_ms540.05 ± (538.74 - 541.37) ms542.67 ± (541.45 - 543.89) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.96 ± (57.73 - 58.18) MB58.10 ± (57.88 - 58.31) MB+0.2%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.5%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms201.02 ± (200.50 - 201.53) ms199.98 ± (199.51 - 200.44) ms-0.5%
process.time_to_main_ms73.33 ± (73.00 - 73.67) ms73.36 ± (73.13 - 73.60) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.27 ± (16.24 - 16.30) MB16.35 ± (16.32 - 16.37) MB+0.5%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.7%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms200.75 ± (200.29 - 201.21) ms199.28 ± (198.85 - 199.72) ms-0.7%
process.time_to_main_ms74.43 ± (74.19 - 74.66) ms74.59 ± (74.34 - 74.84) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.32 ± (16.30 - 16.35) MB16.38 ± (16.35 - 16.41) MB+0.3%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.9%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms587.55 ± (584.83 - 590.27) ms587.08 ± (584.42 - 589.75) ms-0.1%
process.time_to_main_ms548.76 ± (547.72 - 549.80) ms549.08 ± (547.94 - 550.22) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.10 ± (61.01 - 61.20) MB61.19 ± (61.09 - 61.28) MB+0.1%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.3%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms197.87 ± (197.42 - 198.31) ms197.50 ± (197.06 - 197.94) ms-0.2%
process.time_to_main_ms72.80 ± (72.52 - 73.08) ms72.46 ± (72.18 - 72.75) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.74 ± (11.71 - 11.76) MB11.74 ± (11.72 - 11.76) MB-0.0%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms198.20 ± (197.67 - 198.72) ms198.05 ± (197.51 - 198.58) ms-0.1%
process.time_to_main_ms73.91 ± (73.61 - 74.20) ms74.00 ± (73.77 - 74.23) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.74 ± (11.72 - 11.76) MB11.74 ± (11.72 - 11.76) MB+0.0%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.3%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms511.12 ± (508.36 - 513.88) ms516.25 ± (513.39 - 519.10) ms+1.0%✅⬆️
process.time_to_main_ms495.73 ± (494.86 - 496.60) ms495.73 ± (494.76 - 496.70) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.66 ± (50.62 - 50.70) MB50.56 ± (50.52 - 50.60) MB-0.2%
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (30 - 30)+0.7%✅⬆️
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 (8672) - mean (74ms)  : 70, 77
    master - mean (73ms)  : 70, 76

    section Bailout
    This PR (8672) - mean (77ms)  : 75, 80
    master - mean (77ms)  : 75, 79

    section CallTarget+Inlining+NGEN
    This PR (8672) - mean (1,116ms)  : 1043, 1190
    master - mean (1,117ms)  : 1055, 1179

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 (8672) - mean (114ms)  : 109, 119
    master - mean (114ms)  : 109, 119

    section Bailout
    This PR (8672) - mean (117ms)  : 111, 123
    master - mean (118ms)  : 113, 124

    section CallTarget+Inlining+NGEN
    This PR (8672) - mean (788ms)  : 767, 810
    master - mean (787ms)  : 764, 810

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8672) - mean (106ms)  : 101, 110
    master - mean (105ms)  : 100, 110

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

    section CallTarget+Inlining+NGEN
    This PR (8672) - mean (952ms)  : 914, 990
    master - mean (945ms)  : 909, 982

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8672) - mean (100ms)  : 97, 102
    master - mean (100ms)  : 95, 105

    section Bailout
    This PR (8672) - mean (104ms)  : 99, 109
    master - mean (104ms)  : 99, 108

    section CallTarget+Inlining+NGEN
    This PR (8672) - mean (829ms)  : 793, 866
    master - mean (821ms)  : 787, 854

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 (8672) - mean (203ms)  : 199, 206
    master - mean (202ms)  : 197, 207

    section Bailout
    This PR (8672) - mean (206ms)  : 201, 210
    master - mean (206ms)  : 202, 209

    section CallTarget+Inlining+NGEN
    This PR (8672) - mean (1,210ms)  : 1157, 1263
    master - mean (1,206ms)  : 1160, 1253

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 (8672) - mean (291ms)  : 284, 298
    master - mean (291ms)  : 284, 298

    section Bailout
    This PR (8672) - mean (291ms)  : 283, 299
    master - mean (291ms)  : 284, 297

    section CallTarget+Inlining+NGEN
    This PR (8672) - mean (972ms)  : 953, 992
    master - mean (969ms)  : 950, 988

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8672) - mean (282ms)  : 276, 288
    master - mean (283ms)  : 277, 290

    section Bailout
    This PR (8672) - mean (282ms)  : 276, 289
    master - mean (283ms)  : 277, 290

    section CallTarget+Inlining+NGEN
    This PR (8672) - mean (1,166ms)  : 1125, 1207
    master - mean (1,164ms)  : 1119, 1208

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8672) - mean (280ms)  : 274, 286
    master - mean (281ms)  : 274, 287

    section Bailout
    This PR (8672) - mean (282ms)  : 276, 288
    master - mean (282ms)  : 276, 288

    section CallTarget+Inlining+NGEN
    This PR (8672) - mean (1,045ms)  : 1001, 1089
    master - mean (1,040ms)  : 997, 1083

Loading

@andrewlock
andrewlock merged commit dc3f873 into master May 22, 2026
137 of 138 checks passed
@andrewlock
andrewlock deleted the andrew/data-streams-unbounded-growth branch May 22, 2026 10:51
@github-actions github-actions Bot added this to the vNext-v3 milestone May 22, 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