Skip to content

Add pagination metrics for known tests fetch#8897

Draft
calvinbayer wants to merge 1 commit into
masterfrom
add-known-tests-pagination-metrics
Draft

Add pagination metrics for known tests fetch#8897
calvinbayer wants to merge 1 commit into
masterfrom
add-known-tests-pagination-metrics

Conversation

@calvinbayer

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds three new distribution metrics to track known tests (Early Flake Detection) pagination behavior:

  • known_tests.pages_fetched - Number of pages fetched during pagination
  • known_tests.total_fetch_ms - Wall-clock time from first to last page request
  • known_tests.total_request_ms - Sum of individual per-page request durations

Motivation

Currently, only per-request timing is tracked via known_tests.request_ms. These new metrics provide observability into:

  • How often pagination occurs (single vs multi-page responses)
  • Backend pagination performance (total wall-clock time)
  • Network overhead vs local processing time (total_fetch_ms vs total_request_ms)

Implementation Details

  • Added enum entries to DistributionCIVisibility.cs with telemetry attributes
  • Refactored GetKnownTestsAsync to use ActionCallbacks with closures for accumulating request timing
  • Added Stopwatch to track wall-clock duration across pagination loop
  • Metrics are emitted only on successful completion after all pages are fetched
  • Source generators will create extension methods on next build

Testing

  • Added 2 unit tests to MetricsTelemetryCollectorTests.cs:
    • KnownTestsPaginationMetrics_AreRecordedCorrectly - single value recording
    • KnownTestsPaginationMetrics_AggregateMultipleValues - aggregation across multiple fetches
  • Follows existing telemetry testing pattern (direct collector testing)
  • CI will run full test suite after build + source generation

Checklist

  • Tests added following existing patterns
  • Backward compatible (no breaking changes)
  • Follows existing telemetry patterns
  • CI build + tests (source generation required)

Add three new distribution metrics to track known tests pagination:
- known_tests.pages_fetched - number of pages fetched
- known_tests.total_fetch_ms - wall-clock time for entire fetch
- known_tests.total_request_ms - sum of per-page request times

Metrics are emitted only on successful completion of pagination.

Changes:
- Added enum entries to DistributionCIVisibility.cs
- Updated GetKnownTestsAsync to track timing with Stopwatch and ActionCallbacks
- Added unit tests to MetricsTelemetryCollectorTests.cs

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@calvinbayer
calvinbayer force-pushed the add-known-tests-pagination-metrics branch from 2707b01 to eed6b87 Compare July 13, 2026 11:45
@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8897) 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
duration69.88 ± (70.23 - 70.79) ms70.91 ± (71.11 - 71.66) ms+1.5%✅⬆️
.NET Framework 4.8 - Bailout
duration73.61 ± (73.54 - 73.85) ms73.89 ± (73.85 - 74.17) ms+0.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1076.46 ± (1075.57 - 1081.03) ms1095.27 ± (1097.74 - 1108.30) ms+1.7%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.07 ± (22.04 - 22.10) ms22.25 ± (22.21 - 22.29) ms+0.8%✅⬆️
process.time_to_main_ms80.38 ± (80.19 - 80.56) ms81.58 ± (81.36 - 81.81) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.94 - 10.95) MB11.00 ± (11.00 - 11.01) MB+0.5%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.05 ± (22.02 - 22.07) ms22.19 ± (22.16 - 22.22) ms+0.6%✅⬆️
process.time_to_main_ms81.40 ± (81.25 - 81.55) ms82.50 ± (82.35 - 82.65) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.98 ± (10.98 - 10.99) MB11.03 ± (11.02 - 11.03) MB+0.4%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.13 ± (209.17 - 211.09) ms208.63 ± (207.81 - 209.45) ms-0.7%
process.time_to_main_ms531.50 ± (530.27 - 532.73) ms541.10 ± (539.82 - 542.38) ms+1.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.34 ± (49.31 - 49.36) MB49.60 ± (49.57 - 49.63) MB+0.5%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms20.83 ± (20.81 - 20.86) ms20.74 ± (20.71 - 20.77) ms-0.4%
process.time_to_main_ms69.56 ± (69.43 - 69.69) ms70.22 ± (70.10 - 70.34) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.64 ± (10.64 - 10.64) MB10.71 ± (10.71 - 10.71) MB+0.7%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.95 ± (20.91 - 20.99) ms21.02 ± (20.98 - 21.06) ms+0.3%✅⬆️
process.time_to_main_ms72.55 ± (72.29 - 72.81) ms73.51 ± (73.26 - 73.76) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.76 ± (10.76 - 10.76) MB10.83 ± (10.83 - 10.83) MB+0.7%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms373.39 ± (371.27 - 375.50) ms369.57 ± (367.44 - 371.70) ms-1.0%
process.time_to_main_ms535.59 ± (534.47 - 536.70) ms542.02 ± (540.80 - 543.24) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.35 ± (50.33 - 50.37) MB50.53 ± (50.50 - 50.55) MB+0.3%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.18 ± (19.14 - 19.21) ms19.46 ± (19.41 - 19.50) ms+1.5%✅⬆️
process.time_to_main_ms69.45 ± (69.22 - 69.67) ms71.64 ± (71.37 - 71.91) ms+3.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.67 - 7.68) MB7.76 ± (7.75 - 7.77) MB+1.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.07 ± (19.04 - 19.11) ms19.16 ± (19.13 - 19.20) ms+0.5%✅⬆️
process.time_to_main_ms69.94 ± (69.83 - 70.06) ms71.18 ± (71.06 - 71.30) ms+1.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.74 ± (7.73 - 7.75) MB7.80 ± (7.80 - 7.81) MB+0.8%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms297.65 ± (295.48 - 299.83) ms296.18 ± (293.92 - 298.45) ms-0.5%
process.time_to_main_ms485.28 ± (484.24 - 486.32) ms492.76 ± (491.81 - 493.72) ms+1.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.80 ± (37.77 - 37.82) MB37.96 ± (37.94 - 37.98) MB+0.4%✅⬆️
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
duration189.72 ± (189.72 - 190.47) ms192.31 ± (192.26 - 192.86) ms+1.4%✅⬆️
.NET Framework 4.8 - Bailout
duration192.99 ± (192.91 - 193.37) ms195.48 ± (195.51 - 196.03) ms+1.3%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1160.46 ± (1159.92 - 1165.60) ms1173.76 ± (1179.13 - 1188.72) ms+1.1%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms184.27 ± (184.01 - 184.53) ms185.35 ± (185.00 - 185.70) ms+0.6%✅⬆️
process.time_to_main_ms79.19 ± (79.05 - 79.34) ms80.51 ± (80.34 - 80.68) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.19 ± (16.16 - 16.22) MB16.33 ± (16.30 - 16.35) MB+0.8%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 20)20 ± (20 - 20)+0.5%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms183.90 ± (183.72 - 184.08) ms184.37 ± (184.07 - 184.68) ms+0.3%✅⬆️
process.time_to_main_ms80.52 ± (80.43 - 80.61) ms81.62 ± (81.45 - 81.78) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.29 ± (16.26 - 16.32) MB16.36 ± (16.34 - 16.39) MB+0.4%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)20 ± (20 - 21)-1.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms375.39 ± (374.28 - 376.50) ms374.81 ± (373.62 - 375.99) ms-0.2%
process.time_to_main_ms518.85 ± (517.82 - 519.88) ms527.58 ± (526.36 - 528.80) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.81 ± (57.76 - 57.87) MB57.99 ± (57.92 - 58.05) MB+0.3%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms188.17 ± (187.94 - 188.41) ms189.44 ± (189.13 - 189.75) ms+0.7%✅⬆️
process.time_to_main_ms69.06 ± (68.92 - 69.21) ms70.28 ± (70.14 - 70.42) ms+1.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.74 ± (15.56 - 15.91) MB16.20 ± (16.10 - 16.30) MB+3.0%✅⬆️
runtime.dotnet.threads.count18 ± (17 - 18)18 ± (18 - 18)+2.7%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms187.28 ± (187.09 - 187.47) ms188.04 ± (187.81 - 188.27) ms+0.4%✅⬆️
process.time_to_main_ms69.97 ± (69.92 - 70.01) ms71.35 ± (71.27 - 71.43) ms+2.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.03 ± (15.86 - 16.19) MB16.08 ± (15.91 - 16.26) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.4%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms585.29 ± (582.60 - 587.99) ms582.33 ± (579.22 - 585.43) ms-0.5%
process.time_to_main_ms524.20 ± (523.44 - 524.96) ms536.52 ± (535.38 - 537.67) ms+2.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.49 ± (61.42 - 61.55) MB61.65 ± (61.59 - 61.72) MB+0.3%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.6%
.NET 8 - Baseline
process.internal_duration_ms185.38 ± (185.13 - 185.63) ms186.54 ± (186.19 - 186.88) ms+0.6%✅⬆️
process.time_to_main_ms67.83 ± (67.71 - 67.95) ms69.25 ± (69.11 - 69.38) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.56 ± (11.45 - 11.67) MB11.91 ± (11.87 - 11.95) MB+3.0%✅⬆️
runtime.dotnet.threads.count17 ± (17 - 18)18 ± (18 - 18)+4.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms184.76 ± (184.59 - 184.93) ms185.91 ± (185.72 - 186.09) ms+0.6%✅⬆️
process.time_to_main_ms68.93 ± (68.88 - 68.99) ms70.62 ± (70.54 - 70.70) ms+2.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.65 ± (11.54 - 11.76) MB12.03 ± (12.00 - 12.06) MB+3.2%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (19 - 19)+4.3%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms512.40 ± (509.98 - 514.82) ms515.47 ± (512.58 - 518.37) ms+0.6%✅⬆️
process.time_to_main_ms474.14 ± (473.52 - 474.75) ms485.15 ± (484.28 - 486.02) ms+2.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.16 ± (51.12 - 51.19) MB51.33 ± (51.30 - 51.36) MB+0.3%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.2%✅⬆️
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 (8897) - mean (71ms)  : 67, 75
    master - mean (71ms)  : 66, 75

    section Bailout
    This PR (8897) - mean (74ms)  : 72, 76
    master - mean (74ms)  : 72, 75

    section CallTarget+Inlining+NGEN
    This PR (8897) - mean (1,103ms)  : 1026, 1180
    master - mean (1,078ms)  : 1039, 1118

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 (8897) - mean (111ms)  : 105, 118
    master - mean (109ms)  : 104, 115

    section Bailout
    This PR (8897) - mean (111ms)  : 109, 113
    master - mean (110ms)  : 108, 111

    section CallTarget+Inlining+NGEN
    This PR (8897) - mean (789ms)  : 764, 814
    master - mean (778ms)  : 756, 800

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

    section Bailout
    This PR (8897) - mean (101ms)  : 96, 107
    master - mean (100ms)  : 94, 106

    section CallTarget+Inlining+NGEN
    This PR (8897) - mean (946ms)  : 907, 984
    master - mean (939ms)  : 905, 974

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8897) - mean (99ms)  : 95, 104
    master - mean (96ms)  : 91, 100

    section Bailout
    This PR (8897) - mean (98ms)  : 96, 100
    master - mean (95ms)  : 93, 97

    section CallTarget+Inlining+NGEN
    This PR (8897) - mean (819ms)  : 785, 853
    master - mean (812ms)  : 775, 848

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 (8897) - mean (193ms)  : 189, 196
    master - mean (190ms)  : 187, 194

    section Bailout
    This PR (8897) - mean (196ms)  : 193, 198
    master - mean (193ms)  : 191, 195

    section CallTarget+Inlining+NGEN
    This PR (8897) - mean (1,184ms)  : 1115, 1253
    master - mean (1,163ms)  : 1121, 1205

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 (8897) - mean (275ms)  : 268, 282
    master - mean (272ms)  : 268, 276

    section Bailout
    This PR (8897) - mean (275ms)  : 272, 278
    master - mean (273ms)  : 270, 276

    section CallTarget+Inlining+NGEN
    This PR (8897) - mean (943ms)  : 919, 968
    master - mean (935ms)  : 912, 958

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8897) - mean (268ms)  : 261, 276
    master - mean (266ms)  : 262, 270

    section Bailout
    This PR (8897) - mean (268ms)  : 265, 270
    master - mean (266ms)  : 263, 268

    section CallTarget+Inlining+NGEN
    This PR (8897) - mean (1,151ms)  : 1096, 1206
    master - mean (1,139ms)  : 1104, 1173

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8897) - mean (265ms)  : 258, 272
    master - mean (263ms)  : 259, 267

    section Bailout
    This PR (8897) - mean (266ms)  : 263, 269
    master - mean (263ms)  : 260, 266

    section CallTarget+Inlining+NGEN
    This PR (8897) - mean (1,033ms)  : 985, 1082
    master - mean (1,020ms)  : 982, 1058

Loading

@pr-commenter

pr-commenter Bot commented Jul 13, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-13 12:44:01

Comparing candidate commit eed6b87 in PR branch add-known-tests-pagination-metrics with baseline commit 8f5b860 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 2 performance regressions! Performance is the same for 70 metrics, 0 unstable metrics, 62 known flaky benchmarks, 64 flaky benchmarks without significant changes.

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.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-21914.467op/s; -18297.513op/s] or [-6.172%; -5.154%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-8483.391op/s; -8102.957op/s] or [-9.684%; -9.250%]

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

  • 🟥 throughput [-9837.227op/s; -9218.188op/s] or [-11.664%; -10.930%]

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

  • 🟥 throughput [-9485.442op/s; -8077.514op/s] or [-9.645%; -8.213%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+306.568ms; +309.217ms] or [+152.130%; +153.444%]
  • 🟥 throughput [-55.319op/s; -51.136op/s] or [-9.953%; -9.200%]

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

  • 🟥 execution_time [+378.577ms; +380.830ms] or [+299.099%; +300.879%]
  • 🟩 throughput [+92.988op/s; +96.779op/s] or [+12.260%; +12.760%]

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

  • 🟥 execution_time [+392.882ms; +397.078ms] or [+347.685%; +351.399%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.528%; +27.540%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-16.171ms; -12.002ms] or [-7.553%; -5.605%]
  • 🟩 throughput [+7484.091op/s; +10255.913op/s] or [+5.463%; +7.486%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-303690.053op/s; -293119.005op/s] or [-31.008%; -29.929%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.599ms; -21.741ms] or [-11.862%; -9.696%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-164012.661op/s; -146724.396op/s] or [-23.565%; -21.081%]

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

  • 🟩 throughput [+9354.956op/s; +11979.197op/s] or [+7.452%; +9.543%]

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

  • 🟩 throughput [+469259.841op/s; +488795.108op/s] or [+15.647%; +16.299%]

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

  • 🟩 execution_time [-19.190ms; -14.849ms] or [-8.846%; -6.845%]
  • 🟩 throughput [+132564.460op/s; +186993.890op/s] or [+5.262%; +7.422%]

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

  • 🟥 execution_time [+299.708ms; +300.365ms] or [+149.754%; +150.082%]

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

  • 🟥 execution_time [+299.578ms; +302.814ms] or [+151.078%; +152.710%]

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

  • 🟥 execution_time [+299.911ms; +302.441ms] or [+151.072%; +152.346%]

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

  • 🟥 execution_time [+294.586ms; +296.617ms] or [+144.689%; +145.686%]

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

  • 🟥 execution_time [+292.488ms; +296.638ms] or [+142.986%; +145.016%]

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

  • 🟥 execution_time [+300.686ms; +303.304ms] or [+150.282%; +151.591%]

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

  • 🟥 execution_time [+27.209µs; +50.964µs] or [+8.686%; +16.270%]
  • 🟥 throughput [-468.645op/s; -268.894op/s] or [-14.609%; -8.382%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.415ms; +300.230ms] or [+149.439%; +149.845%]

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

  • unstable execution_time [+314.267ms; +385.430ms] or [+341.464%; +418.785%]
  • 🟩 throughput [+780.403op/s; +1023.696op/s] or [+6.413%; +8.412%]

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

  • unstable execution_time [+298.501ms; +351.103ms] or [+226.649%; +266.589%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+369.347ms; +426.436ms] or [+169.822%; +196.071%]
  • 🟥 throughput [-568.312op/s; -520.955op/s] or [-51.495%; -47.204%]

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

  • unstable execution_time [+145.763ms; +290.667ms] or [+62.118%; +123.870%]
  • 🟥 throughput [-675.686op/s; -591.772op/s] or [-45.068%; -39.471%]

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

  • 🟥 execution_time [+347.059ms; +357.663ms] or [+207.582%; +213.924%]
  • 🟥 throughput [-400.350op/s; -365.194op/s] or [-27.876%; -25.428%]

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

  • 🟩 execution_time [-76.875µs; -62.627µs] or [-7.130%; -5.808%]
  • 🟩 throughput [+56.848op/s; +72.731op/s] or [+6.129%; +7.842%]

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

  • 🟩 execution_time [-155.513µs; -111.673µs] or [-7.878%; -5.657%]
  • 🟩 throughput [+31.616op/s; +43.754op/s] or [+6.241%; +8.637%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+302.012ms; +303.783ms] or [+152.088%; +152.979%]

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

  • 🟥 execution_time [+300.587ms; +302.467ms] or [+150.625%; +151.567%]

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

  • 🟥 execution_time [+301.383ms; +304.485ms] or [+151.402%; +152.960%]
  • 🟩 throughput [+26953.810op/s; +34242.966op/s] or [+5.678%; +7.213%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.212ms; +302.298ms] or [+151.259%; +151.804%]

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

  • 🟥 execution_time [+299.369ms; +301.507ms] or [+148.025%; +149.082%]

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

  • 🟥 execution_time [+303.848ms; +307.436ms] or [+154.004%; +155.822%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.845ms; +304.824ms] or [+151.499%; +152.994%]

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

  • 🟥 execution_time [+301.405ms; +305.821ms] or [+150.223%; +152.424%]
  • 🟩 throughput [+39904.797op/s; +46753.564op/s] or [+7.924%; +9.284%]

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

  • 🟥 execution_time [+301.249ms; +303.845ms] or [+149.869%; +151.160%]

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

  • 🟩 execution_time [-16.201ms; -12.485ms] or [-7.534%; -5.806%]

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

  • unstable execution_time [+14.404µs; +58.098µs] or [+3.558%; +14.351%]

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

  • 🟩 allocated_mem [-25.532KB; -25.510KB] or [-9.313%; -9.305%]
  • unstable execution_time [-36.713µs; +22.476µs] or [-7.256%; +4.442%]
  • unstable throughput [-73.882op/s; +134.422op/s] or [-3.687%; +6.708%]

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

  • 🟩 allocated_mem [-15.619KB; -15.600KB] or [-5.694%; -5.687%]
  • unstable execution_time [-52.462µs; +8.585µs] or [-9.091%; +1.488%]

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

  • unstable execution_time [+7.738µs; +13.000µs] or [+18.291%; +30.728%]
  • 🟥 throughput [-5489.494op/s; -3509.305op/s] or [-23.109%; -14.773%]

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

  • unstable execution_time [-15.177µs; -7.245µs] or [-23.547%; -11.240%]
  • unstable throughput [+1935.562op/s; +3677.901op/s] or [+11.875%; +22.565%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.766ms; +303.334ms] or [+152.529%; +153.322%]

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

  • 🟥 execution_time [+302.794ms; +305.097ms] or [+154.121%; +155.293%]

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

  • 🟥 execution_time [+299.402ms; +301.968ms] or [+149.888%; +151.172%]

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

  • 🟩 throughput [+35894.778op/s; +39924.664op/s] or [+6.794%; +7.557%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+297.108ms; +299.469ms] or [+148.082%; +149.258%]

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

  • 🟥 execution_time [+301.615ms; +303.540ms] or [+151.457%; +152.423%]

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

  • 🟥 execution_time [+301.228ms; +303.866ms] or [+152.763%; +154.102%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+301.364ms; +302.386ms] or [+150.322%; +150.832%]
  • 🟩 throughput [+66103554.577op/s; +66469551.550op/s] or [+48.141%; +48.407%]

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

  • unstable execution_time [+319.690ms; +388.198ms] or [+397.591%; +482.794%]

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

  • 🟥 execution_time [+300.243ms; +301.333ms] or [+149.754%; +150.298%]
  • 🟩 throughput [+17935623.799op/s; +18905824.586op/s] or [+7.944%; +8.374%]

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

  • 🟩 throughput [+91806.366op/s; +98871.196op/s] or [+8.572%; +9.231%]

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

  • 🟩 throughput [+64710.297op/s; +84071.136op/s] or [+7.490%; +9.731%]

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

  • 🟩 throughput [+97162.791op/s; +126995.120op/s] or [+7.521%; +9.830%]

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

  • 🟩 throughput [+88186.366op/s; +95969.905op/s] or [+8.758%; +9.531%]

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

  • 🟩 throughput [+54327.032op/s; +58404.471op/s] or [+9.865%; +10.605%]

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

  • 🟩 throughput [+23334.437op/s; +33435.390op/s] or [+5.223%; +7.484%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • 🟥 throughput [-41172.360op/s; -36528.926op/s] or [-6.026%; -5.346%]

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

  • 🟩 throughput [+65474.616op/s; +86546.781op/s] or [+7.315%; +9.669%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

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.

1 participant