Skip to content

Update DirectSubmissionLogSink tests to be less flaky#8714

Merged
andrewlock merged 1 commit into
masterfrom
andrew/fix-direct-log-submission-tests
Jun 2, 2026
Merged

Update DirectSubmissionLogSink tests to be less flaky#8714
andrewlock merged 1 commit into
masterfrom
andrew/fix-direct-log-submission-tests

Conversation

@andrewlock

Copy link
Copy Markdown
Member

Summary of changes

Refactor the DirectSubmissionLogSink and DatadogSinkTests to remove flake

Reason for change

The tests are currently flaky, and there was some recent changes to work on this in #8696

Implementation details

Basically the same as #8696 - don't start the background job, and just call the methods directly

Test coverage

Same coverage, now with less flake 🤞

@datadog-prod-us1-3

Copy link
Copy Markdown
Contributor

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/apm-reliability/dd-trace-dotnet | download-serverless-artifacts   View in Datadog   GitLab

Useful? React with 👍 / 👎

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

@pr-commenter

pr-commenter Bot commented May 29, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-29 21:10:17

Comparing candidate commit 97b244d in PR branch andrew/fix-direct-log-submission-tests with baseline commit fcebc68 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 72 metrics, 0 unstable metrics, 59 known flaky benchmarks, 67 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 [-6599.209op/s; -6081.354op/s] or [-7.825%; -7.211%]

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

  • 🟥 throughput [-8048.059op/s; -6763.069op/s] or [-8.183%; -6.877%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+305.346ms; +313.307ms] or [+151.524%; +155.474%]
  • 🟥 throughput [-44.083op/s; -40.258op/s] or [-7.931%; -7.243%]

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

  • 🟥 execution_time [+380.039ms; +382.620ms] or [+300.254%; +302.293%]
  • 🟩 throughput [+83.203op/s; +88.372op/s] or [+10.970%; +11.652%]

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

  • 🟥 execution_time [+391.768ms; +393.737ms] or [+346.700%; +348.442%]

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 [-15.994ms; -11.824ms] or [-7.470%; -5.522%]

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 [-266890.516op/s; -262773.078op/s] or [-27.251%; -26.830%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.822ms; -21.957ms] or [-11.962%; -9.792%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-154976.061op/s; -139077.812op/s] or [-22.267%; -19.983%]

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

  • 🟩 throughput [+8758.772op/s; +11865.884op/s] or [+5.573%; +7.550%]

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

  • 🟩 throughput [+7854.036op/s; +10593.175op/s] or [+6.257%; +8.439%]

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

  • 🟩 throughput [+428790.112op/s; +448502.999op/s] or [+14.298%; +14.955%]

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

  • 🟩 execution_time [-18.330ms; -13.994ms] or [-8.449%; -6.451%]
  • 🟩 throughput [+152149.686op/s; +210466.390op/s] or [+6.039%; +8.354%]

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

  • 🟥 execution_time [+299.905ms; +300.711ms] or [+149.852%; +150.255%]

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

  • 🟥 execution_time [+299.310ms; +302.423ms] or [+150.943%; +152.513%]

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

  • 🟥 execution_time [+300.459ms; +303.478ms] or [+151.348%; +152.869%]

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

  • 🟥 execution_time [+297.673ms; +299.014ms] or [+146.205%; +146.864%]

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

  • 🟥 execution_time [+296.029ms; +299.239ms] or [+144.717%; +146.287%]

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

  • 🟥 execution_time [+299.002ms; +300.631ms] or [+149.441%; +150.255%]

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

  • 🟥 execution_time [+20.113µs; +43.732µs] or [+6.421%; +13.962%]
  • 🟥 throughput [-409.689op/s; -210.922op/s] or [-12.771%; -6.575%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.653ms; +300.368ms] or [+149.558%; +149.914%]

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

  • unstable execution_time [+326.462ms; +399.494ms] or [+354.714%; +434.067%]

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

  • unstable execution_time [+298.201ms; +350.893ms] or [+226.421%; +266.429%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.848KB; +2.853KB] or [+5.059%; +5.069%]
  • unstable execution_time [+287.034ms; +334.472ms] or [+131.975%; +153.787%]
  • 🟥 throughput [-568.924op/s; -515.413op/s] or [-51.550%; -46.701%]

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

  • unstable execution_time [+197.603ms; +330.821ms] or [+84.210%; +140.982%]
  • 🟥 throughput [-681.563op/s; -597.582op/s] or [-45.460%; -39.859%]

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

  • 🟥 execution_time [+344.383ms; +354.983ms] or [+205.981%; +212.321%]
  • 🟥 throughput [-401.894op/s; -363.490op/s] or [-27.983%; -25.309%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+302.080ms; +304.288ms] or [+152.122%; +153.234%]

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

  • 🟥 execution_time [+299.445ms; +308.975ms] or [+150.052%; +154.828%]

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

  • 🟥 execution_time [+301.368ms; +304.856ms] or [+151.395%; +153.147%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.045ms; +301.843ms] or [+150.672%; +151.576%]

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

  • 🟥 execution_time [+298.243ms; +300.342ms] or [+147.468%; +148.506%]

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

  • 🟥 execution_time [+303.519ms; +307.056ms] or [+153.837%; +155.629%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.046ms; +302.760ms] or [+150.596%; +151.958%]

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

  • 🟥 execution_time [+296.426ms; +300.832ms] or [+147.741%; +149.937%]
  • 🟩 throughput [+40162.961op/s; +51058.583op/s] or [+7.975%; +10.139%]

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

  • 🟥 execution_time [+300.611ms; +303.448ms] or [+149.552%; +150.963%]

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

  • 🟩 execution_time [-16.938ms; -13.207ms] or [-7.876%; -6.141%]
  • 🟩 throughput [+21079.436op/s; +28894.464op/s] or [+5.783%; +7.927%]

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

  • unstable execution_time [+6.842µs; +50.472µs] or [+1.690%; +12.467%]

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

  • 🟩 allocated_mem [-19.534KB; -19.513KB] or [-7.126%; -7.118%]
  • unstable execution_time [-19.458µs; +38.137µs] or [-3.846%; +7.538%]

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

  • unstable execution_time [-53.039µs; +7.570µs] or [-9.191%; +1.312%]

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

  • unstable execution_time [+9.022µs; +13.620µs] or [+21.326%; +32.194%]
  • 🟥 throughput [-5877.359op/s; -3970.541op/s] or [-24.742%; -16.715%]

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

  • unstable execution_time [-13.249µs; -5.097µs] or [-20.555%; -7.908%]
  • unstable throughput [+1255.131op/s; +2926.195op/s] or [+7.701%; +17.953%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.177ms; +303.082ms] or [+152.232%; +153.194%]

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

  • 🟥 execution_time [+302.730ms; +306.119ms] or [+154.089%; +155.814%]

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

  • 🟥 execution_time [+301.662ms; +304.521ms] or [+151.019%; +152.450%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 throughput [-23494.948op/s; -21178.122op/s] or [-6.504%; -5.863%]

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

  • 🟩 throughput [+30796.660op/s; +35288.612op/s] or [+5.829%; +6.679%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.490ms; +301.517ms] or [+149.269%; +150.279%]

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

  • 🟥 execution_time [+301.675ms; +303.714ms] or [+151.487%; +152.511%]

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

  • 🟥 execution_time [+303.093ms; +305.561ms] or [+153.709%; +154.961%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.348ms; +300.448ms] or [+149.316%; +149.865%]
  • 🟩 throughput [+61146581.549op/s; +61512469.389op/s] or [+44.531%; +44.797%]

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

  • 🟥 execution_time [+417.056ms; +421.129ms] or [+518.683%; +523.749%]

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

  • 🟥 execution_time [+299.852ms; +301.057ms] or [+149.559%; +150.160%]

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

  • 🟩 throughput [+105387.624op/s; +114362.812op/s] or [+9.840%; +10.678%]

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

  • 🟩 throughput [+88782.070op/s; +119555.313op/s] or [+6.872%; +9.254%]

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

  • 🟩 throughput [+59862.406op/s; +69435.078op/s] or [+5.945%; +6.896%]

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

  • 🟩 throughput [+50659.172op/s; +55654.946op/s] or [+9.199%; +10.106%]

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

  • unstable execution_time [-5.243ms; +15.420ms] or [-2.623%; +7.713%]
  • 🟩 throughput [+67533.486op/s; +114791.342op/s] or [+7.545%; +12.825%]

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 net6.0
  • 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 netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8714) 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
duration74.98 ± (74.87 - 75.40) ms73.79 ± (73.97 - 74.50) ms-1.6%
.NET Framework 4.8 - Bailout
duration77.46 ± (77.31 - 77.66) ms77.50 ± (77.50 - 77.84) ms+0.1%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1108.59 ± (1107.35 - 1115.35) ms1111.92 ± (1112.15 - 1119.75) ms+0.3%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.69 ± (22.64 - 22.75) ms22.62 ± (22.57 - 22.67) ms-0.3%
process.time_to_main_ms85.88 ± (85.63 - 86.13) ms85.13 ± (84.92 - 85.34) ms-0.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.93 - 10.94) MB10.91 ± (10.91 - 10.92) MB-0.2%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.35 ± (22.32 - 22.39) ms22.43 ± (22.38 - 22.47) ms+0.3%✅⬆️
process.time_to_main_ms85.94 ± (85.73 - 86.15) ms86.81 ± (86.59 - 87.03) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.97 ± (10.96 - 10.97) MB10.94 ± (10.94 - 10.95) MB-0.2%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms214.83 ± (213.81 - 215.86) ms213.82 ± (212.70 - 214.95) ms-0.5%
process.time_to_main_ms544.52 ± (543.18 - 545.86) ms543.86 ± (542.50 - 545.22) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.57 ± (48.53 - 48.60) MB48.65 ± (48.62 - 48.68) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.70 ± (21.64 - 21.76) ms21.62 ± (21.55 - 21.68) ms-0.4%
process.time_to_main_ms76.45 ± (76.17 - 76.73) ms75.84 ± (75.56 - 76.12) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.64 ± (10.64 - 10.64) MB10.64 ± (10.63 - 10.64) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.52 ± (21.48 - 21.57) ms21.52 ± (21.47 - 21.57) ms-0.0%
process.time_to_main_ms76.42 ± (76.19 - 76.64) ms77.02 ± (76.79 - 77.25) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.76 ± (10.76 - 10.76) MB10.75 ± (10.75 - 10.75) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms370.62 ± (368.55 - 372.69) ms368.25 ± (365.90 - 370.61) ms-0.6%
process.time_to_main_ms551.69 ± (550.45 - 552.92) ms554.48 ± (553.01 - 555.94) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.09 ± (50.07 - 50.11) MB50.10 ± (50.08 - 50.13) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.43 ± (19.38 - 19.48) ms19.38 ± (19.34 - 19.42) ms-0.3%
process.time_to_main_ms73.26 ± (73.03 - 73.49) ms72.80 ± (72.63 - 72.97) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.69 ± (7.69 - 7.70) MB7.68 ± (7.67 - 7.69) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.73 ± (19.68 - 19.77) ms19.83 ± (19.78 - 19.88) ms+0.5%✅⬆️
process.time_to_main_ms76.58 ± (76.33 - 76.83) ms77.46 ± (77.19 - 77.73) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.74 ± (7.74 - 7.75) MB7.73 ± (7.72 - 7.73) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms293.01 ± (290.83 - 295.18) ms299.89 ± (297.48 - 302.31) ms+2.3%✅⬆️
process.time_to_main_ms497.67 ± (496.58 - 498.76) ms497.77 ± (496.70 - 498.84) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.06 ± (37.03 - 37.08) MB37.03 ± (37.00 - 37.06) MB-0.1%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.7%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration198.74 ± (198.23 - 199.30) ms197.13 ± (197.05 - 197.98) ms-0.8%
.NET Framework 4.8 - Bailout
duration200.74 ± (200.38 - 201.42) ms200.57 ± (200.16 - 201.16) ms-0.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1193.66 ± (1194.48 - 1200.17) ms1192.82 ± (1190.97 - 1196.87) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms193.74 ± (193.28 - 194.20) ms191.94 ± (191.40 - 192.48) ms-0.9%
process.time_to_main_ms83.91 ± (83.64 - 84.19) ms83.47 ± (83.17 - 83.77) ms-0.5%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.09 ± (16.07 - 16.11) MB16.05 ± (16.02 - 16.08) MB-0.2%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms192.74 ± (192.30 - 193.19) ms192.73 ± (192.27 - 193.18) ms-0.0%
process.time_to_main_ms84.94 ± (84.66 - 85.21) ms85.61 ± (85.35 - 85.86) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.09 ± (16.06 - 16.11) MB16.14 ± (16.12 - 16.16) MB+0.3%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (20 - 21)-0.1%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms384.00 ± (382.62 - 385.39) ms385.97 ± (384.59 - 387.36) ms+0.5%✅⬆️
process.time_to_main_ms535.12 ± (533.84 - 536.40) ms537.00 ± (535.76 - 538.24) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.41 ± (57.24 - 57.58) MB57.67 ± (57.44 - 57.89) MB+0.4%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms197.35 ± (196.86 - 197.84) ms197.43 ± (197.05 - 197.81) ms+0.0%✅⬆️
process.time_to_main_ms72.32 ± (72.08 - 72.56) ms72.63 ± (72.42 - 72.85) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.37 ± (16.35 - 16.39) MB16.36 ± (16.33 - 16.38) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.2%
.NET 6 - Bailout
process.internal_duration_ms196.67 ± (196.25 - 197.08) ms196.78 ± (196.32 - 197.24) ms+0.1%✅⬆️
process.time_to_main_ms73.14 ± (72.91 - 73.36) ms73.29 ± (73.09 - 73.48) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.39 ± (16.37 - 16.42) MB16.41 ± (16.38 - 16.43) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.2%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms582.10 ± (579.27 - 584.93) ms585.66 ± (582.78 - 588.54) ms+0.6%✅⬆️
process.time_to_main_ms543.89 ± (542.75 - 545.02) ms543.73 ± (542.75 - 544.71) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.08 ± (61.01 - 61.15) MB61.30 ± (61.21 - 61.39) MB+0.4%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.0%
.NET 8 - Baseline
process.internal_duration_ms196.30 ± (195.83 - 196.78) ms195.53 ± (195.07 - 195.99) ms-0.4%
process.time_to_main_ms72.11 ± (71.88 - 72.34) ms71.47 ± (71.24 - 71.70) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.79 ± (11.77 - 11.82) MB11.75 ± (11.73 - 11.77) MB-0.4%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms195.52 ± (195.07 - 195.96) ms194.98 ± (194.50 - 195.45) ms-0.3%
process.time_to_main_ms73.13 ± (72.92 - 73.34) ms73.22 ± (73.00 - 73.45) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.77 ± (11.75 - 11.79) MB11.79 ± (11.76 - 11.81) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.0%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms513.78 ± (511.19 - 516.38) ms516.18 ± (513.65 - 518.71) ms+0.5%✅⬆️
process.time_to_main_ms492.90 ± (492.17 - 493.63) ms492.34 ± (491.41 - 493.27) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.71 ± (50.67 - 50.75) MB50.65 ± (50.61 - 50.70) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 30)30 ± (30 - 30)+1.3%✅⬆️
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 (8714) - mean (74ms)  : 70, 78
    master - mean (75ms)  : 71, 79

    section Bailout
    This PR (8714) - mean (78ms)  : 76, 80
    master - mean (77ms)  : 76, 79

    section CallTarget+Inlining+NGEN
    This PR (8714) - mean (1,116ms)  : 1058, 1174
    master - mean (1,111ms)  : 1054, 1169

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 (8714) - mean (115ms)  : 110, 119
    master - mean (116ms)  : 111, 121

    section Bailout
    This PR (8714) - mean (116ms)  : 113, 120
    master - mean (115ms)  : 111, 119

    section CallTarget+Inlining+NGEN
    This PR (8714) - mean (795ms)  : 769, 820
    master - mean (795ms)  : 772, 818

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

    section Bailout
    This PR (8714) - mean (105ms)  : 101, 109
    master - mean (105ms)  : 100, 110

    section CallTarget+Inlining+NGEN
    This PR (8714) - mean (960ms)  : 913, 1008
    master - mean (960ms)  : 918, 1002

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

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

    section CallTarget+Inlining+NGEN
    This PR (8714) - mean (829ms)  : 791, 866
    master - mean (822ms)  : 785, 858

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 (8714) - mean (198ms)  : 192, 203
    master - mean (199ms)  : 191, 207

    section Bailout
    This PR (8714) - mean (201ms)  : 195, 206
    master - mean (201ms)  : 195, 207

    section CallTarget+Inlining+NGEN
    This PR (8714) - mean (1,194ms)  : 1154, 1234
    master - mean (1,197ms)  : 1158, 1236

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 (8714) - mean (284ms)  : 278, 291
    master - mean (286ms)  : 279, 294

    section Bailout
    This PR (8714) - mean (287ms)  : 280, 294
    master - mean (286ms)  : 279, 294

    section CallTarget+Inlining+NGEN
    This PR (8714) - mean (961ms)  : 941, 981
    master - mean (961ms)  : 943, 980

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8714) - mean (279ms)  : 273, 284
    master - mean (278ms)  : 270, 287

    section Bailout
    This PR (8714) - mean (279ms)  : 272, 285
    master - mean (278ms)  : 273, 284

    section CallTarget+Inlining+NGEN
    This PR (8714) - mean (1,160ms)  : 1120, 1200
    master - mean (1,155ms)  : 1110, 1200

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8714) - mean (277ms)  : 269, 285
    master - mean (278ms)  : 271, 286

    section Bailout
    This PR (8714) - mean (278ms)  : 270, 287
    master - mean (279ms)  : 272, 285

    section CallTarget+Inlining+NGEN
    This PR (8714) - mean (1,039ms)  : 1012, 1067
    master - mean (1,038ms)  : 995, 1080

Loading

@andrewlock
andrewlock merged commit ed45eff into master Jun 2, 2026
142 of 144 checks passed
@andrewlock
andrewlock deleted the andrew/fix-direct-log-submission-tests branch June 2, 2026 12:17
@github-actions github-actions Bot added this to the vNext-v3 milestone Jun 2, 2026
andrewlock added a commit that referenced this pull request Jun 2, 2026
## Summary of changes

Refactor the `OtlpSubmissionLogSink` and `OtlpSinkTests` to remove flake

## Reason for change

The tests are currently flaky, and there was some recent changes to work
on this in #8696

## Implementation details

Basically the same as #8696 and #8714 - don't start the background job,
and just call the methods directly

## Test coverage

Same coverage, now with less flake 🤞
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.

2 participants