Skip to content

Fix excessive allocation in vendored SharedArrayPool#8442

Merged
andrewlock merged 1 commit into
masterfrom
andrew/vendor-fix
Apr 13, 2026
Merged

Fix excessive allocation in vendored SharedArrayPool#8442
andrewlock merged 1 commit into
masterfrom
andrew/vendor-fix

Conversation

@andrewlock

Copy link
Copy Markdown
Member

Summary of changes

Fixes a critical allocation regression in vendored ArrayPool implementation

Reason for change

When vendored, the SharedArrayPool introduced a large allocation, by calling Process.GetCurrentProcess() every time an array is rented or returned. This causes significant allocation (potentially even more than not using the pool would) on applicable TFMs (i.e. .NET Framework and <.NET Core 3.1).

This was obviously introduced during vendoring due to the lack of the Thread.GetCurrentProcessorId() method in .NET Framework, but unfortunately the chosen replacement is likely worse for performance than just using a constant 😢

int index = (int)((uint)Process.GetCurrentProcess().Id % (uint)SharedArrayPoolStatics.s_partitionCount); // mod by constant in tier 1
// todo: fix int index = (int)((uint)Thread.GetCurrentProcessorId() % (uint)SharedArrayPoolStatics.s_partitionCount); // mod by constant in tier 1

Implementation details

The immediate fix is instead of calling Process.GetCurrentProcess(), use Environment.CurrentManagedThreadId to try to get some kind of "round robin" behaviour.

The longer-term fix is likely to update the vendor implementation to use the .NET Framework-appropriate versions instead of trying to backport .NET 7 to .NET Framework

Test coverage

I discovered this when benchmarking something else, where it showed up as a stark difference in .NET Framework, which was the only TFM using the vendored array

Method Runtime Mean Allocated
BuildKey_ClientSpanWithPeerTags .NET 10.0 852.78 ns 688 B
BuildKey_ClientSpanWithPeerTags .NET 6.0 1,144.97 ns 688 B
BuildKey_ClientSpanWithPeerTags .NET Core 3.1 1,666.94 ns 688 B
BuildKey_ClientSpanWithPeerTags .NET Framework 4.8 4,002.83 ns 2391 B

Other details

Should be fixed at source as part of https://datadoghq.atlassian.net/browse/APMLP-1207

@andrewlock
andrewlock requested a review from a team as a code owner April 13, 2026 08:02
@andrewlock andrewlock added area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:performance Performance, speed, latency, resource usage (CPU, memory) labels Apr 13, 2026

@tonyredondo tonyredondo 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 for this!

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8442) 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
duration71.39 ± (71.35 - 71.69) ms71.47 ± (71.51 - 71.93) ms+0.1%✅⬆️
.NET Framework 4.8 - Bailout
duration75.97 ± (75.92 - 76.25) ms75.59 ± (75.39 - 75.77) ms-0.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1062.42 ± (1063.05 - 1069.02) ms1059.77 ± (1063.78 - 1070.71) ms-0.2%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.14 ± (22.10 - 22.18) ms22.12 ± (22.10 - 22.15) ms-0.1%
process.time_to_main_ms82.69 ± (82.50 - 82.87) ms82.50 ± (82.32 - 82.68) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.91 - 10.92) MB10.90 ± (10.90 - 10.91) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.13 ± (22.10 - 22.17) ms22.07 ± (22.04 - 22.10) ms-0.3%
process.time_to_main_ms84.10 ± (83.88 - 84.31) ms83.95 ± (83.77 - 84.14) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.96 ± (10.95 - 10.96) MB10.93 ± (10.92 - 10.93) MB-0.2%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms225.34 ± (224.22 - 226.47) ms224.82 ± (223.67 - 225.98) ms-0.2%
process.time_to_main_ms518.49 ± (517.34 - 519.63) ms520.38 ± (519.14 - 521.63) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.46 ± (48.43 - 48.49) MB48.42 ± (48.39 - 48.45) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms20.99 ± (20.96 - 21.03) ms20.96 ± (20.93 - 20.99) ms-0.2%
process.time_to_main_ms72.20 ± (72.02 - 72.37) ms71.97 ± (71.78 - 72.16) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.63 - 10.63) MB10.64 ± (10.64 - 10.64) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.81 ± (20.79 - 20.84) ms20.96 ± (20.93 - 21.00) ms+0.7%✅⬆️
process.time_to_main_ms72.29 ± (72.12 - 72.45) ms73.41 ± (73.22 - 73.60) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.72 ± (10.72 - 10.73) MB10.75 ± (10.74 - 10.75) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms384.26 ± (382.35 - 386.17) ms385.73 ± (383.37 - 388.08) ms+0.4%✅⬆️
process.time_to_main_ms519.43 ± (518.52 - 520.33) ms518.24 ± (517.34 - 519.14) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.91 ± (49.88 - 49.94) MB49.85 ± (49.82 - 49.88) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.17 ± (19.14 - 19.20) ms19.17 ± (19.14 - 19.20) ms+0.0%✅⬆️
process.time_to_main_ms71.18 ± (71.04 - 71.32) ms71.03 ± (70.87 - 71.19) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.71 ± (7.70 - 7.71) MB7.66 ± (7.66 - 7.67) MB-0.5%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.01 ± (18.98 - 19.05) ms19.11 ± (19.07 - 19.15) ms+0.5%✅⬆️
process.time_to_main_ms71.92 ± (71.77 - 72.07) ms71.90 ± (71.75 - 72.04) ms-0.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.74 ± (7.74 - 7.75) MB7.73 ± (7.72 - 7.73) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms305.31 ± (303.20 - 307.41) ms304.34 ± (302.14 - 306.55) ms-0.3%
process.time_to_main_ms476.74 ± (475.90 - 477.57) ms477.48 ± (476.74 - 478.21) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.08 ± (37.06 - 37.10) MB37.01 ± (36.99 - 37.04) MB-0.2%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.1%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration190.88 ± (190.80 - 191.52) ms190.66 ± (190.75 - 191.39) ms-0.1%
.NET Framework 4.8 - Bailout
duration194.55 ± (194.52 - 194.87) ms194.70 ± (194.45 - 194.87) ms+0.1%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1136.55 ± (1137.88 - 1143.80) ms1141.13 ± (1141.69 - 1147.46) ms+0.4%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms185.18 ± (184.88 - 185.48) ms185.92 ± (185.60 - 186.24) ms+0.4%✅⬆️
process.time_to_main_ms79.73 ± (79.57 - 79.88) ms80.39 ± (80.19 - 80.60) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.13 ± (16.10 - 16.15) MB16.19 ± (16.16 - 16.22) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.9%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms184.85 ± (184.65 - 185.04) ms185.31 ± (185.07 - 185.56) ms+0.3%✅⬆️
process.time_to_main_ms81.05 ± (80.95 - 81.15) ms81.32 ± (81.21 - 81.42) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.15 ± (16.10 - 16.20) MB16.23 ± (16.18 - 16.28) MB+0.5%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (20 - 21)+0.0%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms391.78 ± (390.52 - 393.03) ms394.90 ± (393.54 - 396.25) ms+0.8%✅⬆️
process.time_to_main_ms505.19 ± (504.19 - 506.20) ms507.94 ± (506.72 - 509.16) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.71 ± (58.50 - 58.91) MB58.82 ± (58.64 - 59.01) MB+0.2%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (29 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms190.44 ± (190.13 - 190.75) ms190.24 ± (190.00 - 190.47) ms-0.1%
process.time_to_main_ms69.75 ± (69.60 - 69.91) ms69.58 ± (69.46 - 69.71) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.93 ± (15.76 - 16.11) MB16.29 ± (16.18 - 16.40) MB+2.2%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+1.8%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms189.27 ± (189.05 - 189.49) ms189.49 ± (189.27 - 189.71) ms+0.1%✅⬆️
process.time_to_main_ms70.60 ± (70.53 - 70.67) ms70.53 ± (70.45 - 70.60) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.92 ± (15.75 - 16.09) MB16.17 ± (16.01 - 16.33) MB+1.6%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms598.10 ± (595.54 - 600.66) ms598.32 ± (595.75 - 600.89) ms+0.0%✅⬆️
process.time_to_main_ms508.25 ± (507.47 - 509.02) ms508.61 ± (507.80 - 509.41) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.49 ± (61.39 - 61.59) MB61.57 ± (61.47 - 61.67) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms187.58 ± (187.30 - 187.86) ms187.92 ± (187.64 - 188.21) ms+0.2%✅⬆️
process.time_to_main_ms69.00 ± (68.86 - 69.13) ms69.23 ± (69.10 - 69.35) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.77 ± (11.75 - 11.80) MB11.85 ± (11.81 - 11.89) MB+0.6%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.0%
.NET 8 - Bailout
process.internal_duration_ms186.96 ± (186.71 - 187.20) ms187.26 ± (187.00 - 187.51) ms+0.2%✅⬆️
process.time_to_main_ms70.09 ± (70.01 - 70.17) ms70.14 ± (70.06 - 70.22) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.60 ± (11.49 - 11.72) MB11.70 ± (11.60 - 11.80) MB+0.8%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (18 - 19)+0.9%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms516.44 ± (513.77 - 519.11) ms519.11 ± (516.86 - 521.36) ms+0.5%✅⬆️
process.time_to_main_ms468.89 ± (468.23 - 469.55) ms467.64 ± (467.02 - 468.25) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.68 ± (50.65 - 50.71) MB50.68 ± (50.66 - 50.71) MB+0.0%✅⬆️
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 (8442) - mean (72ms)  : 68, 75
    master - mean (72ms)  : 69, 74

    section Bailout
    This PR (8442) - mean (76ms)  : 74, 77
    master - mean (76ms)  : 75, 78

    section CallTarget+Inlining+NGEN
    This PR (8442) - mean (1,067ms)  : 1016, 1118
    master - mean (1,066ms)  : 1023, 1110

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 (8442) - mean (111ms)  : 107, 115
    master - mean (111ms)  : 108, 115

    section Bailout
    This PR (8442) - mean (112ms)  : 110, 115
    master - mean (113ms)  : 110, 116

    section CallTarget+Inlining+NGEN
    This PR (8442) - mean (784ms)  : 759, 809
    master - mean (783ms)  : 763, 803

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

    section Bailout
    This PR (8442) - mean (100ms)  : 96, 105
    master - mean (99ms)  : 97, 102

    section CallTarget+Inlining+NGEN
    This PR (8442) - mean (933ms)  : 891, 974
    master - mean (931ms)  : 903, 960

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

    section Bailout
    This PR (8442) - mean (98ms)  : 96, 100
    master - mean (98ms)  : 96, 100

    section CallTarget+Inlining+NGEN
    This PR (8442) - mean (814ms)  : 776, 852
    master - mean (811ms)  : 778, 844

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 (8442) - mean (191ms)  : 188, 194
    master - mean (191ms)  : 188, 195

    section Bailout
    This PR (8442) - mean (195ms)  : 193, 197
    master - mean (195ms)  : 193, 196

    section CallTarget+Inlining+NGEN
    This PR (8442) - mean (1,145ms)  : 1102, 1187
    master - mean (1,141ms)  : 1097, 1185

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 (8442) - mean (275ms)  : 270, 279
    master - mean (273ms)  : 269, 277

    section Bailout
    This PR (8442) - mean (275ms)  : 272, 278
    master - mean (274ms)  : 271, 277

    section CallTarget+Inlining+NGEN
    This PR (8442) - mean (930ms)  : 902, 958
    master - mean (925ms)  : 905, 944

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8442) - mean (268ms)  : 264, 272
    master - mean (268ms)  : 265, 272

    section Bailout
    This PR (8442) - mean (268ms)  : 265, 271
    master - mean (268ms)  : 265, 270

    section CallTarget+Inlining+NGEN
    This PR (8442) - mean (1,138ms)  : 1099, 1178
    master - mean (1,136ms)  : 1093, 1179

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8442) - mean (267ms)  : 263, 270
    master - mean (267ms)  : 262, 271

    section Bailout
    This PR (8442) - mean (267ms)  : 263, 271
    master - mean (266ms)  : 263, 270

    section CallTarget+Inlining+NGEN
    This PR (8442) - mean (1,020ms)  : 987, 1052
    master - mean (1,018ms)  : 979, 1058

Loading

@pr-commenter

pr-commenter Bot commented Apr 13, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-04-13 09:00:01

Comparing candidate commit c6ac8de in PR branch andrew/vendor-fix with baseline commit 58f22e8 in branch master.

Found 1 performance improvements and 1 performance regressions! Performance is the same for 25 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 ----------------------------------'

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5719.088op/s; -5478.715op/s] or [-6.529%; -6.254%]

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

  • 🟩 throughput [+10134.585op/s; +10943.836op/s] or [+6.885%; +7.434%]

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 [-1465.448µs; -520.366µs] or [-0.728%; -0.259%]
  • ignore throughput [-163.494op/s; +330.254op/s] or [-0.194%; +0.392%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.007%]
  • ignore execution_time [-1770.560µs; +1727.549µs] or [-0.883%; +0.862%]
  • 🟩 throughput [+8844.827op/s; +11215.386op/s] or [+7.434%; +9.427%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • ignore execution_time [-126.707µs; +2099.469µs] or [-0.064%; +1.056%]
  • ignore throughput [-2427.335op/s; -1220.216op/s] or [-2.468%; -1.241%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [-20 bytes; -19 bytes] or [-0.613%; -0.600%]
  • 🟥 execution_time [+306.425ms; +308.219ms] or [+152.059%; +152.949%]
  • ignore throughput [+8.333op/s; +12.093op/s] or [+1.499%; +2.176%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+385.986ms; +387.891ms] or [+304.952%; +306.458%]
  • ignore throughput [+8.939op/s; +13.309op/s] or [+1.179%; +1.755%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+395.853ms; +399.527ms] or [+350.315%; +353.566%]
  • ignore throughput [-1.176op/s; +1.277op/s] or [-0.166%; +0.180%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.005%]
  • ignore execution_time [-323.921µs; +247.463µs] or [-0.162%; +0.124%]
  • ignore throughput [+2145.042op/s; +2614.800op/s] or [+1.669%; +2.034%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.005%]
  • 🟩 execution_time [-15.974ms; -11.792ms] or [-7.461%; -5.507%]
  • 🟩 throughput [+9653.400op/s; +12436.641op/s] or [+7.046%; +9.078%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.002%]
  • ignore execution_time [-12.465ms; -8.341ms] or [-5.936%; -3.972%]
  • 🟩 throughput [+5698.705op/s; +7961.989op/s] or [+5.152%; +7.199%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.002%; +0.008%]
  • ignore execution_time [-703.707µs; -132.461µs] or [-0.350%; -0.066%]
  • ignore throughput [+16650.274op/s; +20490.202op/s] or [+1.700%; +2.092%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.002%; +0.005%]
  • 🟩 execution_time [-26.645ms; -21.775ms] or [-11.883%; -9.711%]
  • 🟩 throughput [+92988.180op/s; +115927.494op/s] or [+9.934%; +12.385%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • ignore execution_time [-1771.466µs; +2466.232µs] or [-0.884%; +1.231%]
  • 🟩 throughput [+78022.446op/s; +94406.118op/s] or [+11.210%; +13.564%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [-985.452µs; +54.504µs] or [-0.491%; +0.027%]
  • ignore throughput [+767.650op/s; +1564.278op/s] or [+0.517%; +1.053%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • ignore execution_time [-0.059ms; +3.419ms] or [-0.030%; +1.725%]
  • 🟩 throughput [+9239.577op/s; +12241.926op/s] or [+5.879%; +7.789%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+1.938ms; +5.949ms] or [+0.988%; +3.033%]
  • 🟩 throughput [+7187.234op/s; +9825.960op/s] or [+5.726%; +7.828%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • ignore execution_time [-322.820µs; -113.073µs] or [-0.161%; -0.056%]
  • ignore throughput [+12023.787op/s; +22646.137op/s] or [+0.366%; +0.689%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.008%]
  • ignore execution_time [-1.529ms; -0.544ms] or [-0.756%; -0.269%]
  • 🟩 throughput [+485049.436op/s; +503952.352op/s] or [+16.174%; +16.804%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • 🟩 execution_time [-19.118ms; -14.769ms] or [-8.813%; -6.808%]
  • 🟩 throughput [+202396.425op/s; +256645.675op/s] or [+8.034%; +10.187%]

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

  • ignore allocated_mem [+1 bytes; +4 bytes] or [+0.004%; +0.012%]
  • 🟥 execution_time [+300.169ms; +300.804ms] or [+149.984%; +150.302%]
  • ignore throughput [+81.964op/s; +104.451op/s] or [+0.905%; +1.154%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+299.675ms; +302.945ms] or [+151.127%; +152.776%]
  • ignore throughput [+343.423op/s; +555.906op/s] or [+2.627%; +4.252%]

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

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+299.373ms; +302.009ms] or [+150.801%; +152.129%]
  • ignore throughput [+74.517op/s; +203.517op/s] or [+0.719%; +1.965%]

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

  • ignore allocated_mem [+3 bytes; +4 bytes] or [+0.186%; +0.199%]
  • 🟥 execution_time [+296.824ms; +297.812ms] or [+145.788%; +146.274%]
  • ignore throughput [+0.473op/s; +6.284op/s] or [+0.013%; +0.167%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+297.673ms; +299.574ms] or [+145.521%; +146.451%]
  • ignore throughput [+57.754op/s; +78.456op/s] or [+0.839%; +1.140%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+301.275ms; +302.271ms] or [+150.577%; +151.075%]
  • ignore throughput [+37.269op/s; +57.098op/s] or [+0.740%; +1.133%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+8.814µs; +13.028µs] or [+1.810%; +2.675%]
  • ignore throughput [-53.146op/s; -36.028op/s] or [-2.588%; -1.755%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.010%]
  • unstable execution_time [-91.129µs; +400.214µs] or [-20.900%; +91.789%]
  • ignore throughput [-244.021op/s; -98.814op/s] or [-10.609%; -4.296%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [+8.437µs; +30.405µs] or [+1.808%; +6.514%]
  • ignore throughput [-149.512op/s; -68.734op/s] or [-6.902%; -3.173%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-2932.920ns; +1340.920ns] or [-0.792%; +0.362%]
  • ignore throughput [-8.771op/s; +21.819op/s] or [-0.325%; +0.808%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • 🟥 execution_time [+22.455µs; +46.060µs] or [+7.169%; +14.705%]
  • 🟥 throughput [-428.819op/s; -230.164op/s] or [-13.368%; -7.175%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [-13.272µs; +9.110µs] or [-3.631%; +2.492%]
  • ignore throughput [-101.679op/s; +31.916op/s] or [-3.649%; +1.145%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.748ms; +300.375ms] or [+149.605%; +149.918%]
  • ignore throughput [-1263241.352op/s; -700498.363op/s] or [-0.633%; -0.351%]

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

  • ignore allocated_mem [+58 bytes; +60 bytes] or [+0.324%; +0.335%]
  • unstable execution_time [+363.652ms; +400.634ms] or [+395.123%; +435.305%]
  • 🟩 throughput [+1211.256op/s; +1335.597op/s] or [+9.953%; +10.975%]

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

  • ignore allocated_mem [-3 bytes; +0 bytes] or [-0.015%; -0.004%]
  • unstable execution_time [+300.792ms; +337.621ms] or [+228.389%; +256.352%]
  • 🟩 throughput [+780.135op/s; +978.072op/s] or [+7.552%; +9.468%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [+2.787KB; +2.791KB] or [+4.951%; +4.959%]
  • unstable execution_time [+335.442ms; +400.359ms] or [+154.233%; +184.081%]
  • 🟥 throughput [-479.267op/s; -429.766op/s] or [-43.426%; -38.941%]

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

  • ignore allocated_mem [-1.270KB; -1.268KB] or [-2.995%; -2.990%]
  • unstable execution_time [+200.815ms; +334.014ms] or [+85.579%; +142.343%]
  • 🟥 throughput [-744.220op/s; -660.805op/s] or [-49.640%; -44.076%]

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

  • ignore allocated_mem [+2.092KB; +2.095KB] or [+4.940%; +4.947%]
  • 🟥 execution_time [+346.960ms; +354.799ms] or [+207.522%; +212.211%]
  • 🟥 throughput [-424.473op/s; -389.034op/s] or [-29.555%; -27.088%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-56.247µs; -43.246µs] or [-2.831%; -2.176%]
  • ignore throughput [+11.373op/s; +14.736op/s] or [+2.260%; +2.928%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+39.501µs; +54.269µs] or [+2.714%; +3.728%]
  • ignore throughput [-24.443op/s; -17.683op/s] or [-3.558%; -2.574%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-201.103µs; -98.993µs] or [-6.996%; -3.444%]
  • ignore throughput [+13.833op/s; +34.364op/s] or [+3.976%; +9.878%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-14.389µs; -3.351µs] or [-1.243%; -0.289%]
  • ignore throughput [+3.115op/s; +11.122op/s] or [+0.361%; +1.288%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-45.414µs; -22.219µs] or [-4.212%; -2.061%]
  • ignore throughput [+21.383op/s; +45.205op/s] or [+2.306%; +4.874%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+35.419µs; +45.956µs] or [+1.898%; +2.462%]
  • ignore throughput [-12.850op/s; -9.903op/s] or [-2.399%; -1.849%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472

  • ignore allocated_mem [-43 bytes; +21 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+48.622µs; +66.033µs] or [+1.899%; +2.579%]
  • ignore throughput [-9.713op/s; -7.189op/s] or [-2.487%; -1.841%]

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

  • ignore allocated_mem [-38 bytes; +46 bytes] or [-0.006%; +0.007%]
  • ignore execution_time [-130.208µs; -89.738µs] or [-6.596%; -4.546%]
  • 🟩 throughput [+26.196op/s; +36.412op/s] or [+5.171%; +7.188%]

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

  • ignore allocated_mem [-42 bytes; +23 bytes] or [-0.007%; +0.004%]
  • ignore execution_time [-156.405µs; -116.713µs] or [-3.966%; -2.960%]
  • ignore throughput [+7.987op/s; +10.547op/s] or [+3.149%; +4.159%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • 🟥 execution_time [+297.893ms; +299.471ms] or [+150.013%; +150.808%]
  • ignore throughput [-237.613op/s; +1343.763op/s] or [-0.076%; +0.432%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+300.586ms; +301.646ms] or [+150.624%; +151.155%]
  • 🟩 throughput [+34556.601op/s; +40236.753op/s] or [+5.448%; +6.344%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+299.511ms; +302.781ms] or [+150.462%; +152.104%]
  • ignore throughput [+11986.419op/s; +19969.849op/s] or [+2.525%; +4.207%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • 🟥 execution_time [+302.943ms; +304.269ms] or [+152.128%; +152.794%]
  • ignore throughput [+10319.365op/s; +12000.775op/s] or [+3.457%; +4.020%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.006%]
  • 🟥 execution_time [+298.568ms; +299.838ms] or [+147.628%; +148.256%]
  • 🟩 throughput [+32165.688op/s; +37813.300op/s] or [+5.183%; +6.092%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+302.908ms; +306.512ms] or [+153.527%; +155.354%]
  • ignore throughput [+5280.709op/s; +13485.887op/s] or [+1.140%; +2.912%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • ignore allocated_mem [+0 bytes; +1 bytes] or [+0.108%; +0.119%]
  • 🟥 execution_time [+301.738ms; +303.486ms] or [+151.445%; +152.323%]
  • ignore throughput [+6156.899op/s; +8379.808op/s] or [+1.597%; +2.174%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+300.022ms; +302.463ms] or [+149.534%; +150.750%]
  • 🟩 throughput [+62915.747op/s; +69324.944op/s] or [+12.493%; +13.766%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+302.687ms; +305.584ms] or [+150.584%; +152.026%]
  • ignore throughput [-4058.457op/s; +1384.536op/s] or [-0.961%; +0.328%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [-1454.453µs; -503.401µs] or [-0.723%; -0.250%]
  • ignore throughput [+1699.754op/s; +2972.955op/s] or [+0.684%; +1.196%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.003%]
  • 🟩 execution_time [-15.865ms; -12.192ms] or [-7.377%; -5.669%]
  • 🟩 throughput [+24659.021op/s; +31688.366op/s] or [+6.765%; +8.693%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.008%]
  • ignore execution_time [-0.571ms; +3.387ms] or [-0.286%; +1.699%]
  • ignore throughput [+4613.390op/s; +10460.873op/s] or [+1.684%; +3.818%]

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

  • ignore allocated_mem [-4.459KB; -4.431KB] or [-1.623%; -1.613%]
  • unstable execution_time [+4.784µs; +46.548µs] or [+1.182%; +11.498%]
  • ignore throughput [-236.992op/s; -30.621op/s] or [-9.537%; -1.232%]

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

  • 🟩 allocated_mem [-26.695KB; -26.675KB] or [-9.738%; -9.731%]
  • unstable execution_time [-49.481µs; +2.094µs] or [-9.780%; +0.414%]
  • ignore throughput [+1.118op/s; +182.116op/s] or [+0.056%; +9.088%]

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

  • ignore allocated_mem [-536 bytes; -520 bytes] or [-0.195%; -0.190%]
  • ignore execution_time [-56.227µs; +0.292µs] or [-9.744%; +0.051%]
  • ignore throughput [+13.143op/s; +167.492op/s] or [+0.751%; +9.569%]

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

  • ignore allocated_mem [-2 bytes; +2 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-457.047ns; +939.713ns] or [-0.792%; +1.628%]
  • ignore throughput [-261.923op/s; +134.504op/s] or [-1.511%; +0.776%]

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

  • ignore allocated_mem [-4 bytes; +0 bytes] or [-0.010%; -0.001%]
  • unstable execution_time [+6.264µs; +10.623µs] or [+14.806%; +25.109%]
  • 🟥 throughput [-4674.820op/s; -2839.687op/s] or [-19.680%; -11.954%]

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

  • ignore allocated_mem [-1 bytes; +1 bytes] or [-0.002%; +0.002%]
  • unstable execution_time [-14.786µs; -7.786µs] or [-22.940%; -12.079%]
  • 🟩 throughput [+2014.548op/s; +3496.847op/s] or [+12.360%; +21.454%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • ignore allocated_mem [+3 bytes; +4 bytes] or [+0.084%; +0.094%]
  • 🟥 execution_time [+302.654ms; +305.200ms] or [+152.978%; +154.265%]
  • ignore throughput [-129.784op/s; -100.615op/s] or [-2.169%; -1.681%]

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

  • ignore allocated_mem [-1 bytes; +0 bytes] or [-0.027%; -0.017%]
  • 🟥 execution_time [+306.123ms; +309.671ms] or [+155.816%; +157.621%]
  • ignore throughput [-137.403op/s; -46.113op/s] or [-1.704%; -0.572%]

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

  • ignore allocated_mem [-1 bytes; +0 bytes] or [-0.027%; -0.017%]
  • 🟥 execution_time [+300.517ms; +302.423ms] or [+150.446%; +151.400%]
  • ignore throughput [-97.860op/s; -34.324op/s] or [-1.247%; -0.437%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [-788.012µs; -327.854µs] or [-0.393%; -0.163%]
  • 🟥 throughput [-21020.491op/s; -18896.044op/s] or [-5.819%; -5.231%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.007%]
  • ignore execution_time [+321.988µs; +914.366µs] or [+0.161%; +0.457%]
  • 🟩 throughput [+54565.901op/s; +59341.319op/s] or [+10.328%; +11.232%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.006%]
  • ignore execution_time [+1.030ms; +4.726ms] or [+0.522%; +2.396%]
  • ignore throughput [+4756.630op/s; +13306.141op/s] or [+1.126%; +3.149%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • 🟥 execution_time [+300.206ms; +301.804ms] or [+149.626%; +150.422%]
  • ignore throughput [-6622.605op/s; -5524.382op/s] or [-4.373%; -3.648%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+0.000%; +0.009%]
  • 🟥 execution_time [+301.199ms; +303.106ms] or [+151.248%; +152.205%]
  • ignore throughput [+5600.992op/s; +7446.834op/s] or [+2.436%; +3.239%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • 🟥 execution_time [+303.836ms; +306.586ms] or [+154.086%; +155.481%]
  • ignore throughput [+1467.495op/s; +3610.247op/s] or [+0.827%; +2.033%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.927ms; +300.518ms] or [+149.605%; +149.900%]
  • 🟩 throughput [+61315131.885op/s; +61563758.943op/s] or [+44.653%; +44.835%]

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

  • ignore allocated_mem [+52 bytes; +54 bytes] or [+0.306%; +0.316%]
  • unstable execution_time [+340.494ms; +388.146ms] or [+423.465%; +482.729%]
  • 🟩 throughput [+905.678op/s; +1101.535op/s] or [+7.001%; +8.515%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.117ms; +300.052ms] or [+149.193%; +149.659%]
  • ignore throughput [-909670.132op/s; +1577633.751op/s] or [-0.403%; +0.699%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [+14.529µs; +473.033µs] or [+0.007%; +0.237%]
  • ignore throughput [-27681.157op/s; -25413.976op/s] or [-3.089%; -2.836%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-5.307ms; -3.696ms] or [-2.599%; -1.810%]
  • 🟩 throughput [+94503.305op/s; +103620.681op/s] or [+8.823%; +9.675%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [+0.414ms; +4.533ms] or [+0.210%; +2.294%]
  • ignore throughput [+42226.515op/s; +61592.207op/s] or [+4.888%; +7.129%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.009%]
  • ignore execution_time [-405.566µs; +176.230µs] or [-0.203%; +0.088%]
  • ignore throughput [+7570.048op/s; +11085.057op/s] or [+0.693%; +1.015%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • ignore execution_time [+6.197ms; +10.284ms] or [+3.229%; +5.358%]
  • 🟩 throughput [+93569.986op/s; +124131.633op/s] or [+7.242%; +9.608%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • ignore execution_time [-3.906ms; -2.494ms] or [-1.919%; -1.225%]
  • 🟩 throughput [+84573.951op/s; +92462.701op/s] or [+8.400%; +9.183%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.002%]
  • ignore execution_time [-1185.643µs; +214.106µs] or [-0.590%; +0.107%]
  • ignore throughput [+6117.248op/s; +9134.793op/s] or [+1.363%; +2.035%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • ignore execution_time [-257.008µs; +1366.011µs] or [-0.128%; +0.682%]
  • 🟩 throughput [+50185.371op/s; +55418.997op/s] or [+9.113%; +10.063%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • ignore execution_time [-0.809ms; +3.270ms] or [-0.406%; +1.643%]
  • 🟩 throughput [+23992.794op/s; +33719.017op/s] or [+5.370%; +7.547%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-1113.014µs; -155.355µs] or [-0.555%; -0.077%]
  • ignore throughput [-20776.833op/s; -17459.275op/s] or [-3.041%; -2.555%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-0.919ms; +3.011ms] or [-0.460%; +1.506%]
  • 🟩 throughput [+82942.425op/s; +101294.466op/s] or [+9.267%; +11.317%]

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

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [+1.418ms; +5.357ms] or [+0.720%; +2.721%]
  • ignore throughput [+21121.057op/s; +36051.026op/s] or [+2.949%; +5.034%]

@andrewlock
andrewlock merged commit 102da2d into master Apr 13, 2026
147 checks passed
@andrewlock
andrewlock deleted the andrew/vendor-fix branch April 13, 2026 14:08
@github-actions github-actions Bot added this to the vNext-v3 milestone Apr 13, 2026
@lucaspimentel

Copy link
Copy Markdown
Member

The benchmarks in the PR description don't have before vs after 😅

@andrewlock

Copy link
Copy Markdown
Member Author

The benchmarks in the PR description don't have before vs after 😅

The point was comparing .NET FX (i.e. vendored array pool) to built-in array pool 😉

Method Runtime Mean Allocated
BuildKey_ClientSpanWithPeerTags .NET Core 3.1 1,666.94 ns 688 B
BuildKey_ClientSpanWithPeerTags .NET Framework 4.8 4,002.83 ns 2391 B

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

Labels

area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:bug type:performance Performance, speed, latency, resource usage (CPU, memory)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants