Skip to content

(CI) Migrating benchmark-serverless CI job to short-lived tokens#8219

Merged
rithikanarayan merged 7 commits into
masterfrom
rithika.narayan/APMSVLS-380-token
Mar 13, 2026
Merged

(CI) Migrating benchmark-serverless CI job to short-lived tokens#8219
rithikanarayan merged 7 commits into
masterfrom
rithika.narayan/APMSVLS-380-token

Conversation

@rithikanarayan

Copy link
Copy Markdown
Contributor

Summary of changes

Migrated from use of Gitlab personal access token to short-lived token (using authanywhere) when cloning the serverless-tools repo for the benchmark-serverless CI job.

Reason for change

Keeping up-to-date with current policies about tokens, avoiding token expiry issues.

Implementation details

Test coverage

Other details

@rithikanarayan rithikanarayan changed the title Migrating benchmark-serverless CI job to short-lived tokens (CI) Migrating benchmark-serverless CI job to short-lived tokens Feb 18, 2026
@rithikanarayan rithikanarayan added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Feb 18, 2026
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Feb 18, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8219) 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
duration77.39 ± (77.34 - 77.65) ms74.74 ± (74.68 - 75.04) ms-3.4%
.NET Framework 4.8 - Bailout
duration82.81 ± (82.64 - 83.04) ms79.12 ± (79.10 - 79.52) ms-4.4%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1118.86 ± (1117.74 - 1124.99) ms1090.57 ± (1089.69 - 1096.24) ms-2.5%
.NET Core 3.1 - Baseline
process.internal_duration_ms23.70 ± (23.64 - 23.76) ms23.23 ± (23.17 - 23.30) ms-2.0%
process.time_to_main_ms89.99 ± (89.80 - 90.19) ms87.87 ± (87.68 - 88.06) ms-2.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.89 - 10.90) MB10.89 ± (10.88 - 10.89) MB-0.0%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms23.67 ± (23.61 - 23.74) ms23.16 ± (23.11 - 23.21) ms-2.2%
process.time_to_main_ms92.32 ± (92.05 - 92.59) ms89.91 ± (89.67 - 90.15) ms-2.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.93 - 10.93) MB10.93 ± (10.93 - 10.94) MB+0.0%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms243.95 ± (239.62 - 248.28) ms247.68 ± (243.42 - 251.94) ms+1.5%✅⬆️
process.time_to_main_ms515.59 ± (514.76 - 516.41) ms502.86 ± (502.11 - 503.62) ms-2.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed47.62 ± (47.60 - 47.64) MB47.61 ± (47.59 - 47.63) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 6 - Baseline
process.internal_duration_ms22.21 ± (22.16 - 22.25) ms21.84 ± (21.80 - 21.88) ms-1.6%
process.time_to_main_ms77.25 ± (77.10 - 77.40) ms76.01 ± (75.82 - 76.20) ms-1.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.61 - 10.62) MB10.64 ± (10.63 - 10.64) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms22.40 ± (22.33 - 22.47) ms21.65 ± (21.60 - 21.70) ms-3.4%
process.time_to_main_ms80.08 ± (79.87 - 80.29) ms76.49 ± (76.32 - 76.65) ms-4.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.72 ± (10.72 - 10.73) MB10.75 ± (10.75 - 10.75) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms261.68 ± (258.43 - 264.93) ms262.48 ± (260.27 - 264.70) ms+0.3%✅⬆️
process.time_to_main_ms485.98 ± (485.34 - 486.62) ms476.75 ± (476.01 - 477.49) ms-1.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.41 ± (48.38 - 48.43) MB48.47 ± (48.45 - 48.50) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms20.58 ± (20.54 - 20.62) ms20.21 ± (20.17 - 20.24) ms-1.8%
process.time_to_main_ms77.60 ± (77.43 - 77.78) ms75.81 ± (75.64 - 75.99) ms-2.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.66 - 7.67) MB7.66 ± (7.65 - 7.66) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms20.56 ± (20.51 - 20.61) ms20.03 ± (19.98 - 20.08) ms-2.6%
process.time_to_main_ms78.76 ± (78.58 - 78.94) ms76.33 ± (76.16 - 76.51) ms-3.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.73) MB7.70 ± (7.70 - 7.71) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms197.26 ± (196.62 - 197.91) ms193.54 ± (192.78 - 194.30) ms-1.9%
process.time_to_main_ms476.11 ± (475.33 - 476.90) ms463.21 ± (462.49 - 463.94) ms-2.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.59 ± (36.54 - 36.63) MB36.46 ± (36.41 - 36.51) MB-0.3%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.3%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration193.67 ± (193.79 - 194.64) ms193.74 ± (193.52 - 194.36) ms+0.0%✅⬆️
.NET Framework 4.8 - Bailout
duration197.68 ± (197.44 - 198.07) ms196.68 ± (196.50 - 197.14) ms-0.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1150.26 ± (1151.70 - 1159.33) ms1144.29 ± (1145.20 - 1152.15) ms-0.5%
.NET Core 3.1 - Baseline
process.internal_duration_ms189.09 ± (188.65 - 189.54) ms190.19 ± (189.72 - 190.66) ms+0.6%✅⬆️
process.time_to_main_ms81.65 ± (81.41 - 81.90) ms81.58 ± (81.35 - 81.82) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.14 ± (16.11 - 16.16) MB16.08 ± (16.05 - 16.10) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.9%
.NET Core 3.1 - Bailout
process.internal_duration_ms187.87 ± (187.61 - 188.14) ms188.73 ± (188.23 - 189.24) ms+0.5%✅⬆️
process.time_to_main_ms82.41 ± (82.23 - 82.60) ms82.27 ± (82.08 - 82.46) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.17 ± (16.14 - 16.20) MB16.10 ± (16.07 - 16.13) MB-0.5%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.2%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms433.72 ± (430.55 - 436.89) ms443.14 ± (441.14 - 445.15) ms+2.2%✅⬆️
process.time_to_main_ms476.31 ± (475.77 - 476.86) ms475.80 ± (475.27 - 476.32) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.10 ± (57.98 - 58.21) MB58.00 ± (57.87 - 58.13) MB-0.2%
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 29)-0.2%
.NET 6 - Baseline
process.internal_duration_ms193.07 ± (192.64 - 193.50) ms194.91 ± (194.44 - 195.38) ms+1.0%✅⬆️
process.time_to_main_ms70.81 ± (70.59 - 71.03) ms70.82 ± (70.65 - 70.98) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.31 ± (16.25 - 16.37) MB16.31 ± (16.24 - 16.38) MB+0.0%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms192.94 ± (192.52 - 193.35) ms192.26 ± (191.88 - 192.64) ms-0.4%
process.time_to_main_ms71.80 ± (71.67 - 71.93) ms71.34 ± (71.19 - 71.49) ms-0.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.27 ± (16.15 - 16.38) MB16.45 ± (16.43 - 16.48) MB+1.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+1.1%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms455.65 ± (453.82 - 457.48) ms458.28 ± (456.32 - 460.23) ms+0.6%✅⬆️
process.time_to_main_ms457.51 ± (456.85 - 458.18) ms455.80 ± (455.26 - 456.35) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed57.86 ± (57.75 - 57.97) MB57.97 ± (57.86 - 58.08) MB+0.2%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.1%
.NET 8 - Baseline
process.internal_duration_ms190.13 ± (189.76 - 190.51) ms189.82 ± (189.47 - 190.16) ms-0.2%
process.time_to_main_ms70.29 ± (70.02 - 70.56) ms69.64 ± (69.44 - 69.85) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.72 ± (11.69 - 11.74) MB11.82 ± (11.79 - 11.85) MB+0.9%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.2%
.NET 8 - Bailout
process.internal_duration_ms189.83 ± (189.46 - 190.20) ms189.67 ± (189.32 - 190.02) ms-0.1%
process.time_to_main_ms71.00 ± (70.85 - 71.14) ms70.65 ± (70.51 - 70.78) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.80 ± (11.77 - 11.82) MB11.84 ± (11.81 - 11.87) MB+0.4%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms370.61 ± (369.26 - 371.97) ms367.10 ± (365.61 - 368.60) ms-0.9%
process.time_to_main_ms438.64 ± (437.90 - 439.39) ms437.22 ± (436.51 - 437.94) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed47.92 ± (47.89 - 47.94) MB47.90 ± (47.87 - 47.94) MB-0.0%
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 (8219) - mean (75ms)  : 72, 78
    master - mean (77ms)  : 75, 80

    section Bailout
    This PR (8219) - mean (79ms)  : 77, 82
    master - mean (83ms)  : 80, 85

    section CallTarget+Inlining+NGEN
    This PR (8219) - mean (1,093ms)  : 1046, 1140
    master - mean (1,121ms)  : 1067, 1175

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 (8219) - mean (118ms)  : 115, 121
    master - mean (121ms)  : 117, 125

    section Bailout
    This PR (8219) - mean (120ms)  : 117, 123
    master - mean (123ms)  : 120, 127

    section CallTarget+Inlining+NGEN
    This PR (8219) - mean (783ms)  : 721, 845
    master - mean (796ms)  : 730, 863

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8219) - mean (104ms)  : 101, 108
    master - mean (106ms)  : 103, 109

    section Bailout
    This PR (8219) - mean (105ms)  : 103, 107
    master - mean (109ms)  : 106, 112

    section CallTarget+Inlining+NGEN
    This PR (8219) - mean (771ms)  : 731, 811
    master - mean (776ms)  : 708, 844

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8219) - mean (104ms)  : 101, 107
    master - mean (106ms)  : 103, 110

    section Bailout
    This PR (8219) - mean (104ms)  : 102, 106
    master - mean (107ms)  : 105, 110

    section CallTarget+Inlining+NGEN
    This PR (8219) - mean (686ms)  : 667, 706
    master - mean (708ms)  : 684, 732

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 (8219) - mean (194ms)  : 190, 198
    master - mean (194ms)  : 189, 199

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

    section CallTarget+Inlining+NGEN
    This PR (8219) - mean (1,149ms)  : 1097, 1200
    master - mean (1,156ms)  : 1099, 1212

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 (8219) - mean (280ms)  : 273, 287
    master - mean (280ms)  : 273, 286

    section Bailout
    This PR (8219) - mean (279ms)  : 273, 285
    master - mean (279ms)  : 275, 283

    section CallTarget+Inlining+NGEN
    This PR (8219) - mean (948ms)  : 913, 983
    master - mean (940ms)  : 886, 994

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8219) - mean (274ms)  : 264, 284
    master - mean (272ms)  : 267, 278

    section Bailout
    This PR (8219) - mean (272ms)  : 267, 277
    master - mean (273ms)  : 268, 279

    section CallTarget+Inlining+NGEN
    This PR (8219) - mean (942ms)  : 903, 981
    master - mean (943ms)  : 914, 973

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

    section Bailout
    This PR (8219) - mean (270ms)  : 265, 275
    master - mean (271ms)  : 266, 275

    section CallTarget+Inlining+NGEN
    This PR (8219) - mean (836ms)  : 821, 852
    master - mean (841ms)  : 818, 864

Loading

@pr-commenter

pr-commenter Bot commented Mar 2, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-03-12 21:00:51

Comparing candidate commit 3fc445d in PR branch rithika.narayan/APMSVLS-380-token with baseline commit fb1ebae in branch master.

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

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

  • 🟥 execution_time [+14.586ms; +18.274ms] or [+7.306%; +9.153%]

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

  • 🟩 execution_time [-18.978ms; -12.849ms] or [-8.821%; -5.972%]

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

  • 🟩 execution_time [-24.523ms; -23.808ms] or [-12.058%; -11.706%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+23.616ms; +29.793ms] or [+11.115%; +14.022%]
  • 🟥 throughput [-139.280op/s; -111.004op/s] or [-12.328%; -9.825%]

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

  • 🟩 execution_time [-40.500ms; -37.424ms] or [-19.093%; -17.643%]

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

  • 🟥 execution_time [+60.005ms; +66.547ms] or [+42.685%; +47.339%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • 🟥 execution_time [+181.699µs; +185.435µs] or [+9.435%; +9.629%]
  • 🟥 throughput [-45.653op/s; -44.728op/s] or [-8.792%; -8.614%]

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

  • 🟩 execution_time [-787.888µs; -534.731µs] or [-28.804%; -19.549%]

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

  • 🟩 execution_time [-107.682µs; -102.212µs] or [-9.596%; -9.109%]
  • 🟩 throughput [+89.724op/s; +94.132op/s] or [+10.068%; +10.563%]

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

  • 🟩 execution_time [-34.015ms; -31.830ms] or [-16.886%; -15.801%]

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

  • 🟥 execution_time [+77.365ms; +80.718ms] or [+65.480%; +68.317%]

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

  • 🟥 execution_time [+9.969ms; +11.380ms] or [+10.885%; +12.425%]

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

  • 🟩 throughput [+12758101.105op/s; +13709995.459op/s] or [+5.606%; +6.024%]

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

  • 🟥 execution_time [+12.830ms; +17.825ms] or [+6.432%; +8.935%]

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

  • 🟥 execution_time [+20.062ms; +25.501ms] or [+10.199%; +12.964%]

@rithikanarayan
rithikanarayan marked this pull request as ready for review March 13, 2026 01:59
@rithikanarayan
rithikanarayan requested a review from a team as a code owner March 13, 2026 01:59

@andrewlock andrewlock 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!

@rithikanarayan
rithikanarayan merged commit 774e7dd into master Mar 13, 2026
137 checks passed
@rithikanarayan
rithikanarayan deleted the rithika.narayan/APMSVLS-380-token branch March 13, 2026 13:14
@github-actions github-actions Bot added this to the vNext-v3 milestone Mar 13, 2026
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.

3 participants