Skip to content

Add arm64 smoke tests for macOS#7997

Merged
andrewlock merged 7 commits intomasterfrom
andrew/maco-arm64-smoke-tests
Dec 23, 2025
Merged

Add arm64 smoke tests for macOS#7997
andrewlock merged 7 commits intomasterfrom
andrew/maco-arm64-smoke-tests

Conversation

@andrewlock
Copy link
Member

Summary of changes

Run smoke tests against arm64 macOS images

Reason for change

We have a blindspot for macOS testing on arm64, and Azure DevOps recently added preview runners, so we should try to use them.

Implementation details

Currently, AzDo says

The preview image is intended for testing purposes only and shouldn't be used for production workloads. High request volumes might cause queuing due to limited capacity.

So I just added a single instance, to try to avoid the risk of overloading and flake. We only run these on master by default too, so should hopefully be ok.

Test coverage

Will run a "full installer test" so that these tests trigger

Other details

Fixed a typo in the macos14 .NET 10 entry too

@andrewlock andrewlock requested a review from a team as a code owner December 22, 2025 11:23
@andrewlock andrewlock added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Dec 22, 2025
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@datadog-official

This comment has been minimized.

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

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

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7997) 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.26 ± (68.28 - 68.50) ms68.51 ± (68.40 - 68.68) ms+0.4%✅⬆️
.NET Framework 4.8 - Bailout
duration72.12 ± (72.07 - 72.25) ms72.10 ± (72.02 - 72.28) ms-0.0%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1000.22 ± (1002.83 - 1008.87) ms1000.59 ± (1005.92 - 1014.71) ms+0.0%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms21.90 ± (21.87 - 21.94) ms21.87 ± (21.85 - 21.90) ms-0.1%
process.time_to_main_ms78.52 ± (78.36 - 78.68) ms78.59 ± (78.42 - 78.75) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.93 - 10.95) MB10.92 ± (10.91 - 10.92) MB-0.2%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms21.81 ± (21.79 - 21.83) ms21.89 ± (21.86 - 21.91) ms+0.3%✅⬆️
process.time_to_main_ms79.80 ± (79.70 - 79.90) ms79.61 ± (79.52 - 79.70) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.97 ± (10.97 - 10.98) MB10.94 ± (10.94 - 10.95) MB-0.3%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.43 ± (208.64 - 212.23) ms210.12 ± (208.81 - 211.43) ms-0.1%
process.time_to_main_ms471.02 ± (470.45 - 471.60) ms472.85 ± (472.33 - 473.38) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.15 ± (48.13 - 48.17) MB48.08 ± (48.06 - 48.10) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms20.61 ± (20.57 - 20.64) ms20.55 ± (20.52 - 20.58) ms-0.3%
process.time_to_main_ms67.79 ± (67.67 - 67.91) ms67.80 ± (67.68 - 67.91) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.61 ± (10.61 - 10.62) MB10.64 ± (10.64 - 10.65) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.55 ± (20.53 - 20.58) ms20.56 ± (20.53 - 20.59) ms+0.0%✅⬆️
process.time_to_main_ms68.68 ± (68.63 - 68.74) ms68.89 ± (68.82 - 68.95) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.67 ± (10.66 - 10.68) MB10.68 ± (10.68 - 10.69) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms198.88 ± (197.75 - 200.00) ms199.55 ± (198.35 - 200.75) ms+0.3%✅⬆️
process.time_to_main_ms439.33 ± (438.77 - 439.89) ms438.26 ± (437.60 - 438.91) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.26 ± (48.19 - 48.33) MB48.10 ± (48.01 - 48.18) MB-0.3%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms18.78 ± (18.75 - 18.81) ms18.84 ± (18.81 - 18.88) ms+0.3%✅⬆️
process.time_to_main_ms67.07 ± (66.95 - 67.18) ms66.94 ± (66.83 - 67.05) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.67 - 7.69) 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.77 ± (18.75 - 18.79) ms18.83 ± (18.80 - 18.85) ms+0.3%✅⬆️
process.time_to_main_ms68.13 ± (68.07 - 68.19) ms68.09 ± (68.03 - 68.14) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.73) MB7.75 ± (7.74 - 7.76) MB+0.4%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms178.87 ± (177.91 - 179.84) ms180.00 ± (179.09 - 180.90) ms+0.6%✅⬆️
process.time_to_main_ms423.97 ± (423.40 - 424.53) ms423.87 ± (423.40 - 424.35) ms-0.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.30 ± (36.28 - 36.33) MB36.30 ± (36.27 - 36.33) 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
duration193.34 ± (193.23 - 194.02) ms192.50 ± (192.54 - 193.27) ms-0.4%
.NET Framework 4.8 - Bailout
duration196.91 ± (196.83 - 197.30) ms196.49 ± (196.29 - 196.71) ms-0.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1110.12 ± (1111.01 - 1117.30) ms1107.01 ± (1107.99 - 1115.55) ms-0.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms187.57 ± (187.26 - 187.88) ms188.10 ± (187.75 - 188.45) ms+0.3%✅⬆️
process.time_to_main_ms80.33 ± (80.16 - 80.50) ms80.62 ± (80.42 - 80.82) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.07 ± (16.04 - 16.09) MB16.13 ± (16.10 - 16.16) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (19 - 20)+0.1%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms187.24 ± (186.97 - 187.52) ms187.70 ± (187.40 - 188.00) ms+0.2%✅⬆️
process.time_to_main_ms81.74 ± (81.60 - 81.88) ms81.86 ± (81.73 - 82.00) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.16 ± (16.13 - 16.19) MB16.13 ± (16.10 - 16.16) MB-0.2%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.4%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms398.17 ± (395.16 - 401.17) ms397.91 ± (395.22 - 400.61) ms-0.1%
process.time_to_main_ms473.43 ± (472.81 - 474.04) ms474.41 ± (473.70 - 475.12) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.22 ± (58.07 - 58.37) MB58.58 ± (58.44 - 58.73) MB+0.6%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms191.59 ± (191.22 - 191.95) ms192.54 ± (192.16 - 192.91) ms+0.5%✅⬆️
process.time_to_main_ms69.98 ± (69.79 - 70.17) ms69.87 ± (69.68 - 70.06) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.05 ± (15.90 - 16.21) MB16.14 ± (16.00 - 16.28) MB+0.5%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (19 - 19)+2.3%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms190.60 ± (190.37 - 190.83) ms191.17 ± (190.87 - 191.46) ms+0.3%✅⬆️
process.time_to_main_ms70.66 ± (70.58 - 70.75) ms70.84 ± (70.73 - 70.94) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.21 ± (16.09 - 16.34) MB16.00 ± (15.85 - 16.16) MB-1.3%
runtime.dotnet.threads.count20 ± (20 - 20)19 ± (19 - 19)-3.5%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms404.56 ± (402.32 - 406.81) ms412.70 ± (410.11 - 415.29) ms+2.0%✅⬆️
process.time_to_main_ms444.03 ± (443.43 - 444.63) ms445.14 ± (444.44 - 445.83) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.50 ± (58.34 - 58.65) MB59.04 ± (58.90 - 59.18) MB+0.9%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)29 ± (29 - 30)-0.2%
.NET 8 - Baseline
process.internal_duration_ms189.51 ± (189.24 - 189.79) ms189.88 ± (189.54 - 190.23) ms+0.2%✅⬆️
process.time_to_main_ms69.26 ± (69.10 - 69.42) ms69.39 ± (69.23 - 69.56) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.75 ± (11.72 - 11.78) MB11.72 ± (11.70 - 11.74) MB-0.3%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.5%
.NET 8 - Bailout
process.internal_duration_ms189.35 ± (189.10 - 189.60) ms189.38 ± (189.13 - 189.64) ms+0.0%✅⬆️
process.time_to_main_ms70.19 ± (70.11 - 70.28) ms70.33 ± (70.24 - 70.43) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.82 ± (11.77 - 11.86) MB11.83 ± (11.80 - 11.86) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms364.47 ± (362.75 - 366.19) ms364.94 ± (363.40 - 366.48) ms+0.1%✅⬆️
process.time_to_main_ms427.52 ± (426.89 - 428.14) ms428.62 ± (428.13 - 429.11) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed47.90 ± (47.86 - 47.93) MB48.00 ± (47.97 - 48.03) MB+0.2%✅⬆️
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 (7997) - mean (69ms)  : 67, 70
    master - mean (68ms)  : 67, 70

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

    section CallTarget+Inlining+NGEN
    This PR (7997) - mean (1,010ms)  : 945, 1076
    master - mean (1,006ms)  : 962, 1050

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

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

    section CallTarget+Inlining+NGEN
    This PR (7997) - mean (710ms)  : 683, 737
    master - mean (709ms)  : 673, 745

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

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

    section CallTarget+Inlining+NGEN
    This PR (7997) - mean (664ms)  : 640, 687
    master - mean (668ms)  : 631, 705

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

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

    section CallTarget+Inlining+NGEN
    This PR (7997) - mean (631ms)  : 616, 645
    master - mean (631ms)  : 614, 648

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 (7997) - mean (193ms)  : 189, 197
    master - mean (194ms)  : 190, 198

    section Bailout
    This PR (7997) - mean (197ms)  : 194, 199
    master - mean (197ms)  : 195, 199

    section CallTarget+Inlining+NGEN
    This PR (7997) - mean (1,112ms)  : 1055, 1169
    master - mean (1,114ms)  : 1069, 1159

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 (7997) - mean (277ms)  : 272, 282
    master - mean (276ms)  : 272, 280

    section Bailout
    This PR (7997) - mean (277ms)  : 274, 281
    master - mean (277ms)  : 273, 280

    section CallTarget+Inlining+NGEN
    This PR (7997) - mean (903ms)  : 862, 945
    master - mean (907ms)  : 848, 966

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

    section Bailout
    This PR (7997) - mean (270ms)  : 266, 274
    master - mean (269ms)  : 266, 272

    section CallTarget+Inlining+NGEN
    This PR (7997) - mean (893ms)  : 848, 937
    master - mean (881ms)  : 839, 923

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7997) - mean (269ms)  : 264, 274
    master - mean (268ms)  : 264, 273

    section Bailout
    This PR (7997) - mean (269ms)  : 266, 272
    master - mean (269ms)  : 266, 272

    section CallTarget+Inlining+NGEN
    This PR (7997) - mean (825ms)  : 798, 853
    master - mean (823ms)  : 804, 843

Loading

@pr-commenter
Copy link

pr-commenter bot commented Dec 22, 2025

Benchmarks

Benchmark execution time: 2025-12-23 10:27:34

Comparing candidate commit 26e43c3 in PR branch andrew/maco-arm64-smoke-tests with baseline commit 02a29cf in branch master.

Found 9 performance improvements and 2 performance regressions! Performance is the same for 162 metrics, 13 unstable metrics.

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

  • 🟥 execution_time [+89.416ms; +89.715ms] or [+81.471%; +81.743%]

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

  • 🟩 execution_time [-16.725ms; -10.628ms] or [-7.914%; -5.029%]

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

  • 🟩 execution_time [-25.047ms; -24.091ms] or [-12.307%; -11.838%]

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

  • 🟩 execution_time [-112.225ms; -93.809ms] or [-56.674%; -47.374%]

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

  • 🟩 throughput [+171.016op/s; +210.291op/s] or [+12.684%; +15.597%]

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

  • 🟩 execution_time [-75.345µs; -70.309µs] or [-6.859%; -6.400%]
  • 🟩 throughput [+62.461op/s; +66.784op/s] or [+6.861%; +7.336%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery netcoreapp3.1

  • 🟥 throughput [-31101.176op/s; -24489.281op/s] or [-7.614%; -5.995%]

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

  • 🟩 execution_time [-20.933ms; -14.976ms] or [-9.721%; -6.954%]

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

  • 🟩 throughput [+169.953op/s; +338.579op/s] or [+8.862%; +17.655%]

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

  • 🟩 execution_time [-41.511ms; -40.580ms] or [-20.713%; -20.249%]

@andrewlock andrewlock enabled auto-merge (squash) December 23, 2025 09:32
@andrewlock andrewlock merged commit 017ba0f into master Dec 23, 2025
144 of 146 checks passed
@andrewlock andrewlock deleted the andrew/maco-arm64-smoke-tests branch December 23, 2025 10:36
@github-actions github-actions bot added this to the vNext-v3 milestone Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:builds project files, build scripts, pipelines, versioning, releases, packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants