Skip to content

Conversation

@andrewlock
Copy link
Member

Summary of changes

Reason for change

Implementation details

Test coverage

Other details

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

dd-trace-dotnet-ci-bot bot commented Jan 5, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8030) 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
duration68.02 ± (68.08 - 68.28) ms68.45 ± (68.50 - 68.74) ms+0.6%✅⬆️
.NET Framework 4.8 - Bailout
duration71.95 ± (71.88 - 72.08) ms72.10 ± (72.05 - 72.25) ms+0.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1003.26 ± (1004.17 - 1009.93) ms1007.98 ± (1013.69 - 1024.05) ms+0.5%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.00 ± (21.96 - 22.04) ms21.89 ± (21.86 - 21.92) ms-0.5%
process.time_to_main_ms78.68 ± (78.54 - 78.82) ms78.63 ± (78.49 - 78.77) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.90 - 10.91) MB10.92 ± (10.91 - 10.92) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms21.88 ± (21.86 - 21.90) ms21.88 ± (21.87 - 21.90) ms+0.0%✅⬆️
process.time_to_main_ms79.66 ± (79.56 - 79.76) ms80.01 ± (79.93 - 80.09) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.95 - 10.96) MB10.95 ± (10.95 - 10.95) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms228.37 ± (224.62 - 232.13) ms249.93 ± (245.26 - 254.60) ms+9.4%✅⬆️
process.time_to_main_ms469.63 ± (469.13 - 470.13) ms477.12 ± (475.12 - 479.12) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.24 ± (48.21 - 48.26) MB48.16 ± (48.14 - 48.18) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.6%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms20.51 ± (20.48 - 20.53) ms27.47 ± (27.31 - 27.63) ms+34.0%✅⬆️
process.time_to_main_ms67.85 ± (67.72 - 67.97) ms92.04 ± (91.48 - 92.59) ms+35.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.61 - 10.62) MB10.65 ± (10.65 - 10.65) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.53 ± (20.50 - 20.55) ms27.57 ± (27.55 - 27.60) ms+34.3%✅⬆️
process.time_to_main_ms68.88 ± (68.82 - 68.94) ms94.54 ± (94.44 - 94.64) ms+37.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.71 ± (10.69 - 10.72) MB10.74 ± (10.73 - 10.74) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms241.40 ± (238.73 - 244.06) ms250.88 ± (249.29 - 252.48) ms+3.9%✅⬆️
process.time_to_main_ms438.63 ± (438.17 - 439.09) ms447.12 ± (446.30 - 447.93) ms+1.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.67 ± (48.64 - 48.70) MB48.67 ± (48.64 - 48.70) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 8 - Baseline
process.internal_duration_ms18.80 ± (18.77 - 18.83) ms18.83 ± (18.80 - 18.86) ms+0.2%✅⬆️
process.time_to_main_ms67.01 ± (66.91 - 67.11) ms67.34 ± (67.22 - 67.46) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.65 - 7.67) MB7.69 ± (7.68 - 7.70) MB+0.4%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.83 ± (18.79 - 18.86) ms18.86 ± (18.84 - 18.89) ms+0.2%✅⬆️
process.time_to_main_ms68.09 ± (68.03 - 68.16) ms68.34 ± (68.26 - 68.42) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.73) MB7.73 ± (7.73 - 7.74) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms178.05 ± (177.20 - 178.91) ms181.03 ± (180.01 - 182.04) ms+1.7%✅⬆️
process.time_to_main_ms424.87 ± (424.22 - 425.51) ms425.56 ± (424.98 - 426.14) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.34 ± (36.31 - 36.37) MB36.36 ± (36.33 - 36.39) MB+0.0%✅⬆️
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
duration192.32 ± (192.27 - 193.08) ms193.39 ± (193.60 - 194.43) ms+0.6%✅⬆️
.NET Framework 4.8 - Bailout
duration196.25 ± (196.03 - 196.44) ms196.55 ± (196.25 - 196.79) ms+0.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1107.64 ± (1110.58 - 1117.53) ms1112.24 ± (1112.68 - 1118.66) ms+0.4%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms187.79 ± (187.41 - 188.17) ms188.75 ± (188.31 - 189.19) ms+0.5%✅⬆️
process.time_to_main_ms80.26 ± (80.07 - 80.45) ms80.83 ± (80.59 - 81.07) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.05 ± (16.03 - 16.07) MB16.15 ± (16.12 - 16.18) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (19 - 20)-0.1%
.NET Core 3.1 - Bailout
process.internal_duration_ms186.91 ± (186.60 - 187.21) ms187.59 ± (187.30 - 187.89) ms+0.4%✅⬆️
process.time_to_main_ms81.40 ± (81.30 - 81.51) ms81.74 ± (81.58 - 81.89) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.23 ± (16.20 - 16.26) MB16.18 ± (16.16 - 16.21) MB-0.3%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.3%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms418.30 ± (414.95 - 421.66) ms446.68 ± (442.74 - 450.63) ms+6.8%✅⬆️
process.time_to_main_ms472.39 ± (471.82 - 472.95) ms494.01 ± (490.46 - 497.57) ms+4.6%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.72 ± (58.61 - 58.83) MB58.17 ± (58.03 - 58.31) MB-0.9%
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 29)-0.1%
.NET 6 - Baseline
process.internal_duration_ms193.12 ± (192.67 - 193.57) ms192.32 ± (191.99 - 192.66) ms-0.4%
process.time_to_main_ms69.81 ± (69.63 - 70.00) ms69.78 ± (69.60 - 69.97) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.32 ± (16.25 - 16.38) MB16.38 ± (16.35 - 16.41) MB+0.4%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.0%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms191.32 ± (191.03 - 191.61) ms191.54 ± (191.27 - 191.80) ms+0.1%✅⬆️
process.time_to_main_ms70.49 ± (70.39 - 70.58) ms70.65 ± (70.54 - 70.75) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.16 ± (16.03 - 16.30) MB16.24 ± (16.11 - 16.37) MB+0.5%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms456.08 ± (453.84 - 458.32) ms452.62 ± (450.14 - 455.11) ms-0.8%
process.time_to_main_ms444.85 ± (444.33 - 445.37) ms446.88 ± (446.44 - 447.33) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.23 ± (58.11 - 58.35) MB58.34 ± (58.21 - 58.46) MB+0.2%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 30)-0.1%
.NET 8 - Baseline
process.internal_duration_ms190.26 ± (189.94 - 190.58) ms190.78 ± (190.40 - 191.15) ms+0.3%✅⬆️
process.time_to_main_ms69.38 ± (69.17 - 69.59) ms69.45 ± (69.26 - 69.63) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.75 ± (11.73 - 11.78) MB11.75 ± (11.72 - 11.78) MB-0.0%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.1%
.NET 8 - Bailout
process.internal_duration_ms189.73 ± (189.42 - 190.04) ms190.09 ± (189.82 - 190.35) ms+0.2%✅⬆️
process.time_to_main_ms70.01 ± (69.91 - 70.12) ms70.19 ± (70.07 - 70.31) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.84 ± (11.81 - 11.87) MB11.84 ± (11.81 - 11.86) MB-0.0%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms362.07 ± (360.71 - 363.44) ms365.34 ± (363.52 - 367.16) ms+0.9%✅⬆️
process.time_to_main_ms427.99 ± (427.31 - 428.67) ms430.30 ± (429.64 - 430.96) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed47.98 ± (47.94 - 48.02) MB48.01 ± (47.98 - 48.05) MB+0.1%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+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 (8030) - mean (69ms)  : 67, 70
    master - mean (68ms)  : 67, 70

    section Bailout
    This PR (8030) - mean (72ms)  : 71, 73
    master - mean (72ms)  : 71, 73

    section CallTarget+Inlining+NGEN
    This PR (8030) - mean (1,019ms)  : 942, 1096
    master - mean (1,007ms)  : 966, 1048

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 (8030) - mean (106ms)  : 103, 108
    master - mean (106ms)  : 103, 109

    section Bailout
    This PR (8030) - mean (107ms)  : 106, 108
    master - mean (107ms)  : 105, 108

    section CallTarget+Inlining+NGEN
    This PR (8030) - mean (751ms)  : 660, 842
    master - mean (723ms)  : 668, 779

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8030) - mean (125ms)  : 114, 136
    master - mean (93ms)  : 91, 95

    section Bailout
    This PR (8030) - mean (128ms)  : crit, 127, 129
    master - mean (94ms)  : 93, 95

    section CallTarget+Inlining+NGEN
    This PR (8030) - mean (723ms)  : 682, 764
    master - mean (703ms)  : 657, 749

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

    section Bailout
    This PR (8030) - mean (93ms)  : 92, 94
    master - mean (93ms)  : 92, 94

    section CallTarget+Inlining+NGEN
    This PR (8030) - mean (633ms)  : 622, 645
    master - mean (632ms)  : 616, 647

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 (8030) - mean (194ms)  : 189, 199
    master - mean (193ms)  : 189, 197

    section Bailout
    This PR (8030) - mean (197ms)  : 194, 199
    master - mean (196ms)  : 194, 198

    section CallTarget+Inlining+NGEN
    This PR (8030) - mean (1,116ms)  : 1073, 1158
    master - mean (1,114ms)  : 1064, 1164

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 (8030) - mean (278ms)  : 272, 285
    master - mean (276ms)  : 271, 281

    section Bailout
    This PR (8030) - mean (277ms)  : 273, 282
    master - mean (276ms)  : 273, 280

    section CallTarget+Inlining+NGEN
    This PR (8030) - mean (981ms)  : crit, 828, 1134
    master - mean (921ms)  : 865, 976

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8030) - mean (271ms)  : 266, 275
    master - mean (271ms)  : 264, 278

    section Bailout
    This PR (8030) - mean (270ms)  : 267, 273
    master - mean (270ms)  : 267, 273

    section CallTarget+Inlining+NGEN
    This PR (8030) - mean (929ms)  : 890, 967
    master - mean (930ms)  : 894, 966

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8030) - mean (270ms)  : 263, 278
    master - mean (269ms)  : 264, 275

    section Bailout
    This PR (8030) - mean (270ms)  : 266, 274
    master - mean (269ms)  : 265, 273

    section CallTarget+Inlining+NGEN
    This PR (8030) - mean (828ms)  : 803, 852
    master - mean (821ms)  : 802, 840

Loading

@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Jan 5, 2026

⚠️ Tests

Fix all issues with Cursor

⚠️ Warnings

🧪 969 Tests failed

AnalyticsEvent_Tag_Should_Override_AnalyticsSamplingRateMetric from Datadog.Trace.Tests.OpenTelemetrySpecialTagRemapperTests (Datadog) (Fix with Cursor)
Assert.Equal() Failure: Values differ
Expected: 1
Actual:   null
AnalyticsEvent_Tag_Should_Override_AnalyticsSamplingRateMetric from Datadog.Trace.Tests.OpenTelemetrySpecialTagRemapperTests (Datadog) (Fix with Cursor)
Assert.Equal() Failure: Values differ
Expected: 0
Actual:   null
AnalyticsEvent_Tag_Should_Override_AnalyticsSamplingRateMetric from Datadog.Trace.Tests.OpenTelemetrySpecialTagRemapperTests (Datadog) (Fix with Cursor)
Assert.Equal() Failure: Values differ
Expected: 0
Actual:   null
View all

ℹ️ Info

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1c3bd83 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@pr-commenter
Copy link

pr-commenter bot commented Jan 5, 2026

Benchmarks

Benchmark execution time: 2026-01-08 16:46:20

Comparing candidate commit 1c3bd83 in PR branch andrew/otel-optimizations with baseline commit 43d4334 in branch master.

Found 13 performance improvements and 10 performance regressions! Performance is the same for 153 metrics, 10 unstable metrics.

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟩 throughput [+34471.886op/s; +35474.981op/s] or [+75.929%; +78.139%]

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

  • 🟩 throughput [+19150.767op/s; +20544.806op/s] or [+20.716%; +22.224%]

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

  • 🟩 throughput [+26508.243op/s; +27949.812op/s] or [+40.376%; +42.572%]

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

  • 🟩 execution_time [-21.030ms; -20.935ms] or [-17.233%; -17.155%]

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

  • 🟩 execution_time [-87.395ms; -87.121ms] or [-43.865%; -43.728%]

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

  • 🟩 execution_time [-17.017ms; -11.402ms] or [-7.935%; -5.316%]

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

  • 🟥 throughput [-87024.391op/s; -55948.013op/s] or [-9.105%; -5.853%]

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

  • 🟥 execution_time [+15.875ms; +22.013ms] or [+8.070%; +11.190%]

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

  • 🟥 execution_time [+24.044ms; +24.681ms] or [+13.340%; +13.693%]

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

  • 🟩 execution_time [-20.905ms; -20.215ms] or [-10.370%; -10.027%]

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

  • 🟥 execution_time [+9.226ms; +10.704ms] or [+10.372%; +12.035%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟩 throughput [+160.535op/s; +185.164op/s] or [+16.207%; +18.693%]

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

  • 🟩 execution_time [-25.348ms; -20.623ms] or [-15.342%; -12.483%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 throughput [-25164.074op/s; -23432.596op/s] or [-8.182%; -7.619%]

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

  • 🟩 throughput [+32405.972op/s; +38372.106op/s] or [+7.775%; +9.207%]

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

  • 🟥 throughput [-1442.264op/s; -1288.857op/s] or [-70.849%; -63.313%]

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

  • 🟥 throughput [-418.471op/s; -246.258op/s] or [-19.697%; -11.591%]

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

  • 🟩 execution_time [-12.996ms; -10.807ms] or [-6.186%; -5.144%]

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

  • 🟩 throughput [+86493.181op/s; +102848.245op/s] or [+8.496%; +10.103%]

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

  • 🟥 execution_time [+13.091ms; +18.891ms] or [+6.665%; +9.619%]

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

  • 🟥 execution_time [+11.874ms; +17.531ms] or [+5.987%; +8.839%]

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

  • 🟩 execution_time [-18.668ms; -13.284ms] or [-8.749%; -6.226%]

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

  • 🟥 execution_time [+15.291ms; +20.742ms] or [+7.759%; +10.525%]

@andrewlock andrewlock force-pushed the andrew/otel-optimizations branch from 6148ec2 to fbe0685 Compare January 6, 2026 11:26
| Method           | Mean      | Error     | StdDev    | Allocated |
|----------------- |----------:|----------:|----------:|----------:|
| ArrayBasedUpdate | 30.029 us | 0.1795 us | 0.1402 us |         - |
| PairBasedUpdate  |  2.815 us | 0.0232 us | 0.0206 us |         - |
TODO:
- Add unit tests
- Add tests for handling of fallback path, particularly with "old" activity types
- Benchmark across all different TFMs
- Expose more widely?
- Use for activity links and events
@andrewlock andrewlock force-pushed the andrew/otel-optimizations branch from 1eb6e1c to 0699340 Compare January 8, 2026 14:19
@andrewlock andrewlock force-pushed the andrew/otel-optimizations branch from 0699340 to 1c3bd83 Compare January 8, 2026 16:04
@andrewlock
Copy link
Member Author

Superseded by OTel PR stack

@andrewlock andrewlock closed this Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants