Skip to content

[Build] Retry git clone in exploration tests setup#8685

Merged
NachoEchevarria merged 1 commit into
masterfrom
nacho/FixExplorationTestsGitIssues
May 28, 2026
Merged

[Build] Retry git clone in exploration tests setup#8685
NachoEchevarria merged 1 commit into
masterfrom
nacho/FixExplorationTestsGitIssues

Conversation

@NachoEchevarria

@NachoEchevarria NachoEchevarria commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Summary of changes

Adds retry logic and a fail-fast timeout around the git clone call in the exploration tests setup target.

Reason for change

The SetUpExplorationTests target clones third-party repos from github.com over the network, which can hang or fail transiently. We hit this on build 202170 cloning cake-build/cake:

error: RPC failed; curl 56 Recv failure: Operation timed out
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Process 'git' exited with code 128.

The clone hung ~10 minutes before the default git timeout kicked in, then failed the whole target with no retry.

Implementation details

In Build.ExplorationTests.cs::GitCloneAndBuild:

  • Added -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=60 to the clone command so git aborts after 60s of throughput below 1KB/s instead of waiting on the default ~10-minute timeout.
  • Wrapped the clone in a 3-attempt loop with 5s / 10s linear backoff. The target directory is re-cleaned before each attempt so a partially-fetched clone doesn't poison the retry.
  • Only the clone retries; the subsequent DotNetBuild is unchanged.

Worst-case clone time is now ~3 minutes instead of ~10 minutes, and a single transient network blip no longer fails the whole exploration tests run.

Test coverage

No new tests — this is build infrastructure for exploration tests, exercised by the existing exploration test pipelines.

Other details

@NachoEchevarria NachoEchevarria changed the title Git clone retry [Build] Retry git clone in exploration tests setup May 26, 2026
@github-actions github-actions Bot added the area:builds project files, build scripts, pipelines, versioning, releases, packages label May 26, 2026
@pr-commenter

pr-commenter Bot commented May 26, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-26 09:55:03

Comparing candidate commit 9daddcb in PR branch nacho/FixExplorationTestsGitIssues with baseline commit ee77554 in branch master.

Found 1 performance improvements and 2 performance regressions! Performance is the same for 69 metrics, 0 unstable metrics, 57 known flaky benchmarks, 69 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

  • 🟩 throughput [+20158.286op/s; +25798.360op/s] or [+7.625%; +9.758%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-38026.227op/s; -35273.102op/s] or [-10.710%; -9.935%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5088.552op/s; -4647.049op/s] or [-5.809%; -5.305%]

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 [-6659.804op/s; -6116.454op/s] or [-7.897%; -7.252%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+303.102ms; +309.912ms] or [+150.410%; +153.789%]
  • 🟥 throughput [-47.395op/s; -43.811op/s] or [-8.527%; -7.883%]

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

  • 🟥 execution_time [+381.361ms; +387.016ms] or [+301.298%; +305.766%]
  • 🟩 throughput [+91.861op/s; +95.542op/s] or [+12.111%; +12.597%]

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

  • 🟥 execution_time [+391.327ms; +393.133ms] or [+346.310%; +347.907%]

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.068ms; -11.896ms] or [-7.504%; -5.556%]

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 [-260152.237op/s; -255532.154op/s] or [-26.563%; -26.091%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.397ms; -21.530ms] or [-11.772%; -9.602%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-161012.070op/s; -144786.122op/s] or [-23.134%; -20.803%]

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

  • 🟩 throughput [+8672.521op/s; +11465.890op/s] or [+6.909%; +9.134%]

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

  • 🟩 throughput [+455969.605op/s; +471499.006op/s] or [+15.204%; +15.722%]

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

  • 🟩 execution_time [-18.368ms; -14.005ms] or [-8.467%; -6.456%]
  • 🟩 throughput [+159232.535op/s; +212879.234op/s] or [+6.320%; +8.450%]

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

  • 🟥 execution_time [+299.918ms; +300.908ms] or [+149.859%; +150.354%]

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

  • 🟥 execution_time [+300.097ms; +303.899ms] or [+151.340%; +153.257%]

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

  • 🟥 execution_time [+299.633ms; +302.509ms] or [+150.932%; +152.381%]

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

  • 🟥 execution_time [+297.097ms; +298.988ms] or [+145.922%; +146.851%]

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

  • 🟥 execution_time [+297.048ms; +300.833ms] or [+145.216%; +147.066%]

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

  • 🟥 execution_time [+300.581ms; +302.847ms] or [+150.230%; +151.362%]

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

  • 🟥 execution_time [+25.684µs; +49.793µs] or [+8.200%; +15.897%]
  • 🟥 throughput [-457.801op/s; -255.569op/s] or [-14.271%; -7.967%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.777ms; +300.542ms] or [+149.619%; +150.001%]

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

  • unstable execution_time [+407.413ms; +418.211ms] or [+442.671%; +454.404%]
  • 🟩 throughput [+777.112op/s; +1025.446op/s] or [+6.386%; +8.426%]

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

  • unstable execution_time [+295.225ms; +350.635ms] or [+224.162%; +266.234%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+288.580ms; +372.160ms] or [+132.686%; +171.115%]
  • 🟥 throughput [-530.661op/s; -480.100op/s] or [-48.083%; -43.502%]

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

  • unstable execution_time [+201.633ms; +334.855ms] or [+85.927%; +142.701%]
  • 🟥 throughput [-675.962op/s; -591.943op/s] or [-45.087%; -39.483%]

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

  • 🟥 execution_time [+337.310ms; +351.106ms] or [+201.750%; +210.002%]
  • 🟥 throughput [-383.380op/s; -348.239op/s] or [-26.694%; -24.247%]

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

  • 🟩 execution_time [-147.522µs; -102.315µs] or [-7.473%; -5.183%]
  • 🟩 throughput [+29.015op/s; +41.334op/s] or [+5.728%; +8.160%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+304.712ms; +306.753ms] or [+153.447%; +154.475%]

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

  • 🟥 execution_time [+297.261ms; +311.808ms] or [+148.958%; +156.247%]

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

  • 🟥 execution_time [+299.928ms; +316.356ms] or [+150.671%; +158.924%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+302.166ms; +303.632ms] or [+151.738%; +152.474%]

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

  • 🟥 execution_time [+299.575ms; +301.530ms] or [+148.127%; +149.093%]

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

  • 🟥 execution_time [+302.828ms; +306.892ms] or [+153.486%; +155.546%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+302.275ms; +305.305ms] or [+151.715%; +153.236%]

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

  • 🟥 execution_time [+299.035ms; +302.242ms] or [+149.042%; +150.640%]
  • 🟩 throughput [+46157.021op/s; +51733.624op/s] or [+9.165%; +10.273%]

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

  • 🟥 execution_time [+301.216ms; +304.304ms] or [+149.852%; +151.389%]

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

  • 🟩 execution_time [-17.407ms; -13.748ms] or [-8.095%; -6.393%]

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

  • unstable execution_time [+8.479µs; +52.339µs] or [+2.094%; +12.928%]

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

  • 🟩 allocated_mem [-18.553KB; -18.529KB] or [-6.768%; -6.759%]
  • unstable execution_time [-35.673µs; +17.468µs] or [-7.051%; +3.452%]

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

  • 🟩 allocated_mem [-17.022KB; -17.004KB] or [-6.205%; -6.199%]
  • unstable execution_time [-39.810µs; +20.693µs] or [-6.899%; +3.586%]

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

  • unstable execution_time [+6.396µs; +10.895µs] or [+15.117%; +25.753%]
  • 🟥 throughput [-4894.052op/s; -3020.573op/s] or [-20.602%; -12.716%]

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

  • unstable execution_time [-15.153µs; -7.433µs] or [-23.509%; -11.532%]
  • unstable throughput [+1947.192op/s; +3614.399op/s] or [+11.947%; +22.176%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+303.996ms; +305.817ms] or [+153.657%; +154.577%]

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

  • 🟥 execution_time [+301.145ms; +306.572ms] or [+153.282%; +156.044%]

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

  • 🟥 execution_time [+303.325ms; +306.856ms] or [+151.852%; +153.619%]

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

  • 🟩 throughput [+29542.381op/s; +32642.549op/s] or [+5.592%; +6.179%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+297.903ms; +300.285ms] or [+148.478%; +149.665%]

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

  • 🟥 execution_time [+302.169ms; +304.331ms] or [+151.735%; +152.821%]

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

  • 🟥 execution_time [+304.694ms; +308.131ms] or [+154.521%; +156.264%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.724ms; +300.795ms] or [+149.504%; +150.038%]
  • 🟩 throughput [+65789846.550op/s; +66164316.674op/s] or [+47.912%; +48.185%]

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

  • 🟥 execution_time [+418.619ms; +423.382ms] or [+520.628%; +526.551%]

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

  • 🟥 execution_time [+299.781ms; +301.094ms] or [+149.524%; +150.179%]
  • 🟩 throughput [+18314984.262op/s; +19291508.368op/s] or [+8.112%; +8.545%]

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

  • 🟩 throughput [+74181.365op/s; +87864.381op/s] or [+6.926%; +8.204%]

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

  • 🟩 throughput [+79987.992op/s; +87158.408op/s] or [+7.944%; +8.656%]

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

  • 🟩 throughput [+31880.229op/s; +40574.104op/s] or [+5.789%; +7.368%]

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

  • 🟩 throughput [+26877.729op/s; +36422.948op/s] or [+6.016%; +8.153%]

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

  • 🟩 throughput [+92999.443op/s; +111691.104op/s] or [+10.390%; +12.479%]

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.ActivityBenchmark.StartStopWithChild netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0
  • 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 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.StartFinishScope netcoreapp3.1
  • 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

@NachoEchevarria
NachoEchevarria marked this pull request as ready for review May 26, 2026 10:47
@NachoEchevarria
NachoEchevarria requested a review from a team as a code owner May 26, 2026 10:47

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8685) 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.74 ± (72.72 - 73.10) ms74.48 ± (74.45 - 75.01) ms+2.4%✅⬆️
.NET Framework 4.8 - Bailout
duration78.34 ± (78.30 - 78.83) ms77.55 ± (77.30 - 77.76) ms-1.0%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1106.37 ± (1105.78 - 1112.30) ms1104.23 ± (1105.04 - 1112.87) ms-0.2%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.57 ± (22.51 - 22.62) ms22.56 ± (22.50 - 22.63) ms-0.0%
process.time_to_main_ms85.11 ± (84.81 - 85.41) ms85.50 ± (85.21 - 85.78) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.92 - 10.92) MB10.92 ± (10.91 - 10.92) MB-0.0%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.56 ± (22.51 - 22.62) ms22.32 ± (22.27 - 22.37) ms-1.1%
process.time_to_main_ms87.50 ± (87.22 - 87.78) ms86.27 ± (86.09 - 86.45) ms-1.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.96 ± (10.95 - 10.96) MB10.95 ± (10.95 - 10.96) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms214.77 ± (213.78 - 215.76) ms215.52 ± (214.63 - 216.41) ms+0.4%✅⬆️
process.time_to_main_ms544.23 ± (542.94 - 545.53) ms546.20 ± (544.79 - 547.61) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.58 ± (48.55 - 48.61) MB48.60 ± (48.56 - 48.63) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.3%
.NET 6 - Baseline
process.internal_duration_ms21.09 ± (21.05 - 21.12) ms21.20 ± (21.16 - 21.24) ms+0.5%✅⬆️
process.time_to_main_ms73.62 ± (73.45 - 73.79) ms73.88 ± (73.72 - 74.04) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.62 - 10.63) MB10.65 ± (10.64 - 10.65) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.92 ± (20.88 - 20.96) ms21.49 ± (21.44 - 21.54) ms+2.7%✅⬆️
process.time_to_main_ms73.70 ± (73.52 - 73.87) ms76.81 ± (76.55 - 77.07) ms+4.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.74 ± (10.74 - 10.75) 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_ms371.86 ± (369.64 - 374.08) ms366.86 ± (364.96 - 368.76) ms-1.3%
process.time_to_main_ms548.14 ± (547.04 - 549.24) ms551.64 ± (550.28 - 553.00) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.09 ± (50.07 - 50.11) MB50.09 ± (50.07 - 50.11) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.71 ± (19.65 - 19.77) ms19.59 ± (19.54 - 19.64) ms-0.6%
process.time_to_main_ms75.07 ± (74.79 - 75.34) ms73.63 ± (73.44 - 73.83) ms-1.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.67 - 7.67) MB7.70 ± (7.69 - 7.71) MB+0.4%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.64 ± (19.58 - 19.70) ms19.44 ± (19.40 - 19.48) ms-1.0%
process.time_to_main_ms75.33 ± (75.02 - 75.65) ms73.79 ± (73.66 - 73.92) ms-2.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.74 ± (7.73 - 7.75) MB7.74 ± (7.73 - 7.75) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms294.58 ± (292.37 - 296.79) ms295.60 ± (293.07 - 298.13) ms+0.3%✅⬆️
process.time_to_main_ms495.99 ± (494.76 - 497.22) ms501.02 ± (499.84 - 502.19) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.94 ± (36.91 - 36.96) MB37.00 ± (36.98 - 37.03) MB+0.2%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.2%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration197.79 ± (197.50 - 198.31) ms197.46 ± (197.06 - 197.95) ms-0.2%
.NET Framework 4.8 - Bailout
duration200.95 ± (200.51 - 201.18) ms200.88 ± (199.97 - 200.81) ms-0.0%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1187.88 ± (1189.48 - 1196.59) ms1191.37 ± (1191.03 - 1196.50) ms+0.3%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms192.33 ± (191.81 - 192.85) ms192.72 ± (192.21 - 193.24) ms+0.2%✅⬆️
process.time_to_main_ms83.08 ± (82.75 - 83.40) ms83.42 ± (83.18 - 83.67) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.14 ± (16.12 - 16.16) MB16.07 ± (16.05 - 16.09) MB-0.4%
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.1%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms191.82 ± (191.36 - 192.29) ms191.43 ± (190.95 - 191.91) ms-0.2%
process.time_to_main_ms84.27 ± (83.99 - 84.54) ms84.03 ± (83.82 - 84.24) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.13 ± (16.10 - 16.15) MB16.14 ± (16.11 - 16.17) MB+0.1%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+1.3%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms388.03 ± (386.56 - 389.51) ms382.89 ± (381.80 - 383.98) ms-1.3%
process.time_to_main_ms538.95 ± (537.44 - 540.46) ms534.01 ± (532.70 - 535.33) ms-0.9%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.72 ± (57.52 - 57.92) MB57.12 ± (57.03 - 57.20) MB-1.0%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms196.88 ± (196.56 - 197.21) ms195.39 ± (194.93 - 195.84) ms-0.8%
process.time_to_main_ms72.27 ± (72.05 - 72.50) ms71.64 ± (71.42 - 71.87) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.40 ± (16.37 - 16.44) MB16.38 ± (16.36 - 16.40) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.7%
.NET 6 - Bailout
process.internal_duration_ms196.13 ± (195.80 - 196.46) ms195.68 ± (195.20 - 196.17) ms-0.2%
process.time_to_main_ms72.88 ± (72.71 - 73.06) ms72.65 ± (72.45 - 72.86) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.41 ± (16.38 - 16.44) MB16.45 ± (16.40 - 16.50) MB+0.2%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.9%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms584.92 ± (582.29 - 587.56) ms583.33 ± (579.46 - 587.19) ms-0.3%
process.time_to_main_ms542.40 ± (541.42 - 543.38) ms541.13 ± (539.95 - 542.31) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.04 ± (60.96 - 61.12) MB61.07 ± (60.97 - 61.17) MB+0.0%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms193.21 ± (192.82 - 193.59) ms192.70 ± (192.23 - 193.17) ms-0.3%
process.time_to_main_ms71.04 ± (70.81 - 71.26) ms70.69 ± (70.50 - 70.88) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.69 ± (11.67 - 11.71) MB11.75 ± (11.73 - 11.76) MB+0.5%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.2%
.NET 8 - Bailout
process.internal_duration_ms193.14 ± (192.66 - 193.63) ms190.88 ± (190.42 - 191.35) ms-1.2%
process.time_to_main_ms72.31 ± (72.13 - 72.49) ms71.52 ± (71.33 - 71.71) ms-1.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.73 ± (11.70 - 11.75) MB11.79 ± (11.77 - 11.81) MB+0.5%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.4%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms512.52 ± (510.25 - 514.80) ms511.17 ± (508.66 - 513.68) ms-0.3%
process.time_to_main_ms490.71 ± (489.89 - 491.52) ms493.04 ± (492.18 - 493.90) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.74 ± (50.70 - 50.77) MB50.63 ± (50.60 - 50.67) MB-0.2%
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 (8685) - mean (75ms)  : 70, 79
    master - mean (73ms)  : 70, 76

    section Bailout
    This PR (8685) - mean (78ms)  : 75, 80
    master - mean (79ms)  : 75, 83

    section CallTarget+Inlining+NGEN
    This PR (8685) - mean (1,109ms)  : 1053, 1164
    master - mean (1,109ms)  : 1061, 1157

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 (8685) - mean (115ms)  : 109, 121
    master - mean (115ms)  : 109, 120

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

    section CallTarget+Inlining+NGEN
    This PR (8685) - mean (799ms)  : 777, 822
    master - mean (795ms)  : 766, 824

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

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

    section CallTarget+Inlining+NGEN
    This PR (8685) - mean (951ms)  : 914, 988
    master - mean (953ms)  : 914, 992

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

    section Bailout
    This PR (8685) - mean (101ms)  : 99, 104
    master - mean (103ms)  : 99, 107

    section CallTarget+Inlining+NGEN
    This PR (8685) - mean (828ms)  : 786, 870
    master - mean (822ms)  : 782, 862

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 (8685) - mean (198ms)  : 192, 203
    master - mean (198ms)  : 194, 202

    section Bailout
    This PR (8685) - mean (200ms)  : 196, 205
    master - mean (201ms)  : 198, 204

    section CallTarget+Inlining+NGEN
    This PR (8685) - mean (1,194ms)  : 1157, 1230
    master - mean (1,193ms)  : 1141, 1245

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 (8685) - mean (284ms)  : 273, 295
    master - mean (284ms)  : 278, 291

    section Bailout
    This PR (8685) - mean (284ms)  : 276, 293
    master - mean (284ms)  : 277, 292

    section CallTarget+Inlining+NGEN
    This PR (8685) - mean (955ms)  : 927, 984
    master - mean (967ms)  : 944, 989

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8685) - mean (275ms)  : 267, 284
    master - mean (277ms)  : 273, 282

    section Bailout
    This PR (8685) - mean (277ms)  : 271, 282
    master - mean (277ms)  : 273, 281

    section CallTarget+Inlining+NGEN
    This PR (8685) - mean (1,152ms)  : 1109, 1196
    master - mean (1,155ms)  : 1118, 1192

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8685) - mean (274ms)  : 263, 284
    master - mean (275ms)  : 269, 281

    section Bailout
    This PR (8685) - mean (272ms)  : 266, 278
    master - mean (275ms)  : 270, 280

    section CallTarget+Inlining+NGEN
    This PR (8685) - mean (1,037ms)  : 999, 1075
    master - mean (1,035ms)  : 995, 1075

Loading

@NachoEchevarria
NachoEchevarria merged commit e68cb1e into master May 28, 2026
137 checks passed
@NachoEchevarria
NachoEchevarria deleted the nacho/FixExplorationTestsGitIssues branch May 28, 2026 11:39
@github-actions github-actions Bot added this to the vNext-v3 milestone May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:builds project files, build scripts, pipelines, versioning, releases, packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants