Skip to content

Use the built-in System.Reflection.Metadata types for .NET Core#8454

Open
andrewlock wants to merge 10 commits intoandrew/update-vendorsfrom
andrew/remove-more-vendored-code
Open

Use the built-in System.Reflection.Metadata types for .NET Core#8454
andrewlock wants to merge 10 commits intoandrew/update-vendorsfrom
andrew/remove-more-vendored-code

Conversation

@andrewlock
Copy link
Copy Markdown
Member

@andrewlock andrewlock commented Apr 14, 2026

Summary of changes

Use the built-in System.Reflection.Metadata types for .NET Core 3.1+

Reason for change

In #6726, we switched from always using the vendored System.Memory and other BCL types, to using the built-in versions for .NET Core 3.1 where they're available. This was done with the goal of reducing artifact size, while also hopefully improving consistency, and potentially improving performance.

Separately, we're working on updating our vendored code to make updating it more repeatable (see #8391). This flagged a variety of modifications we'd made to the vendored System.Reflection.Metadata code to be able to use internal members.

Rather than include those modifications in the updated vendored code, this PR updates our existing usages to not use those internal members in any scenario. This also means we can stop using the vendored code for .NET Core 3.1+.

Implementation details

  • Add pollyfil for Hash type used by Debugger code, which was internal to System.Reflection.Metadata
    • Note that although this was called FNV1aHash, it isn't using FNV1a, so I chose to call it simple hash (as that's what it's doing, a simple "hash code" calculation).
    • If these hashes should be using FNV1A, then that should be addressed separately
  • Update namespaces to use the built-in versions where appropriate
    • These are intentionally not added to GlobalUsings.cs, because doing so causes a variety of namespace collisions across our vendored code (Newtonsoft.Json, dnlib)
    • A couple of unused using statements needed removing.
  • Stop using internal members on MethodDefinition
    • In some cases, there are simple replacements available, e.g. replacing FromRowId.
    • Removing usages of MethodDefinition.Handle was a little more painful, as it required more refactoring, but fundamentally we were always deriving a MethodDefinition from a MethodDefinitionHandle, so the changes are mostly a minor inconvenience, but they now only use public APIs.

Test coverage

Should be covered by existing tests; all these changes are just "refactorings", nothing additional.

Assembly size comparison

Runtime Before After Diff %
netcoreapp3.1 7,919.5 KB 7,484.0 KB -435.5 KB -5.50%
net6.0 8,016.5 KB 7,581.5 KB -435 KB -5.43%

Estimated size per namespace

Before (net6.0)

Total 7.15 MB (100.0%)
 └── Datadog 7.08 MB (99.1%)
     └── Trace 7.08 MB (99.1%)
         └── VendoredMicrosoftCode 0.54 MB (7.5%)
             └── System 0.54 MB (7.5%)
                 └── Reflection 0.52 MB (7.3%)
                     ├── Metadata 0.42 MB (5.8%)
                     ├── PortableExecutable 0.07 MB (1.0%)
                     └── Internal 0.03 MB (0.4%)

After (net6.0) (all gone)

Total 6.72 MB (100.0%)
 └── Datadog 6.66 MB (99.1%)
     └── Trace 6.66 MB (99.1%)

Other details

https://datadoghq.atlassian.net/browse/APMLP-1207

Part of a stack updating our vendored system code

@andrewlock andrewlock added type:refactor area:vendors Code from other vendors labels Apr 14, 2026
@andrewlock andrewlock changed the title Andrew/remove more vendored code Use the built-in System.Reflection.Metadata types for .NET Core Apr 14, 2026
@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Apr 14, 2026

Benchmarks

Benchmark execution time: 2026-04-16 14:26:59

Comparing candidate commit fa2694a in PR branch andrew/remove-more-vendored-code with baseline commit 5f3c2a8 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 87 known flaky benchmarks.

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.005%]
  • ignore execution_time [-1357.300µs; -418.721µs] or [-0.674%; -0.208%]
  • ignore throughput [-2135.531op/s; -1520.719op/s] or [-2.532%; -1.803%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.007%]
  • ignore execution_time [-1627.804µs; +1862.957µs] or [-0.812%; +0.929%]
  • 🟩 throughput [+7839.994op/s; +10264.079op/s] or [+6.590%; +8.627%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • ignore execution_time [-899.707µs; +1743.885µs] or [-0.453%; +0.877%]
  • ignore throughput [+654.751op/s; +1843.256op/s] or [+0.666%; +1.874%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [-20 bytes; -19 bytes] or [-0.613%; -0.600%]
  • 🟥 execution_time [+309.042ms; +313.998ms] or [+153.358%; +155.817%]
  • ignore throughput [+15.963op/s; +20.075op/s] or [+2.872%; +3.612%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+381.870ms; +384.675ms] or [+301.701%; +303.917%]
  • ignore throughput [+15.545op/s; +17.732op/s] or [+2.050%; +2.338%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+394.020ms; +396.866ms] or [+348.692%; +351.212%]
  • ignore throughput [-5.003op/s; -1.247op/s] or [-0.707%; -0.176%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]
  • ignore execution_time [-344.970µs; +255.020µs] or [-0.172%; +0.127%]
  • ignore throughput [-4584.113op/s; -4186.387op/s] or [-3.567%; -3.257%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-15.905ms; -11.735ms] or [-7.428%; -5.481%]
  • ignore throughput [+4935.469op/s; +7714.608op/s] or [+3.603%; +5.631%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.502%; +27.510%]
  • ignore execution_time [-10.843ms; -6.672ms] or [-5.163%; -3.177%]
  • ignore throughput [-2405.989op/s; -131.546op/s] or [-2.175%; -0.119%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • ignore execution_time [-669.377µs; -62.792µs] or [-0.333%; -0.031%]
  • 🟥 throughput [-231380.323op/s; -228510.589op/s] or [-23.625%; -23.332%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-26.380ms; -18.080ms] or [-11.764%; -8.063%]
  • ignore throughput [-68328.421op/s; -40636.164op/s] or [-7.300%; -4.341%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • ignore execution_time [-0.269ms; +4.101ms] or [-0.134%; +2.047%]
  • 🟥 throughput [-137850.917op/s; -121878.643op/s] or [-19.807%; -17.512%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [-1265.104µs; -238.669µs] or [-0.631%; -0.119%]
  • ignore throughput [-1105.603op/s; -328.498op/s] or [-0.744%; -0.221%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • ignore execution_time [+0.607ms; +4.098ms] or [+0.306%; +2.068%]
  • ignore throughput [+7031.406op/s; +9987.088op/s] or [+4.474%; +6.355%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+1.983ms; +5.975ms] or [+1.011%; +3.046%]
  • 🟩 throughput [+7794.264op/s; +10433.473op/s] or [+6.209%; +8.312%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • ignore execution_time [-243.124µs; -22.201µs] or [-0.121%; -0.011%]
  • ignore throughput [+67318.997op/s; +83221.728op/s] or [+2.048%; +2.532%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.008%]
  • ignore execution_time [-2.377ms; -1.500ms] or [-1.175%; -0.742%]
  • 🟩 throughput [+371243.962op/s; +393822.193op/s] or [+12.379%; +13.132%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • 🟩 execution_time [-18.892ms; -14.544ms] or [-8.708%; -6.704%]
  • 🟩 throughput [+184719.021op/s; +238841.085op/s] or [+7.332%; +9.480%]

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

  • ignore allocated_mem [+1 bytes; +4 bytes] or [+0.004%; +0.012%]
  • 🟥 execution_time [+300.070ms; +300.921ms] or [+149.935%; +150.360%]
  • ignore throughput [+139.400op/s; +181.023op/s] or [+1.540%; +1.999%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+300.340ms; +303.615ms] or [+151.462%; +153.114%]
  • ignore throughput [+371.326op/s; +582.498op/s] or [+2.840%; +4.455%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+299.679ms; +302.317ms] or [+150.955%; +152.284%]
  • ignore throughput [-35.467op/s; +95.760op/s] or [-0.342%; +0.925%]

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

  • ignore allocated_mem [+4 bytes; +5 bytes] or [+0.230%; +0.243%]
  • 🟥 execution_time [+296.384ms; +297.119ms] or [+145.572%; +145.933%]
  • ignore throughput [+13.893op/s; +20.556op/s] or [+0.368%; +0.545%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+298.489ms; +300.664ms] or [+145.920%; +146.984%]
  • ignore throughput [+155.906op/s; +196.358op/s] or [+2.265%; +2.853%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+303.188ms; +304.966ms] or [+151.533%; +152.422%]
  • ignore throughput [+38.270op/s; +61.001op/s] or [+0.760%; +1.211%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+3.944µs; +8.848µs] or [+0.810%; +1.817%]
  • ignore throughput [-35.388op/s; -16.408op/s] or [-1.724%; -0.799%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.010%]
  • ignore execution_time [+17.406µs; +44.175µs] or [+3.992%; +10.132%]
  • ignore throughput [-217.335op/s; -96.891op/s] or [-9.449%; -4.212%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [+6.245µs; +28.183µs] or [+1.338%; +6.038%]
  • ignore throughput [-140.135op/s; -59.486op/s] or [-6.469%; -2.746%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-4.778µs; -1.036µs] or [-1.290%; -0.280%]
  • ignore throughput [+8.061op/s; +35.042op/s] or [+0.299%; +1.298%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • 🟥 execution_time [+25.350µs; +48.996µs] or [+8.093%; +15.642%]
  • 🟥 throughput [-452.635op/s; -253.706op/s] or [-14.110%; -7.909%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [-14.196µs; +8.192µs] or [-3.883%; +2.241%]
  • ignore throughput [-94.681op/s; +38.971op/s] or [-3.398%; +1.399%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.419ms; +300.063ms] or [+149.441%; +149.762%]
  • ignore throughput [-1682695.239op/s; -1118158.220op/s] or [-0.843%; -0.560%]

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

  • ignore allocated_mem [+82 bytes; +84 bytes] or [+0.459%; +0.470%]
  • unstable execution_time [+339.901ms; +382.212ms] or [+369.316%; +415.289%]
  • 🟩 throughput [+1059.303op/s; +1207.112op/s] or [+8.704%; +9.919%]

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

  • ignore allocated_mem [+20 bytes; +22 bytes] or [+0.099%; +0.110%]
  • unstable execution_time [+332.895ms; +361.796ms] or [+252.764%; +274.708%]
  • 🟩 throughput [+752.206op/s; +952.736op/s] or [+7.282%; +9.223%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.848KB; +2.852KB] or [+5.059%; +5.068%]
  • unstable execution_time [+408.490ms; +493.667ms] or [+187.820%; +226.983%]
  • 🟥 throughput [-514.697op/s; -453.506op/s] or [-46.637%; -41.092%]

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

  • ignore allocated_mem [-1.270KB; -1.268KB] or [-2.995%; -2.990%]
  • unstable execution_time [+202.727ms; +335.943ms] or [+86.394%; +143.165%]
  • 🟥 throughput [-740.957op/s; -657.528op/s] or [-49.422%; -43.857%]

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

  • ignore allocated_mem [+1.833KB; +1.837KB] or [+4.329%; +4.337%]
  • 🟥 execution_time [+336.578ms; +347.343ms] or [+201.313%; +207.751%]
  • 🟥 throughput [-403.244op/s; -367.178op/s] or [-28.077%; -25.566%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-104.311µs; -80.410µs] or [-5.249%; -4.047%]
  • ignore throughput [+21.837op/s; +28.238op/s] or [+4.339%; +5.611%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-48.356µs; -13.963µs] or [-3.322%; -0.959%]
  • ignore throughput [+10.750op/s; +22.905op/s] or [+1.565%; +3.334%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-60.614µs; -33.320µs] or [-2.109%; -1.159%]
  • ignore throughput [+4.294op/s; +7.679op/s] or [+1.234%; +2.207%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-7.491µs; +1.978µs] or [-0.647%; +0.171%]
  • ignore throughput [-1.102op/s; +5.873op/s] or [-0.128%; +0.680%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟩 execution_time [-84.944µs; -62.956µs] or [-7.878%; -5.839%]
  • 🟩 throughput [+59.212op/s; +84.135op/s] or [+6.384%; +9.072%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+6.393µs; +21.322µs] or [+0.343%; +1.142%]
  • ignore throughput [-5.854op/s; -1.727op/s] or [-1.093%; -0.322%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472

  • ignore allocated_mem [-43 bytes; +21 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+7.975µs; +23.375µs] or [+0.311%; +0.913%]
  • ignore throughput [-3.446op/s; -1.138op/s] or [-0.882%; -0.291%]

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

  • ignore allocated_mem [-38 bytes; +46 bytes] or [-0.006%; +0.007%]
  • 🟩 execution_time [-192.700µs; -155.743µs] or [-9.761%; -7.889%]
  • 🟩 throughput [+45.459op/s; +55.157op/s] or [+8.974%; +10.889%]

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

  • ignore allocated_mem [-42 bytes; +23 bytes] or [-0.007%; +0.004%]
  • ignore execution_time [-131.333µs; -91.581µs] or [-3.331%; -2.322%]
  • ignore throughput [+6.257op/s; +8.836op/s] or [+2.467%; +3.484%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • 🟥 execution_time [+303.312ms; +305.039ms] or [+152.742%; +153.612%]
  • ignore throughput [-287.290op/s; +1333.476op/s] or [-0.092%; +0.429%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+300.969ms; +302.303ms] or [+150.816%; +151.485%]
  • ignore throughput [+20912.811op/s; +25761.795op/s] or [+3.297%; +4.062%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+302.149ms; +305.426ms] or [+151.787%; +153.433%]
  • ignore throughput [+19184.892op/s; +27089.208op/s] or [+4.041%; +5.706%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • 🟥 execution_time [+301.263ms; +302.464ms] or [+151.284%; +151.887%]
  • ignore throughput [+8036.831op/s; +9671.095op/s] or [+2.692%; +3.240%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.006%]
  • 🟥 execution_time [+298.960ms; +300.432ms] or [+147.823%; +148.551%]
  • ignore throughput [+6060.882op/s; +10600.286op/s] or [+0.977%; +1.708%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+305.382ms; +309.272ms] or [+154.781%; +156.753%]
  • ignore throughput [-13832.110op/s; -5217.203op/s] or [-2.987%; -1.127%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • ignore allocated_mem [+0 bytes; +1 bytes] or [+0.108%; +0.119%]
  • 🟥 execution_time [+301.439ms; +302.682ms] or [+151.295%; +151.919%]
  • 🟥 throughput [-28543.092op/s; -26843.714op/s] or [-7.405%; -6.964%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+301.400ms; +303.539ms] or [+150.220%; +151.286%]
  • 🟩 throughput [+50127.818op/s; +61019.950op/s] or [+9.954%; +12.117%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+299.985ms; +302.404ms] or [+149.240%; +150.443%]
  • ignore throughput [-6363.616op/s; -1124.248op/s] or [-1.506%; -0.266%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [-766.327µs; +86.659µs] or [-0.381%; +0.043%]
  • ignore throughput [-12102.846op/s; -10908.993op/s] or [-4.867%; -4.387%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.003%]
  • 🟩 execution_time [-16.159ms; -12.507ms] or [-7.514%; -5.816%]
  • 🟩 throughput [+19059.392op/s; +26050.570op/s] or [+5.229%; +7.146%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.008%]
  • ignore execution_time [-0.551ms; +3.387ms] or [-0.277%; +1.699%]
  • ignore throughput [-236.803op/s; +5407.495op/s] or [-0.086%; +1.974%]

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

  • ignore allocated_mem [-4.459KB; -4.431KB] or [-1.623%; -1.613%]
  • unstable execution_time [+8.537µs; +49.969µs] or [+2.109%; +12.343%]
  • ignore throughput [-256.955op/s; -49.879op/s] or [-10.340%; -2.007%]

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

  • 🟩 allocated_mem [-27.117KB; -27.097KB] or [-9.892%; -9.884%]
  • unstable execution_time [-7.453µs; +71.074µs] or [-1.473%; +14.047%]
  • unstable throughput [-146.060op/s; +73.611op/s] or [-7.288%; +3.673%]

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

  • 🟩 allocated_mem [-18.834KB; -18.817KB] or [-6.866%; -6.860%]
  • ignore execution_time [-31.737µs; +25.914µs] or [-5.500%; +4.491%]
  • ignore throughput [-64.825op/s; +91.457op/s] or [-3.704%; +5.225%]

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

  • ignore allocated_mem [-2 bytes; +2 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [+0.529µs; +1.920µs] or [+0.916%; +3.326%]
  • ignore throughput [-548.537op/s; -156.536op/s] or [-3.165%; -0.903%]

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

  • ignore allocated_mem [-4 bytes; +0 bytes] or [-0.010%; -0.001%]
  • 🟥 execution_time [+6.507µs; +10.698µs] or [+15.380%; +25.287%]
  • 🟥 throughput [-4777.170op/s; -2993.665op/s] or [-20.110%; -12.602%]

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

  • ignore allocated_mem [-1 bytes; +1 bytes] or [-0.002%; +0.002%]
  • unstable execution_time [-11.729µs; -4.071µs] or [-18.198%; -6.316%]
  • 🟩 throughput [+1026.301op/s; +2628.694op/s] or [+6.297%; +16.128%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • ignore allocated_mem [+2 bytes; +3 bytes] or [+0.061%; +0.072%]
  • 🟥 execution_time [+301.654ms; +303.248ms] or [+152.473%; +153.278%]
  • ignore throughput [-127.559op/s; -103.008op/s] or [-2.131%; -1.721%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • 🟥 execution_time [+301.280ms; +304.058ms] or [+153.350%; +154.764%]
  • ignore throughput [-166.978op/s; -86.723op/s] or [-2.071%; -1.076%]

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

  • ignore allocated_mem [-1 bytes; +0 bytes] or [-0.027%; -0.017%]
  • 🟥 execution_time [+299.921ms; +301.871ms] or [+150.148%; +151.124%]
  • ignore throughput [-135.709op/s; -72.869op/s] or [-1.729%; -0.928%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [-1.452ms; -0.832ms] or [-0.724%; -0.415%]
  • ignore throughput [-17701.746op/s; -15250.390op/s] or [-4.900%; -4.222%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.007%]
  • ignore execution_time [-0.785ms; +4.591ms] or [-0.392%; +2.295%]
  • 🟩 throughput [+40975.750op/s; +51147.278op/s] or [+7.756%; +9.681%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.006%]
  • ignore execution_time [+0.630ms; +4.322ms] or [+0.319%; +2.191%]
  • ignore throughput [-11504.911op/s; -2789.165op/s] or [-2.723%; -0.660%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • 🟥 execution_time [+303.420ms; +305.429ms] or [+151.227%; +152.229%]
  • ignore throughput [-3014.471op/s; -1815.491op/s] or [-1.991%; -1.199%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+0.000%; +0.009%]
  • 🟥 execution_time [+301.804ms; +303.174ms] or [+151.552%; +152.240%]
  • ignore throughput [+2441.055op/s; +4234.642op/s] or [+1.062%; +1.842%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • 🟥 execution_time [+304.136ms; +306.565ms] or [+154.238%; +155.470%]
  • ignore throughput [-8016.946op/s; -6044.707op/s] or [-4.515%; -3.404%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+300.346ms; +301.003ms] or [+149.814%; +150.142%]
  • 🟩 throughput [+61372216.135op/s; +61615917.656op/s] or [+44.695%; +44.873%]

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

  • ignore allocated_mem [+65 bytes; +67 bytes] or [+0.381%; +0.391%]
  • unstable execution_time [+373.897ms; +411.189ms] or [+465.008%; +511.387%]
  • 🟩 throughput [+943.657op/s; +1137.471op/s] or [+7.295%; +8.793%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.177ms; +300.142ms] or [+149.223%; +149.704%]
  • ignore throughput [+1744318.628op/s; +2686204.798op/s] or [+0.773%; +1.190%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-393.037µs; +174.698µs] or [-0.197%; +0.087%]
  • ignore throughput [-7631.663op/s; -3946.471op/s] or [-0.852%; -0.440%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-4.488ms; -3.305ms] or [-2.198%; -1.619%]
  • 🟩 throughput [+92447.267op/s; +102875.789op/s] or [+8.631%; +9.605%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [-0.428ms; +3.724ms] or [-0.217%; +1.884%]
  • 🟩 throughput [+46725.680op/s; +66914.191op/s] or [+5.408%; +7.745%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.009%]
  • ignore execution_time [-82.150µs; +385.134µs] or [-0.041%; +0.192%]
  • ignore throughput [-26975.198op/s; -23648.407op/s] or [-2.469%; -2.165%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • ignore execution_time [+5.927ms; +10.088ms] or [+3.088%; +5.256%]
  • 🟩 throughput [+92269.027op/s; +123204.683op/s] or [+7.142%; +9.536%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • ignore execution_time [-3.668ms; -2.182ms] or [-1.802%; -1.072%]
  • 🟩 throughput [+80374.057op/s; +88505.124op/s] or [+7.982%; +8.790%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.002%]
  • ignore execution_time [-1234.664µs; -47.773µs] or [-0.615%; -0.024%]
  • ignore throughput [+15386.768op/s; +18269.180op/s] or [+3.428%; +4.070%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • ignore execution_time [-1296.312µs; +409.264µs] or [-0.647%; +0.204%]
  • 🟩 throughput [+46091.087op/s; +53814.181op/s] or [+8.369%; +9.772%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • ignore execution_time [-1315.358µs; +2774.332µs] or [-0.661%; +1.394%]
  • 🟩 throughput [+24564.987op/s; +34220.808op/s] or [+5.498%; +7.660%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-1.572ms; -0.607ms] or [-0.784%; -0.303%]
  • ignore throughput [-26201.362op/s; -22929.333op/s] or [-3.835%; -3.356%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-2.080ms; +6.669ms] or [-1.040%; +3.336%]
  • 🟩 throughput [+56171.562op/s; +83224.788op/s] or [+6.276%; +9.298%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [+1.538ms; +5.449ms] or [+0.781%; +2.767%]
  • ignore throughput [+25885.917op/s; +40742.805op/s] or [+3.614%; +5.689%]

@dd-trace-dotnet-ci-bot
Copy link
Copy Markdown

dd-trace-dotnet-ci-bot bot commented Apr 14, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8454) 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.51 ± (74.31 - 74.79) ms75.11 ± (74.76 - 75.35) ms+0.8%✅⬆️
.NET Framework 4.8 - Bailout
duration77.75 ± (77.65 - 78.12) ms78.25 ± (78.06 - 78.55) ms+0.6%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1070.37 ± (1070.04 - 1076.13) ms1070.07 ± (1069.72 - 1074.91) ms-0.0%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.83 ± (22.76 - 22.90) ms22.86 ± (22.79 - 22.93) ms+0.2%✅⬆️
process.time_to_main_ms87.04 ± (86.72 - 87.35) ms87.58 ± (87.24 - 87.93) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.84 ± (10.83 - 10.84) MB10.90 ± (10.90 - 10.91) MB+0.6%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.35 ± (22.31 - 22.38) ms22.47 ± (22.43 - 22.51) ms+0.6%✅⬆️
process.time_to_main_ms86.23 ± (86.01 - 86.45) ms86.63 ± (86.40 - 86.86) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.94 - 10.94) MB10.94 ± (10.93 - 10.94) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms227.84 ± (226.89 - 228.79) ms210.71 ± (209.91 - 211.51) ms-7.5%
process.time_to_main_ms526.24 ± (524.96 - 527.53) ms526.34 ± (525.16 - 527.52) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.46 ± (48.43 - 48.49) MB47.72 ± (47.69 - 47.76) MB-1.5%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms21.47 ± (21.43 - 21.52) ms21.45 ± (21.40 - 21.51) ms-0.1%
process.time_to_main_ms74.76 ± (74.50 - 75.02) ms75.07 ± (74.82 - 75.33) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.62) MB10.61 ± (10.61 - 10.61) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.34 ± (21.29 - 21.39) ms21.13 ± (21.10 - 21.17) ms-1.0%
process.time_to_main_ms75.28 ± (75.02 - 75.53) ms74.54 ± (74.40 - 74.68) ms-1.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.74) MB10.72 ± (10.72 - 10.73) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms385.20 ± (383.13 - 387.26) ms382.75 ± (380.42 - 385.07) ms-0.6%
process.time_to_main_ms526.20 ± (525.05 - 527.35) ms527.46 ± (526.09 - 528.83) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.86 ± (49.83 - 49.90) MB49.28 ± (49.26 - 49.31) MB-1.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.9%
.NET 8 - Baseline
process.internal_duration_ms19.38 ± (19.34 - 19.42) ms19.48 ± (19.44 - 19.52) ms+0.5%✅⬆️
process.time_to_main_ms71.84 ± (71.68 - 72.00) ms73.38 ± (73.18 - 73.58) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.67 - 7.68) MB7.64 ± (7.64 - 7.65) MB-0.4%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.71 ± (19.66 - 19.76) ms19.75 ± (19.70 - 19.81) ms+0.2%✅⬆️
process.time_to_main_ms75.16 ± (74.90 - 75.41) ms76.34 ± (76.05 - 76.63) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.72) MB7.70 ± (7.70 - 7.71) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms303.95 ± (301.69 - 306.21) ms301.95 ± (299.97 - 303.92) ms-0.7%
process.time_to_main_ms489.43 ± (488.33 - 490.54) ms485.97 ± (484.97 - 486.98) ms-0.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.07 ± (37.05 - 37.09) MB36.40 ± (36.38 - 36.43) MB-1.8%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.0%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration204.68 ± (204.50 - 205.37) ms210.74 ± (210.67 - 211.67) ms+3.0%✅⬆️
.NET Framework 4.8 - Bailout
duration207.92 ± (207.66 - 208.37) ms214.61 ± (214.52 - 215.54) ms+3.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1193.33 ± (1193.63 - 1199.45) ms1231.22 ± (1232.95 - 1240.05) ms+3.2%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms197.37 ± (196.96 - 197.78) ms206.23 ± (205.76 - 206.70) ms+4.5%✅⬆️
process.time_to_main_ms86.36 ± (86.11 - 86.61) ms90.63 ± (90.31 - 90.94) ms+4.9%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.01 ± (15.99 - 16.04) MB15.86 ± (15.83 - 15.88) MB-1.0%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms197.19 ± (196.71 - 197.67) ms206.80 ± (206.32 - 207.28) ms+4.9%✅⬆️
process.time_to_main_ms87.61 ± (87.37 - 87.86) ms92.64 ± (92.37 - 92.90) ms+5.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.06 ± (16.04 - 16.09) MB15.93 ± (15.90 - 15.95) MB-0.9%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.9%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms409.06 ± (407.96 - 410.15) ms400.99 ± (399.66 - 402.31) ms-2.0%
process.time_to_main_ms534.13 ± (533.04 - 535.22) ms553.05 ± (551.63 - 554.47) ms+3.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.35 ± (59.31 - 59.39) MB58.44 ± (58.36 - 58.51) MB-1.5%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.8%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms204.09 ± (203.67 - 204.50) ms213.15 ± (212.69 - 213.60) ms+4.4%✅⬆️
process.time_to_main_ms75.42 ± (75.15 - 75.69) ms80.01 ± (79.77 - 80.24) ms+6.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.25 ± (16.22 - 16.27) MB16.16 ± (16.14 - 16.18) MB-0.6%
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (19 - 20)+1.9%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms201.87 ± (201.51 - 202.23) ms207.92 ± (207.47 - 208.37) ms+3.0%✅⬆️
process.time_to_main_ms75.83 ± (75.67 - 75.98) ms79.15 ± (78.91 - 79.38) ms+4.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.32 ± (16.30 - 16.35) MB16.25 ± (16.23 - 16.28) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.3%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms602.81 ± (600.48 - 605.14) ms601.17 ± (598.90 - 603.45) ms-0.3%
process.time_to_main_ms531.06 ± (530.12 - 532.00) ms543.77 ± (542.67 - 544.86) ms+2.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.91 ± (61.84 - 61.99) MB61.16 ± (61.08 - 61.24) MB-1.2%
runtime.dotnet.threads.count31 ± (30 - 31)31 ± (31 - 31)+0.8%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms200.82 ± (200.34 - 201.30) ms207.81 ± (207.19 - 208.44) ms+3.5%✅⬆️
process.time_to_main_ms74.12 ± (73.88 - 74.37) ms76.96 ± (76.68 - 77.23) ms+3.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.64 ± (11.62 - 11.66) MB11.64 ± (11.62 - 11.65) MB-0.0%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.8%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms200.51 ± (200.16 - 200.86) ms204.26 ± (203.75 - 204.77) ms+1.9%✅⬆️
process.time_to_main_ms75.34 ± (75.15 - 75.54) ms76.65 ± (76.48 - 76.83) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.70 ± (11.68 - 11.72) MB11.71 ± (11.69 - 11.73) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+1.5%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms523.04 ± (519.65 - 526.44) ms529.82 ± (523.84 - 535.80) ms+1.3%✅⬆️
process.time_to_main_ms495.63 ± (494.79 - 496.47) ms505.67 ± (504.74 - 506.60) ms+2.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.74 ± (50.70 - 50.78) MB50.33 ± (50.26 - 50.40) MB-0.8%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.1%✅⬆️
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8454) - mean (75ms)  : 71, 79
    master - mean (75ms)  : 71, 78

    section Bailout
    This PR (8454) - mean (78ms)  : 75, 82
    master - mean (78ms)  : 74, 81

    section CallTarget+Inlining+NGEN
    This PR (8454) - mean (1,072ms)  : 1033, 1111
    master - mean (1,073ms)  : 1030, 1117

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 (8454) - mean (118ms)  : 112, 124
    master - mean (117ms)  : 111, 123

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

    section CallTarget+Inlining+NGEN
    This PR (8454) - mean (775ms)  : 749, 801
    master - mean (793ms)  : 766, 821

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

    section Bailout
    This PR (8454) - mean (102ms)  : 100, 104
    master - mean (103ms)  : 99, 108

    section CallTarget+Inlining+NGEN
    This PR (8454) - mean (939ms)  : 898, 980
    master - mean (940ms)  : 905, 974

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

    section Bailout
    This PR (8454) - mean (104ms)  : 99, 109
    master - mean (103ms)  : 98, 107

    section CallTarget+Inlining+NGEN
    This PR (8454) - mean (819ms)  : 784, 854
    master - mean (826ms)  : 786, 865

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 (8454) - mean (211ms)  : 205, 217
    master - mean (205ms)  : 200, 210

    section Bailout
    This PR (8454) - mean (215ms)  : 210, 220
    master - mean (208ms)  : 204, 212

    section CallTarget+Inlining+NGEN
    This PR (8454) - mean (1,237ms)  : 1186, 1287
    master - mean (1,197ms)  : 1155, 1238

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 (8454) - mean (307ms)  : 300, 313
    master - mean (293ms)  : 286, 300

    section Bailout
    This PR (8454) - mean (309ms)  : 302, 316
    master - mean (294ms)  : 288, 299

    section CallTarget+Inlining+NGEN
    This PR (8454) - mean (999ms)  : 973, 1024
    master - mean (978ms)  : 939, 1017

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8454) - mean (302ms)  : 293, 312
    master - mean (288ms)  : 281, 296

    section Bailout
    This PR (8454) - mean (296ms)  : 287, 305
    master - mean (286ms)  : 282, 291

    section CallTarget+Inlining+NGEN
    This PR (8454) - mean (1,177ms)  : 1131, 1223
    master - mean (1,163ms)  : 1129, 1198

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8454) - mean (295ms)  : 279, 311
    master - mean (285ms)  : 278, 293

    section Bailout
    This PR (8454) - mean (291ms)  : 285, 297
    master - mean (287ms)  : 281, 293

    section CallTarget+Inlining+NGEN
    This PR (8454) - mean (1,071ms)  : 985, 1156
    master - mean (1,055ms)  : 1003, 1107

Loading

@andrewlock andrewlock marked this pull request as ready for review April 14, 2026 12:49
@andrewlock andrewlock requested review from a team as code owners April 14, 2026 12:49
Copy link
Copy Markdown
Contributor

@dudikeleti dudikeleti left a comment

Choose a reason for hiding this comment

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

👍🏼

Comment thread tracer/src/Datadog.Trace/PDBs/DatadogMetadataReader.cs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:vendors Code from other vendors type:refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants