Skip to content

Take advantage of the Span<T> namespace changes#8477

Draft
andrewlock wants to merge 9 commits intoandrew/update-vendors-8from
andrew/use-new-span-t
Draft

Take advantage of the Span<T> namespace changes#8477
andrewlock wants to merge 9 commits intoandrew/update-vendors-8from
andrew/use-new-span-t

Conversation

@andrewlock
Copy link
Copy Markdown
Member

@andrewlock andrewlock commented Apr 17, 2026

Summary of changes

Remove some branching code that's no longer required after #8476 moved Span<T> to System namespace

Reason for change

This sort of stuff is the reason we made that change, to reduce maintenance.

Implementation details

Set 🤖 looking for possible cases, so it's not exhaustive, but gives a taster. I think most of these make sense. It's nothing outstanding but it's the little things.

Test coverage

Just a refactoring, so covered by existing tests.

Other details

By definition, we don't expect to see performance improvements for this, other than potentially some reduced allocation in .NET Framework. The primary benefits are devx

@andrewlock andrewlock added type:refactor AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos labels Apr 17, 2026
andrewlock and others added 9 commits April 17, 2026 16:05
Remove the outer #if NETCOREAPP guard from ValueStringBuilder.
Now that Span<T> is in the System namespace for vendored types,
the ref struct compiles on .NET Framework too. All dependencies
(ArrayPool, MemoryMarshal, MemoryExtensions) are available via
vendored global usings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove #if NETCOREAPP around Span<byte>/ReadOnlySpan<byte> overloads
of GenerateHash, GenerateV1Hash, and GenerateV1AHash. Delegate the
byte[] private methods to the ReadOnlySpan<byte> versions to remove
code duplication. The string-accepting methods keep their #if gate
as they depend on Encoding.GetBytes(string, Span<byte>).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove #if NETCOREAPP3_1_OR_GREATER around all eight Span<byte>
overloads (WriteVarLong, WriteVarLongZigZag, WriteVarInt,
WriteVarIntZigZag, ReadVarLong, ReadVarLongZigZag, ReadVarInt,
ReadVarIntZigZag). These only index into the span and need no
.NET Core-specific BCL methods.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the two-step byte[] allocation path on .NET Framework with
a single stackalloc byte[16] + BinaryPrimitives.WriteUInt64LittleEndian
on all TFMs. BinaryPrimitives and FnvHash64 Span overloads are now
available everywhere via vendored global usings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the byte[]-allocating Guid.ToByteArray() path with
stackalloc Guid[2] + MemoryMarshal.Cast<Guid, ulong> on all TFMs.
MemoryMarshal is available via vendored global using on .NET
Framework. Removes unused _buffer field and GetBuffer helper.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use stackalloc byte[16] for MD5 hash and stackalloc char[36] for
hex formatting on all TFMs, avoiding two intermediate array
allocations. Now uses the unified Md5Helper.ComputeMd5Hash(string,
Span<byte>) signature.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace ArrayPool<char> rent/return for 2-char hex buffer with
stackalloc char[2] on all TFMs. The chars are written by
HexString.ToHexChars and appended to a StringBuilder, so no
ToString/ToArray overhead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The conditional using for System.Buffers is already handled by
GlobalUsings.cs which imports the correct namespace (BCL or
vendored) based on the TFM.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace StringBuilderCache fallback with ValueStringBuilder and
stackalloc on all TFMs. AppendAsLowerInvariant lowercases each
segment inline, avoiding the extra string allocation from the
previous .ToLowerInvariant() call on the final result. Add a
string? overload to ValueStringBuilder.AppendAsLowerInvariant to
avoid needing explicit .AsSpan() at each call site.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@andrewlock andrewlock force-pushed the andrew/use-new-span-t branch from 6b128fd to 49790cb Compare April 17, 2026 15:05
@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Apr 17, 2026

Benchmarks

Benchmark execution time: 2026-04-17 16:13:00

Comparing candidate commit 49790cb in PR branch andrew/use-new-span-t with baseline commit ecfd2c4 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 [-2.058ms; -1.110ms] or [-1.022%; -0.551%]
  • ignore throughput [-823.940op/s; -404.221op/s] or [-0.977%; -0.479%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.007%]
  • ignore execution_time [-1720.149µs; +1778.874µs] or [-0.858%; +0.887%]
  • 🟩 throughput [+7353.043op/s; +9796.791op/s] or [+6.181%; +8.235%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • ignore execution_time [+0.111ms; +2.339ms] or [+0.056%; +1.176%]
  • ignore throughput [+1484.948op/s; +2623.282op/s] or [+1.510%; +2.667%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [-3 bytes; -2 bytes] or [-0.100%; -0.087%]
  • 🟥 execution_time [+309.918ms; +314.195ms] or [+153.792%; +155.914%]
  • ignore throughput [+18.484op/s; +22.472op/s] or [+3.326%; +4.043%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+378.760ms; +381.708ms] or [+299.244%; +301.573%]
  • ignore throughput [+7.114op/s; +10.259op/s] or [+0.938%; +1.353%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+399.472ms; +402.322ms] or [+353.517%; +356.040%]
  • ignore throughput [-0.010op/s; +3.821op/s] or [-0.001%; +0.540%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]
  • ignore execution_time [-56.926µs; +584.526µs] or [-0.028%; +0.292%]
  • ignore throughput [-4471.785op/s; -4067.134op/s] or [-3.479%; -3.164%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-15.954ms; -11.785ms] or [-7.451%; -5.504%]
  • ignore throughput [+4305.405op/s; +7106.095op/s] or [+3.143%; +5.187%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.502%; +27.510%]
  • ignore execution_time [-10.792ms; -6.654ms] or [-5.139%; -3.169%]
  • ignore throughput [-1589.211op/s; +668.347op/s] or [-1.437%; +0.604%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • ignore execution_time [-974.696µs; -403.992µs] or [-0.485%; -0.201%]
  • 🟥 throughput [-248108.808op/s; -245311.440op/s] or [-25.333%; -25.047%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-26.390ms; -21.550ms] or [-11.769%; -9.610%]
  • ignore throughput [-60605.720op/s; -37823.106op/s] or [-6.475%; -4.041%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • ignore execution_time [-1.014ms; +3.330ms] or [-0.506%; +1.662%]
  • 🟥 throughput [-135343.394op/s; -119587.268op/s] or [-19.446%; -17.182%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [-1344.070µs; -278.960µs] or [-0.670%; -0.139%]
  • ignore throughput [-481.773op/s; +335.617op/s] or [-0.324%; +0.226%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • ignore execution_time [-2466.529µs; +1092.648µs] or [-1.244%; +0.551%]
  • 🟩 throughput [+10289.458op/s; +13328.344op/s] or [+6.547%; +8.481%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+1.726ms; +5.754ms] or [+0.880%; +2.933%]
  • 🟩 throughput [+6745.718op/s; +9383.038op/s] or [+5.374%; +7.475%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • ignore execution_time [-286.227µs; -58.765µs] or [-0.143%; -0.029%]
  • ignore throughput [+8745.472op/s; +56306.734op/s] or [+0.266%; +1.713%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.008%]
  • ignore execution_time [-5.000ms; -3.631ms] or [-2.472%; -1.795%]
  • 🟩 throughput [+446805.575op/s; +467546.705op/s] or [+14.898%; +15.590%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • 🟩 execution_time [-18.507ms; -14.137ms] or [-8.531%; -6.517%]
  • 🟩 throughput [+173488.112op/s; +227482.474op/s] or [+6.886%; +9.029%]

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

  • ignore allocated_mem [+1 bytes; +4 bytes] or [+0.004%; +0.012%]
  • 🟥 execution_time [+300.219ms; +300.988ms] or [+150.009%; +150.394%]
  • ignore throughput [+131.276op/s; +146.666op/s] or [+1.450%; +1.620%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+300.082ms; +303.461ms] or [+151.332%; +153.036%]
  • ignore throughput [+350.525op/s; +563.739op/s] or [+2.681%; +4.312%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+299.696ms; +302.293ms] or [+150.964%; +152.272%]
  • ignore throughput [+174.253op/s; +302.281op/s] or [+1.682%; +2.918%]

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

  • ignore allocated_mem [+3 bytes; +4 bytes] or [+0.186%; +0.199%]
  • 🟥 execution_time [+297.429ms; +298.401ms] or [+146.085%; +146.563%]
  • ignore throughput [+7.826op/s; +15.547op/s] or [+0.207%; +0.412%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+299.375ms; +302.140ms] or [+146.353%; +147.705%]
  • ignore throughput [+118.827op/s; +170.107op/s] or [+1.726%; +2.471%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+299.205ms; +300.075ms] or [+149.542%; +149.977%]
  • ignore throughput [+24.161op/s; +43.281op/s] or [+0.480%; +0.859%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+6.284µs; +10.698µs] or [+1.290%; +2.196%]
  • ignore throughput [-43.584op/s; -25.717op/s] or [-2.123%; -1.253%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.010%]
  • ignore execution_time [+17.167µs; +43.906µs] or [+3.937%; +10.070%]
  • ignore throughput [-216.196op/s; -95.931op/s] or [-9.399%; -4.171%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [+6.359µs; +28.307µs] or [+1.362%; +6.065%]
  • ignore throughput [-140.643op/s; -59.943op/s] or [-6.492%; -2.767%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-1928.223ns; +2084.223ns] or [-0.521%; +0.563%]
  • ignore throughput [-14.508op/s; +14.252op/s] or [-0.537%; +0.528%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • 🟥 execution_time [+25.533µs; +49.182µs] or [+8.151%; +15.701%]
  • 🟥 throughput [-454.132op/s; -255.197op/s] or [-14.157%; -7.955%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [-15.878µs; +6.512µs] or [-4.344%; +1.781%]
  • ignore throughput [-81.830op/s; +51.844op/s] or [-2.937%; +1.860%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.670ms; +300.373ms] or [+149.566%; +149.917%]
  • ignore throughput [+3574151.136op/s; +4143817.438op/s] or [+1.790%; +2.076%]

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

  • ignore allocated_mem [+113 bytes; +115 bytes] or [+0.633%; +0.644%]
  • unstable execution_time [+356.693ms; +393.448ms] or [+387.561%; +427.497%]
  • 🟩 throughput [+1157.044op/s; +1298.135op/s] or [+9.508%; +10.667%]

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

  • ignore allocated_mem [+43 bytes; +46 bytes] or [+0.211%; +0.222%]
  • unstable execution_time [+304.671ms; +342.642ms] or [+231.334%; +260.165%]
  • 🟩 throughput [+668.384op/s; +872.921op/s] or [+6.470%; +8.450%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.828KB; +2.832KB] or [+5.023%; +5.032%]
  • unstable execution_time [+323.399ms; +387.884ms] or [+148.696%; +178.345%]
  • 🟥 throughput [-543.409op/s; -475.845op/s] or [-49.238%; -43.116%]

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

  • ignore allocated_mem [-1.270KB; -1.268KB] or [-2.995%; -2.990%]
  • unstable execution_time [+182.538ms; +317.520ms] or [+77.790%; +135.314%]
  • 🟥 throughput [-741.907op/s; -658.493op/s] or [-49.485%; -43.922%]

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

  • ignore allocated_mem [+1.755KB; +1.759KB] or [+4.145%; +4.152%]
  • 🟥 execution_time [+336.948ms; +345.100ms] or [+201.534%; +206.410%]
  • 🟥 throughput [-413.739op/s; -379.172op/s] or [-28.808%; -26.401%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+201.234µs; +211.283µs] or [+10.127%; +10.633%]
  • 🟥 throughput [-48.345op/s; -46.199op/s] or [-9.607%; -9.180%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-40.881µs; -19.426µs] or [-2.808%; -1.335%]
  • ignore throughput [+10.423op/s; +20.474op/s] or [+1.517%; +2.980%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-182.364µs; -90.712µs] or [-6.344%; -3.156%]
  • ignore throughput [+11.811op/s; +31.199op/s] or [+3.395%; +8.968%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-9.369µs; -3.598µs] or [-0.809%; -0.311%]
  • ignore throughput [+2.783op/s; +7.137op/s] or [+0.322%; +0.826%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-59.203µs; -34.644µs] or [-5.491%; -3.213%]
  • ignore throughput [+33.178op/s; +58.786op/s] or [+3.577%; +6.338%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-94.480µs; +0.121µs] or [-5.062%; +0.006%]
  • unstable throughput [+3.600op/s; +64.655op/s] or [+0.672%; +12.068%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472

  • ignore allocated_mem [-43 bytes; +21 bytes] or [-0.007%; +0.003%]
  • 🟥 execution_time [+353.356µs; +365.443µs] or [+13.802%; +14.274%]
  • 🟥 throughput [-48.775op/s; -47.325op/s] or [-12.487%; -12.116%]

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

  • ignore allocated_mem [-38 bytes; +46 bytes] or [-0.006%; +0.007%]
  • ignore execution_time [-140.284µs; -98.259µs] or [-7.106%; -4.977%]
  • 🟩 throughput [+28.482op/s; +40.012op/s] or [+5.623%; +7.899%]

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

  • ignore allocated_mem [-42 bytes; +23 bytes] or [-0.007%; +0.004%]
  • ignore execution_time [-137.472µs; -101.478µs] or [-3.486%; -2.573%]
  • ignore throughput [+6.908op/s; +9.214op/s] or [+2.724%; +3.633%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • 🟥 execution_time [+303.204ms; +304.710ms] or [+152.688%; +153.446%]
  • 🟩 throughput [+18466.566op/s; +20488.319op/s] or [+5.942%; +6.593%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+301.288ms; +302.806ms] or [+150.976%; +151.736%]
  • ignore throughput [+13416.958op/s; +18322.648op/s] or [+2.115%; +2.889%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+301.425ms; +304.703ms] or [+151.423%; +153.070%]
  • ignore throughput [+22137.909op/s; +29433.215op/s] or [+4.663%; +6.200%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • 🟥 execution_time [+302.179ms; +304.288ms] or [+151.744%; +152.803%]
  • ignore throughput [+9106.679op/s; +10920.961op/s] or [+3.051%; +3.659%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.006%]
  • 🟥 execution_time [+298.289ms; +299.951ms] or [+147.490%; +148.312%]
  • ignore throughput [+2517.357op/s; +7779.397op/s] or [+0.406%; +1.253%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+303.550ms; +307.240ms] or [+153.853%; +155.723%]
  • ignore throughput [-13374.174op/s; -5069.398op/s] or [-2.888%; -1.095%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • ignore allocated_mem [+0 bytes; +1 bytes] or [+0.108%; +0.119%]
  • 🟥 execution_time [+302.329ms; +304.428ms] or [+151.742%; +152.795%]
  • ignore throughput [+6621.452op/s; +8662.780op/s] or [+1.718%; +2.247%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+298.936ms; +300.952ms] or [+148.992%; +149.997%]
  • 🟩 throughput [+63686.030op/s; +67597.313op/s] or [+12.646%; +13.423%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+299.780ms; +302.519ms] or [+149.138%; +150.501%]
  • ignore throughput [-16761.948op/s; -10696.930op/s] or [-3.968%; -2.532%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [-1.634ms; -0.783ms] or [-0.813%; -0.389%]
  • ignore throughput [+1063.869op/s; +2523.682op/s] or [+0.428%; +1.015%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.003%]
  • 🟩 execution_time [-15.592ms; -11.620ms] or [-7.250%; -5.404%]
  • ignore throughput [+15004.135op/s; +22666.657op/s] or [+4.116%; +6.218%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.008%]
  • ignore execution_time [-3.519ms; +1.282ms] or [-1.765%; +0.643%]
  • ignore throughput [+1085.548op/s; +6872.687op/s] or [+0.396%; +2.509%]

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

  • ignore allocated_mem [-4.459KB; -4.431KB] or [-1.623%; -1.613%]
  • unstable execution_time [+7.161µs; +47.759µs] or [+1.769%; +11.797%]
  • ignore throughput [-249.862op/s; -45.098op/s] or [-10.055%; -1.815%]

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

  • 🟩 allocated_mem [-18.015KB; -17.995KB] or [-6.571%; -6.564%]
  • unstable execution_time [-53.526µs; -0.726µs] or [-10.579%; -0.143%]
  • ignore throughput [+19.890op/s; +204.084op/s] or [+0.993%; +10.184%]

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

  • ignore allocated_mem [+658 bytes; +675 bytes] or [+0.240%; +0.246%]
  • ignore execution_time [-42.515µs; +14.224µs] or [-7.368%; +2.465%]
  • ignore throughput [-31.704op/s; +121.595op/s] or [-1.811%; +6.947%]

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

  • ignore allocated_mem [-2 bytes; +2 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [+231.121ns; +1689.546ns] or [+0.400%; +2.927%]
  • ignore throughput [-475.910op/s; -64.380op/s] or [-2.746%; -0.372%]

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

  • ignore allocated_mem [-4 bytes; +0 bytes] or [-0.010%; -0.001%]
  • 🟥 execution_time [+5.606µs; +9.473µs] or [+13.251%; +22.391%]
  • 🟥 throughput [-4417.388op/s; -2683.818op/s] or [-18.596%; -11.298%]

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

  • ignore allocated_mem [-1 bytes; +1 bytes] or [-0.002%; +0.002%]
  • unstable execution_time [-13.077µs; -5.813µs] or [-20.289%; -9.018%]
  • 🟩 throughput [+1437.715op/s; +2957.546op/s] or [+8.821%; +18.146%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • ignore allocated_mem [+3 bytes; +4 bytes] or [+0.084%; +0.094%]
  • 🟥 execution_time [+302.333ms; +303.545ms] or [+152.816%; +153.428%]
  • ignore throughput [-193.690op/s; -171.872op/s] or [-3.236%; -2.872%]

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

  • ignore allocated_mem [-1 bytes; +0 bytes] or [-0.027%; -0.017%]
  • 🟥 execution_time [+301.830ms; +303.879ms] or [+153.630%; +154.674%]
  • ignore throughput [-138.333op/s; -62.761op/s] or [-1.716%; -0.778%]

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

  • ignore allocated_mem [-1 bytes; +0 bytes] or [-0.027%; -0.017%]
  • 🟥 execution_time [+299.890ms; +302.310ms] or [+150.132%; +151.343%]
  • ignore throughput [-199.464op/s; -131.521op/s] or [-2.541%; -1.675%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [-201.497µs; +363.140µs] or [-0.100%; +0.181%]
  • ignore throughput [-9190.561op/s; -7612.592op/s] or [-2.544%; -2.107%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.007%]
  • ignore execution_time [+1.108ms; +2.686ms] or [+0.554%; +1.342%]
  • 🟩 throughput [+41849.053op/s; +46645.413op/s] or [+7.921%; +8.829%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.006%]
  • ignore execution_time [+1.871ms; +5.589ms] or [+0.948%; +2.833%]
  • ignore throughput [+107.776op/s; +8545.526op/s] or [+0.026%; +2.022%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • 🟥 execution_time [+299.820ms; +301.554ms] or [+149.433%; +150.298%]
  • ignore throughput [-1149.204op/s; -123.739op/s] or [-0.759%; -0.082%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+0.000%; +0.009%]
  • 🟥 execution_time [+303.164ms; +304.187ms] or [+152.235%; +152.748%]
  • ignore throughput [+2238.678op/s; +3784.241op/s] or [+0.974%; +1.646%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • 🟥 execution_time [+304.219ms; +307.036ms] or [+154.281%; +155.709%]
  • ignore throughput [-5596.070op/s; -3628.394op/s] or [-3.152%; -2.044%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.630ms; +300.312ms] or [+149.457%; +149.797%]
  • 🟩 throughput [+66036322.201op/s; +66295545.037op/s] or [+48.092%; +48.281%]

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

  • ignore allocated_mem [+59 bytes; +61 bytes] or [+0.349%; +0.359%]
  • 🟥 execution_time [+420.979ms; +425.674ms] or [+523.563%; +529.401%]
  • 🟩 throughput [+1052.737op/s; +1228.711op/s] or [+8.138%; +9.499%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.432ms; +300.387ms] or [+149.350%; +149.826%]
  • 🟩 throughput [+18161661.934op/s; +19102370.345op/s] or [+8.044%; +8.461%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [+124.633µs; +728.437µs] or [+0.062%; +0.364%]
  • ignore throughput [+5152.373op/s; +7956.686op/s] or [+0.575%; +0.888%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-4.566ms; -3.426ms] or [-2.236%; -1.678%]
  • 🟩 throughput [+81037.852op/s; +90659.631op/s] or [+7.566%; +8.465%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [+0.342ms; +4.540ms] or [+0.173%; +2.297%]
  • ignore throughput [+31598.319op/s; +51478.159op/s] or [+3.657%; +5.958%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.009%]
  • ignore execution_time [+440.003µs; +1232.132µs] or [+0.220%; +0.616%]
  • ignore throughput [+5364.319op/s; +10112.870op/s] or [+0.491%; +0.926%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • ignore execution_time [+6.811ms; +10.939ms] or [+3.548%; +5.699%]
  • 🟩 throughput [+90027.760op/s; +119631.542op/s] or [+6.968%; +9.260%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • ignore execution_time [-3.446ms; -2.014ms] or [-1.693%; -0.990%]
  • 🟩 throughput [+61218.557op/s; +69398.469op/s] or [+6.080%; +6.892%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.002%]
  • ignore execution_time [-739.343µs; +615.032µs] or [-0.368%; +0.306%]
  • ignore throughput [+4652.910op/s; +7611.606op/s] or [+1.037%; +1.696%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • ignore execution_time [+0.597ms; +2.015ms] or [+0.298%; +1.006%]
  • 🟩 throughput [+51891.201op/s; +56300.606op/s] or [+9.423%; +10.223%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • ignore execution_time [-2065.761µs; +2024.773µs] or [-1.038%; +1.017%]
  • ignore throughput [+14410.799op/s; +24105.221op/s] or [+3.226%; +5.396%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-1162.388µs; -263.503µs] or [-0.579%; -0.131%]
  • ignore throughput [-16746.171op/s; -13419.860op/s] or [-2.451%; -1.964%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-1641.517µs; +1849.398µs] or [-0.821%; +0.925%]
  • 🟩 throughput [+56980.259op/s; +76534.145op/s] or [+6.366%; +8.551%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [+1.518ms; +5.420ms] or [+0.771%; +2.753%]
  • ignore throughput [+28993.008op/s; +43619.561op/s] or [+4.048%; +6.090%]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos type:refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant