Skip to content

[Profiler] Update benchmarks definitions#7970

Merged
chrisnas merged 6 commits intomasterfrom
chrisnas/update_benchmarks
Jan 13, 2026
Merged

[Profiler] Update benchmarks definitions#7970
chrisnas merged 6 commits intomasterfrom
chrisnas/update_benchmarks

Conversation

@chrisnas
Copy link
Contributor

Summary of changes

  • Target .NET 10
  • Disable profilers by default

Reason for change

Ensure that new profilers that are enabled by default are disabled for targetted benchmarks
Get new numbers for .NET 10 LTS version

Implementation details

Test coverage

Manual validation

Other details

Disable profilers by default
@chrisnas chrisnas requested a review from a team as a code owner December 18, 2025 09:06
@github-actions github-actions bot added the area:profiler Issues related to the continous-profiler label Dec 18, 2025
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Dec 18, 2025

⚠️ Tests

Fix all issues with Cursor

⚠️ Warnings

❄️ 18 New flaky tests detected

Baseline_allocation from Allocations.windows.json.scenarios (Datadog) (Fix with Cursor)

<null>rd Output: tnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=10.0.0&arch=x86&rid=win10-x86
Profiler_allocation from Allocations.windows.json.scenarios (Datadog) (Fix with Cursor)

<null>rd Output: tnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=10.0.0&arch=x86&rid=win10-x86
Profiler_allocation_cpu_walltime from Allocations.windows.json.scenarios (Datadog) (Fix with Cursor)

<null>rd Output: tnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=10.0.0&arch=x86&rid=win10-x86
View all

ℹ️ Info

🧪 All tests passed

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

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

dd-trace-dotnet-ci-bot bot commented Dec 18, 2025

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7970) 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.49 ± (68.45 - 68.63) ms68.50 ± (68.55 - 68.80) ms+0.0%✅⬆️
.NET Framework 4.8 - Bailout
duration72.29 ± (72.20 - 72.45) ms72.47 ± (72.43 - 72.67) ms+0.3%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1012.97 ± (1014.46 - 1022.13) ms1012.27 ± (1012.76 - 1019.57) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms21.91 ± (21.87 - 21.94) ms22.02 ± (21.99 - 22.05) ms+0.5%✅⬆️
process.time_to_main_ms78.96 ± (78.82 - 79.11) ms78.93 ± (78.79 - 79.06) ms-0.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.93 - 10.93) MB10.91 ± (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.84 ± (21.82 - 21.87) ms21.98 ± (21.95 - 22.00) ms+0.6%✅⬆️
process.time_to_main_ms80.16 ± (80.06 - 80.26) ms80.18 ± (80.08 - 80.28) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.96 ± (10.95 - 10.96) MB10.96 ± (10.95 - 10.96) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms251.56 ± (247.87 - 255.25) ms231.69 ± (227.55 - 235.83) ms-7.9%
process.time_to_main_ms472.55 ± (472.05 - 473.06) ms471.64 ± (471.06 - 472.22) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.32 ± (48.30 - 48.34) MB48.26 ± (48.24 - 48.29) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.9%
.NET 6 - Baseline
process.internal_duration_ms20.71 ± (20.68 - 20.73) ms20.82 ± (20.80 - 20.85) ms+0.6%✅⬆️
process.time_to_main_ms68.39 ± (68.26 - 68.52) ms68.43 ± (68.30 - 68.57) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.62 - 10.63) MB10.65 ± (10.65 - 10.65) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.65 ± (20.62 - 20.67) ms20.71 ± (20.68 - 20.74) ms+0.3%✅⬆️
process.time_to_main_ms69.41 ± (69.35 - 69.47) ms69.27 ± (69.21 - 69.33) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.72 - 10.73) MB10.75 ± (10.75 - 10.76) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms241.55 ± (238.59 - 244.50) ms246.79 ± (244.58 - 249.00) ms+2.2%✅⬆️
process.time_to_main_ms442.46 ± (441.98 - 442.93) ms444.69 ± (444.26 - 445.12) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.74 ± (48.70 - 48.77) MB48.78 ± (48.75 - 48.80) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.4%
.NET 8 - Baseline
process.internal_duration_ms18.95 ± (18.92 - 18.98) ms18.90 ± (18.87 - 18.94) ms-0.3%
process.time_to_main_ms67.61 ± (67.48 - 67.73) ms67.69 ± (67.58 - 67.80) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.67 - 7.68) MB7.69 ± (7.68 - 7.70) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.92 ± (18.90 - 18.94) ms18.88 ± (18.85 - 18.91) ms-0.2%
process.time_to_main_ms68.59 ± (68.53 - 68.65) ms68.69 ± (68.63 - 68.75) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.72) MB7.73 ± (7.72 - 7.74) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms179.54 ± (178.53 - 180.54) ms181.42 ± (180.41 - 182.43) ms+1.0%✅⬆️
process.time_to_main_ms426.68 ± (426.01 - 427.34) ms427.46 ± (426.76 - 428.17) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.34 ± (36.31 - 36.37) MB36.43 ± (36.40 - 36.46) 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
duration192.80 ± (192.85 - 193.74) ms192.89 ± (192.93 - 193.79) ms+0.0%✅⬆️
.NET Framework 4.8 - Bailout
duration197.57 ± (197.39 - 198.12) ms196.82 ± (196.58 - 197.27) ms-0.4%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1117.53 ± (1119.65 - 1129.09) ms1113.66 ± (1116.20 - 1123.67) ms-0.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms188.21 ± (187.84 - 188.59) ms187.35 ± (187.00 - 187.71) ms-0.5%
process.time_to_main_ms80.40 ± (80.17 - 80.63) ms80.21 ± (80.01 - 80.41) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.03 ± (16.00 - 16.05) MB16.16 ± (16.13 - 16.19) MB+0.8%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (19 - 20)-0.1%
.NET Core 3.1 - Bailout
process.internal_duration_ms188.73 ± (188.27 - 189.20) ms186.99 ± (186.70 - 187.27) ms-0.9%
process.time_to_main_ms82.35 ± (82.15 - 82.55) ms81.40 ± (81.26 - 81.55) ms-1.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.10 ± (16.08 - 16.12) MB16.17 ± (16.14 - 16.20) MB+0.5%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.1%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms421.70 ± (418.42 - 424.98) ms423.69 ± (420.40 - 426.98) ms+0.5%✅⬆️
process.time_to_main_ms474.57 ± (473.93 - 475.20) ms473.90 ± (473.25 - 474.55) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.73 ± (58.61 - 58.86) MB58.66 ± (58.54 - 58.79) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 30)-0.0%
.NET 6 - Baseline
process.internal_duration_ms192.37 ± (191.99 - 192.74) ms192.17 ± (191.81 - 192.53) ms-0.1%
process.time_to_main_ms69.59 ± (69.43 - 69.75) ms69.49 ± (69.31 - 69.67) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.13 ± (15.99 - 16.26) MB16.32 ± (16.23 - 16.42) MB+1.2%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (19 - 19)+2.2%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms191.44 ± (191.16 - 191.71) ms190.77 ± (190.56 - 190.98) ms-0.3%
process.time_to_main_ms70.53 ± (70.45 - 70.60) ms70.35 ± (70.24 - 70.46) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.99 ± (15.83 - 16.14) MB16.32 ± (16.21 - 16.43) MB+2.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (20 - 20)+3.6%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms449.24 ± (446.21 - 452.27) ms452.57 ± (450.05 - 455.09) ms+0.7%✅⬆️
process.time_to_main_ms448.11 ± (447.54 - 448.67) ms445.51 ± (444.95 - 446.07) ms-0.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.44 ± (58.32 - 58.55) MB58.28 ± (58.17 - 58.38) MB-0.3%
runtime.dotnet.threads.count29 ± (29 - 30)30 ± (30 - 30)+0.4%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms190.60 ± (190.24 - 190.95) ms190.17 ± (189.81 - 190.53) ms-0.2%
process.time_to_main_ms69.32 ± (69.12 - 69.53) ms69.07 ± (68.84 - 69.30) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.78 ± (11.75 - 11.80) MB11.74 ± (11.72 - 11.77) MB-0.3%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.4%
.NET 8 - Bailout
process.internal_duration_ms190.48 ± (190.05 - 190.91) ms189.66 ± (189.41 - 189.91) ms-0.4%
process.time_to_main_ms70.49 ± (70.35 - 70.63) ms69.81 ± (69.71 - 69.92) ms-1.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.81 ± (11.79 - 11.84) MB11.80 ± (11.77 - 11.83) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.3%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms363.96 ± (362.28 - 365.63) ms364.41 ± (362.90 - 365.92) ms+0.1%✅⬆️
process.time_to_main_ms428.86 ± (428.37 - 429.35) ms428.94 ± (428.33 - 429.56) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed47.95 ± (47.92 - 47.99) MB48.05 ± (48.01 - 48.08) MB+0.2%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.3%✅⬆️
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 (7970) - mean (69ms)  : 67, 70
    master - mean (69ms)  : 67, 70

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

    section CallTarget+Inlining+NGEN
    This PR (7970) - mean (1,016ms)  : 967, 1065
    master - mean (1,018ms)  : 964, 1073

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

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

    section CallTarget+Inlining+NGEN
    This PR (7970) - mean (730ms)  : 672, 788
    master - mean (751ms)  : 690, 813

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7970) - mean (94ms)  : 92, 96
    master - mean (94ms)  : 92, 96

    section Bailout
    This PR (7970) - mean (95ms)  : 94, 96
    master - mean (95ms)  : 94, 96

    section CallTarget+Inlining+NGEN
    This PR (7970) - mean (713ms)  : 674, 753
    master - mean (705ms)  : 646, 765

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

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

    section CallTarget+Inlining+NGEN
    This PR (7970) - mean (638ms)  : 620, 657
    master - mean (635ms)  : 617, 653

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 (7970) - mean (193ms)  : 189, 198
    master - mean (193ms)  : 189, 198

    section Bailout
    This PR (7970) - mean (197ms)  : 193, 200
    master - mean (198ms)  : 194, 201

    section CallTarget+Inlining+NGEN
    This PR (7970) - mean (1,120ms)  : 1065, 1175
    master - mean (1,124ms)  : 1052, 1197

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 (7970) - mean (276ms)  : 271, 280
    master - mean (277ms)  : 271, 283

    section Bailout
    This PR (7970) - mean (276ms)  : 273, 280
    master - mean (279ms)  : 272, 286

    section CallTarget+Inlining+NGEN
    This PR (7970) - mean (927ms)  : 876, 977
    master - mean (929ms)  : 888, 970

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

    section Bailout
    This PR (7970) - mean (269ms)  : 266, 272
    master - mean (270ms)  : 267, 273

    section CallTarget+Inlining+NGEN
    This PR (7970) - mean (926ms)  : 886, 966
    master - mean (928ms)  : 879, 976

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

    section Bailout
    This PR (7970) - mean (269ms)  : 265, 272
    master - mean (270ms)  : 264, 276

    section CallTarget+Inlining+NGEN
    This PR (7970) - mean (825ms)  : 803, 848
    master - mean (824ms)  : 804, 844

Loading

@chrisnas chrisnas requested a review from a team as a code owner December 18, 2025 14:56
@pr-commenter
Copy link

pr-commenter bot commented Dec 18, 2025

Benchmarks

Benchmark execution time: 2026-01-09 23:13:34

Comparing candidate commit d426c4a in PR branch chrisnas/update_benchmarks with baseline commit f7b598c in branch master.

Found 10 performance improvements and 2 performance regressions! Performance is the same for 159 metrics, 15 unstable metrics.

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

  • 🟩 execution_time [-83.165ms; -82.862ms] or [-42.278%; -42.124%]

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

  • 🟩 execution_time [-28.905ms; -22.911ms] or [-13.252%; -10.505%]

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

  • 🟩 execution_time [-71.723µs; -42.735µs] or [-18.768%; -11.183%]
  • 🟩 throughput [+320.079op/s; +517.306op/s] or [+12.005%; +19.403%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟩 throughput [+94.663op/s; +120.095op/s] or [+9.303%; +11.802%]

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

  • 🟥 execution_time [+31.499ms; +34.492ms] or [+18.359%; +20.103%]

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

  • 🟩 execution_time [-84.844µs; -74.889µs] or [-5.758%; -5.083%]
  • 🟩 throughput [+36.449op/s; +41.381op/s] or [+5.370%; +6.097%]

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

  • 🟩 execution_time [-60.864µs; -55.203µs] or [-5.675%; -5.148%]
  • 🟩 throughput [+50.791op/s; +55.892op/s] or [+5.447%; +5.994%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟩 throughput [+4592.314op/s; +4867.612op/s] or [+5.676%; +6.017%]

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

  • 🟥 throughput [-29966.108op/s; -22726.620op/s] or [-7.513%; -5.698%]

@chrisnas chrisnas enabled auto-merge (squash) January 12, 2026 10:59
@chrisnas chrisnas merged commit 9cc9f31 into master Jan 13, 2026
157 checks passed
@chrisnas chrisnas deleted the chrisnas/update_benchmarks branch January 13, 2026 10:44
@github-actions github-actions bot added this to the vNext-v3 milestone Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:profiler Issues related to the continous-profiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants