Skip to content

Fix off-by-one error in ASM Encoder#8637

Open
andrewlock wants to merge 1 commit into
masterfrom
andrew/fix-off-by-one-error-in-encoder
Open

Fix off-by-one error in ASM Encoder#8637
andrewlock wants to merge 1 commit into
masterfrom
andrew/fix-off-by-one-error-in-encoder

Conversation

@andrewlock
Copy link
Copy Markdown
Member

Summary of changes

Fix off-by-one error in the Encoder when encoding an IEnumerable that doesn't implement IList

Reason for change

There's an off by one error in the encoder

Implementation details

  • Create a PR to repro
  • Fix the off-by-one error

Test coverage

Added a unit test to demonstrate the error and fix it

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

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8637) 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
duration72.53 ± (72.45 - 72.83) ms72.03 ± (72.09 - 72.41) ms-0.7%
.NET Framework 4.8 - Bailout
duration78.88 ± (78.69 - 79.22) ms78.72 ± (78.85 - 79.46) ms-0.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1101.30 ± (1100.83 - 1107.78) ms1104.67 ± (1105.50 - 1113.34) ms+0.3%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.39 ± (22.35 - 22.43) ms22.78 ± (22.72 - 22.84) ms+1.7%✅⬆️
process.time_to_main_ms83.82 ± (83.63 - 84.01) ms86.72 ± (86.39 - 87.05) ms+3.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.92 - 10.92) MB10.92 ± (10.92 - 10.92) MB+0.0%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.80 ± (22.75 - 22.85) ms22.65 ± (22.60 - 22.70) ms-0.7%
process.time_to_main_ms88.38 ± (88.08 - 88.68) ms87.95 ± (87.68 - 88.23) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.88 ± (10.88 - 10.88) MB10.95 ± (10.94 - 10.95) MB+0.6%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms212.71 ± (211.77 - 213.65) ms212.64 ± (211.72 - 213.57) ms-0.0%
process.time_to_main_ms537.00 ± (535.72 - 538.28) ms537.59 ± (536.32 - 538.87) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.41 ± (48.38 - 48.43) MB48.45 ± (48.42 - 48.47) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 6 - Baseline
process.internal_duration_ms21.37 ± (21.33 - 21.41) ms21.62 ± (21.56 - 21.68) ms+1.2%✅⬆️
process.time_to_main_ms74.28 ± (74.03 - 74.53) ms75.89 ± (75.61 - 76.17) ms+2.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.63 - 10.64) MB10.65 ± (10.64 - 10.65) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.60 ± (21.55 - 21.66) ms21.06 ± (21.02 - 21.10) ms-2.5%
process.time_to_main_ms77.44 ± (77.19 - 77.69) ms74.69 ± (74.50 - 74.87) ms-3.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.75 ± (10.75 - 10.75) MB10.76 ± (10.76 - 10.76) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms375.86 ± (373.58 - 378.13) ms376.22 ± (374.25 - 378.20) ms+0.1%✅⬆️
process.time_to_main_ms539.08 ± (537.82 - 540.34) ms543.50 ± (542.04 - 544.96) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.79 ± (49.77 - 49.81) MB49.91 ± (49.88 - 49.93) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.6%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.35 ± (19.32 - 19.38) ms19.48 ± (19.44 - 19.52) ms+0.7%✅⬆️
process.time_to_main_ms72.06 ± (71.88 - 72.25) ms72.55 ± (72.37 - 72.72) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.69 ± (7.68 - 7.69) MB7.67 ± (7.67 - 7.68) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.70 ± (19.66 - 19.75) ms19.87 ± (19.82 - 19.93) ms+0.9%✅⬆️
process.time_to_main_ms75.27 ± (75.03 - 75.51) ms76.57 ± (76.26 - 76.89) ms+1.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.74 ± (7.73 - 7.74) MB7.72 ± (7.72 - 7.73) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms291.88 ± (289.76 - 294.00) ms297.05 ± (294.54 - 299.56) ms+1.8%✅⬆️
process.time_to_main_ms497.89 ± (496.73 - 499.05) ms494.86 ± (493.85 - 495.86) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.94 ± (36.92 - 36.97) MB36.90 ± (36.87 - 36.93) MB-0.1%
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
duration201.46 ± (201.24 - 202.33) ms200.27 ± (199.81 - 200.73) ms-0.6%
.NET Framework 4.8 - Bailout
duration205.63 ± (205.01 - 206.04) ms202.72 ± (202.50 - 203.47) ms-1.4%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1202.91 ± (1202.06 - 1208.42) ms1191.69 ± (1190.88 - 1196.44) ms-0.9%
.NET Core 3.1 - Baseline
process.internal_duration_ms195.59 ± (195.03 - 196.15) ms193.05 ± (192.60 - 193.51) ms-1.3%
process.time_to_main_ms84.19 ± (83.85 - 84.52) ms83.00 ± (82.75 - 83.26) ms-1.4%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.02 ± (16.00 - 16.05) MB16.09 ± (16.07 - 16.11) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.6%
.NET Core 3.1 - Bailout
process.internal_duration_ms195.01 ± (194.55 - 195.46) ms193.62 ± (193.11 - 194.14) ms-0.7%
process.time_to_main_ms85.60 ± (85.30 - 85.89) ms84.63 ± (84.37 - 84.89) ms-1.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.10 ± (16.07 - 16.13) MB16.12 ± (16.10 - 16.14) MB+0.1%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.3%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms389.46 ± (388.19 - 390.72) ms386.88 ± (385.43 - 388.32) ms-0.7%
process.time_to_main_ms535.18 ± (533.98 - 536.38) ms534.85 ± (533.74 - 535.96) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.40 ± (58.18 - 58.63) MB57.66 ± (57.45 - 57.88) MB-1.3%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.3%
.NET 6 - Baseline
process.internal_duration_ms199.67 ± (199.17 - 200.16) ms198.08 ± (197.57 - 198.59) ms-0.8%
process.time_to_main_ms72.88 ± (72.56 - 73.20) ms72.33 ± (72.07 - 72.58) ms-0.8%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.29 ± (16.27 - 16.32) MB16.41 ± (16.38 - 16.43) MB+0.7%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.9%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms198.40 ± (198.01 - 198.80) ms197.56 ± (197.04 - 198.08) ms-0.4%
process.time_to_main_ms73.38 ± (73.19 - 73.56) ms73.19 ± (72.94 - 73.44) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.33 ± (16.30 - 16.36) MB16.49 ± (16.46 - 16.52) MB+1.0%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-1.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms597.80 ± (595.34 - 600.25) ms592.24 ± (589.58 - 594.89) ms-0.9%
process.time_to_main_ms537.07 ± (536.12 - 538.03) ms536.99 ± (536.06 - 537.93) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.54 ± (61.45 - 61.63) MB61.29 ± (61.19 - 61.39) MB-0.4%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.5%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms198.21 ± (197.75 - 198.68) ms197.11 ± (196.63 - 197.59) ms-0.6%
process.time_to_main_ms72.57 ± (72.31 - 72.83) ms72.30 ± (72.02 - 72.57) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.67 ± (11.65 - 11.68) MB11.71 ± (11.70 - 11.73) MB+0.4%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms197.65 ± (197.19 - 198.11) ms196.53 ± (195.98 - 197.07) ms-0.6%
process.time_to_main_ms73.76 ± (73.49 - 74.03) ms73.14 ± (72.83 - 73.45) ms-0.8%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.69 ± (11.67 - 11.71) MB11.75 ± (11.73 - 11.77) MB+0.5%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.4%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms516.56 ± (513.81 - 519.31) ms514.14 ± (511.35 - 516.92) ms-0.5%
process.time_to_main_ms493.60 ± (492.87 - 494.33) ms494.70 ± (493.88 - 495.53) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.59 ± (50.55 - 50.63) MB50.62 ± (50.59 - 50.66) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+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 (8637) - mean (72ms)  : 70, 75
    master - mean (73ms)  : 70, 75

    section Bailout
    This PR (8637) - mean (79ms)  : 74, 84
    master - mean (79ms)  : 75, 83

    section CallTarget+Inlining+NGEN
    This PR (8637) - mean (1,109ms)  : 1054, 1165
    master - mean (1,104ms)  : 1056, 1153

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 (8637) - mean (117ms)  : 110, 124
    master - mean (113ms)  : 109, 117

    section Bailout
    This PR (8637) - mean (118ms)  : 113, 123
    master - mean (118ms)  : 113, 124

    section CallTarget+Inlining+NGEN
    This PR (8637) - mean (788ms)  : 755, 820
    master - mean (787ms)  : 759, 814

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8637) - mean (104ms)  : 98, 110
    master - mean (102ms)  : 98, 106

    section Bailout
    This PR (8637) - mean (102ms)  : 99, 105
    master - mean (106ms)  : 100, 111

    section CallTarget+Inlining+NGEN
    This PR (8637) - mean (949ms)  : 910, 989
    master - mean (946ms)  : 907, 986

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

    section Bailout
    This PR (8637) - mean (104ms)  : 100, 109
    master - mean (103ms)  : 98, 108

    section CallTarget+Inlining+NGEN
    This PR (8637) - mean (822ms)  : 781, 864
    master - mean (822ms)  : 788, 856

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 (8637) - mean (200ms)  : 194, 207
    master - mean (202ms)  : 194, 210

    section Bailout
    This PR (8637) - mean (203ms)  : 197, 209
    master - mean (206ms)  : 198, 213

    section CallTarget+Inlining+NGEN
    This PR (8637) - mean (1,194ms)  : 1155, 1233
    master - mean (1,205ms)  : 1159, 1251

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 (8637) - mean (285ms)  : 277, 294
    master - mean (288ms)  : 281, 295

    section Bailout
    This PR (8637) - mean (288ms)  : 277, 298
    master - mean (290ms)  : 283, 296

    section CallTarget+Inlining+NGEN
    This PR (8637) - mean (963ms)  : 939, 987
    master - mean (967ms)  : 941, 992

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8637) - mean (279ms)  : 270, 289
    master - mean (281ms)  : 275, 287

    section Bailout
    This PR (8637) - mean (279ms)  : 273, 286
    master - mean (280ms)  : 275, 285

    section CallTarget+Inlining+NGEN
    This PR (8637) - mean (1,158ms)  : 1117, 1199
    master - mean (1,163ms)  : 1117, 1208

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8637) - mean (279ms)  : 274, 284
    master - mean (281ms)  : 274, 289

    section Bailout
    This PR (8637) - mean (280ms)  : 274, 286
    master - mean (282ms)  : 275, 288

    section CallTarget+Inlining+NGEN
    This PR (8637) - mean (1,040ms)  : 998, 1082
    master - mean (1,041ms)  : 997, 1085

Loading

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented May 14, 2026

Benchmarks

Benchmark execution time: 2026-05-14 16:32:36

Comparing candidate commit 838a140 in PR branch andrew/fix-off-by-one-error-in-encoder with baseline commit 9c344fa in branch master.

Some scenarios are present only in baseline or only in candidate runs. If you didn't create or remove some scenarios in your branch, this maybe a sign of crashed benchmarks 💥💥💥
Check Gitlab CI job log to find if any benchmark has crashed.

Scenarios present only in baseline:

  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1

Found 3 performance improvements and 4 performance regressions! Performance is the same for 48 metrics, 17 unstable metrics, 86 known flaky benchmarks, 40 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.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.188%; -9.180%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.188%; -9.180%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_GetCurrentSpan net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5181.352op/s; -4502.955op/s] or [-5.915%; -5.140%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net6.0

  • 🟥 throughput [-70267.063op/s; -61967.649op/s] or [-47.734%; -42.096%]
  • 🟩 execution_time [-44.851ms; -28.378ms] or [-22.257%; -14.082%]

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

  • 🟥 throughput [-74960.844op/s; -56218.541op/s] or [-37.586%; -28.188%]

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.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0

  • unstable execution_time [-22.980ms; -5.927ms] or [-16.761%; -4.323%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0

  • unstable execution_time [-13.568ms; +27.078ms] or [-9.169%; +18.298%]
  • unstable throughput [-16140.967op/s; +9734.991op/s] or [-10.490%; +6.327%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • unstable execution_time [+9.525ms; +35.357ms] or [+10.650%; +39.532%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0

  • unstable execution_time [+0.400ms; +30.795ms] or [+0.286%; +22.024%]
  • unstable throughput [-41195.027op/s; -20485.130op/s] or [-21.515%; -10.699%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • unstable execution_time [-32.684ms; -7.293ms] or [-29.263%; -6.530%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • unstable execution_time [-18.647ms; +12.188ms] or [-11.986%; +7.834%]
  • unstable throughput [-10988.613op/s; +6618.936op/s] or [-8.359%; +5.035%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • unstable execution_time [+1.545ms; +41.159ms] or [+1.347%; +35.871%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0

  • unstable execution_time [-6.611ms; +31.654ms] or [-4.604%; +22.042%]
  • unstable throughput [-17503.018op/s; +10313.617op/s] or [-9.772%; +5.758%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • unstable execution_time [+10.602ms; +35.650ms] or [+12.274%; +41.271%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0

  • unstable execution_time [-58.819ms; -21.453ms] or [-33.069%; -12.062%]
  • unstable throughput [+15840.590op/s; +44534.480op/s] or [+9.776%; +27.483%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • unstable execution_time [+52.687ms; +83.383ms] or [+60.804%; +96.230%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1

  • unstable execution_time [-61.036ms; -30.721ms] or [-45.746%; -23.025%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0

  • unstable execution_time [+11.597ms; +28.068ms] or [+9.229%; +22.338%]
  • 🟥 throughput [-28888.452op/s; -16893.910op/s] or [-18.295%; -10.699%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • unstable execution_time [-20.678ms; +13.711ms] or [-18.469%; +12.247%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0

  • unstable execution_time [+20.716ms; +66.476ms] or [+14.922%; +47.884%]
  • unstable throughput [-37264.344op/s; -6518.378op/s] or [-23.176%; -4.054%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • unstable execution_time [-61.043ms; -29.295ms] or [-46.045%; -22.097%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0

  • unstable execution_time [-18.756ms; +9.129ms] or [-13.096%; +6.374%]
  • unstable throughput [-5072.502op/s; +15921.772op/s] or [-4.930%; +15.475%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • unstable execution_time [-11.159ms; +15.166ms] or [-7.003%; +9.518%]
  • unstable throughput [-8109.308op/s; +9761.625op/s] or [-7.045%; +8.481%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+9.570%; +9.578%]
  • unstable execution_time [+26.808ms; +46.494ms] or [+21.786%; +37.784%]
  • unstable throughput [-32802.524op/s; -14732.475op/s] or [-18.887%; -8.482%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0

  • unstable execution_time [-36.444ms; +12.905ms] or [-21.626%; +7.658%]
  • unstable throughput [-12745.077op/s; +20350.113op/s] or [-8.470%; +13.524%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-7079.353op/s; -6454.443op/s] or [-8.394%; -7.653%]

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

  • unstable execution_time [-75.910ms; -39.843ms] or [-37.872%; -19.878%]
  • unstable throughput [-38837.006op/s; -23292.498op/s] or [-32.644%; -19.578%]

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

  • unstable execution_time [-92.076ms; -68.587ms] or [-46.311%; -34.497%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+305.582ms; +320.985ms] or [+151.641%; +159.284%]
  • 🟥 throughput [-57.686op/s; -44.851op/s] or [-10.379%; -8.070%]

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

  • 🟥 execution_time [+99.770ms; +101.541ms] or [+78.824%; +80.224%]
  • 🟩 throughput [+83.412op/s; +89.925op/s] or [+10.998%; +11.856%]

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

  • 🟥 execution_time [+84.291ms; +85.201ms] or [+74.595%; +75.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 [+439 bytes; +440 bytes] or [+9.299%; +9.310%]
  • unstable execution_time [-62.317ms; -36.426ms] or [-29.104%; -17.012%]
  • unstable throughput [-26836.109op/s; -10193.254op/s] or [-19.589%; -7.440%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • unstable execution_time [-48.983ms; -27.594ms] or [-23.325%; -13.140%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-266535.915op/s; -259289.242op/s] or [-27.215%; -26.475%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • unstable execution_time [-91.932ms; -66.883ms] or [-40.998%; -29.827%]
  • unstable throughput [-251421.503op/s; -137702.480op/s] or [-26.860%; -14.711%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • unstable execution_time [-60.012ms; -37.121ms] or [-29.955%; -18.529%]
  • 🟥 throughput [-134292.097op/s; -117587.253op/s] or [-19.295%; -16.895%]

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

  • 🟩 execution_time [-45.377ms; -27.485ms] or [-22.895%; -13.868%]

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

  • 🟩 execution_time [-65.430ms; -48.087ms] or [-33.359%; -24.516%]
  • 🟩 throughput [+10985.975op/s; +13746.499op/s] or [+8.752%; +10.951%]

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

  • unstable throughput [-764673.592op/s; -451791.844op/s] or [-25.497%; -15.065%]

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

  • 🟩 execution_time [-42.013ms; -22.343ms] or [-19.367%; -10.299%]
  • 🟩 throughput [+154223.745op/s; +210179.118op/s] or [+6.122%; +8.343%]

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

  • 🟥 execution_time [+301.796ms; +315.597ms] or [+150.797%; +157.693%]

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

  • unstable execution_time [+143.397ms; +184.168ms] or [+72.315%; +92.876%]

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

  • 🟥 execution_time [+301.082ms; +308.208ms] or [+151.662%; +155.251%]

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

  • 🟥 execution_time [+297.620ms; +311.410ms] or [+146.179%; +152.952%]

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

  • 🟥 execution_time [+237.111ms; +255.070ms] or [+115.915%; +124.694%]

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

  • 🟥 execution_time [+302.632ms; +308.714ms] or [+151.255%; +154.295%]

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

  • 🟥 execution_time [+21.663µs; +45.290µs] or [+6.916%; +14.459%]
  • 🟥 throughput [-422.682op/s; -223.846op/s] or [-13.176%; -6.978%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.112ms; +300.909ms] or [+149.787%; +150.184%]

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

  • unstable execution_time [+359.240ms; +376.338ms] or [+390.329%; +408.907%]
  • 🟥 throughput [-6954.185op/s; -6766.659op/s] or [-57.144%; -55.603%]

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

  • unstable execution_time [+323.993ms; +353.580ms] or [+246.005%; +268.470%]
  • 🟥 throughput [-1235.851op/s; -1010.393op/s] or [-11.964%; -9.781%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+301.020ms; +318.220ms] or [+138.406%; +146.314%]
  • 🟥 throughput [-686.327op/s; -668.492op/s] or [-62.188%; -60.572%]

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

  • unstable execution_time [-54.129ms; +79.543ms] or [-23.068%; +33.898%]
  • 🟥 throughput [-698.431op/s; -608.765op/s] or [-46.586%; -40.605%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+346.958ms; +354.997ms] or [+207.521%; +212.329%]
  • 🟥 throughput [-724.187op/s; -690.396op/s] or [-50.424%; -48.071%]

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

  • 🟩 execution_time [-208.138µs; -187.248µs] or [-10.543%; -9.485%]
  • 🟩 throughput [+53.323op/s; +59.914op/s] or [+10.526%; +11.827%]

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

  • 🟩 execution_time [-257.120µs; -245.340µs] or [-6.520%; -6.222%]
  • 🟩 throughput [+16.839op/s; +17.687op/s] or [+6.640%; +6.975%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+306.855ms; +320.928ms] or [+154.526%; +161.613%]

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

  • unstable execution_time [+180.999ms; +228.090ms] or [+90.699%; +114.296%]

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

  • 🟥 execution_time [+297.270ms; +304.449ms] or [+149.336%; +152.942%]
  • 🟩 throughput [+25111.681op/s; +34924.663op/s] or [+5.290%; +7.357%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+305.754ms; +319.862ms] or [+153.539%; +160.624%]

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

  • unstable execution_time [+209.898ms; +234.230ms] or [+103.785%; +115.816%]

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

  • 🟥 execution_time [+303.868ms; +310.869ms] or [+154.013%; +157.562%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+302.368ms; +315.509ms] or [+151.761%; +158.357%]

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

  • 🟥 execution_time [+304.766ms; +311.909ms] or [+151.898%; +155.458%]
  • 🟩 throughput [+50875.286op/s; +59192.973op/s] or [+10.102%; +11.754%]

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

  • 🟥 execution_time [+301.469ms; +309.109ms] or [+149.978%; +153.779%]

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

  • unstable execution_time [-86.082ms; -59.834ms] or [-40.029%; -27.823%]
  • unstable throughput [-109767.635op/s; -65972.323op/s] or [-30.112%; -18.098%]

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

  • unstable execution_time [-89.313ms; -67.170ms] or [-44.801%; -33.693%]

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

  • 🟩 allocated_mem [-26.502KB; -26.480KB] or [-9.667%; -9.659%]
  • unstable execution_time [-74.217µs; -19.316µs] or [-14.669%; -3.818%]

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

  • 🟩 execution_time [-93.640µs; -36.669µs] or [-16.227%; -6.354%]
  • 🟩 throughput [+136.312op/s; +292.807op/s] or [+7.788%; +16.728%]

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

  • 🟥 allocated_mem [+8.190KB; +8.196KB] or [+16.663%; +16.675%]

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

  • unstable execution_time [+4.897µs; +10.254µs] or [+11.574%; +24.238%]
  • 🟥 throughput [-4402.339op/s; -2379.059op/s] or [-18.532%; -10.015%]

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

  • unstable execution_time [-13.930µs; -4.436µs] or [-21.611%; -6.883%]
  • unstable throughput [+1401.506op/s; +3390.005op/s] or [+8.599%; +20.799%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+305.857ms; +318.740ms] or [+154.597%; +161.109%]

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

  • unstable execution_time [+271.707ms; +297.481ms] or [+138.298%; +151.417%]

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

  • 🟥 execution_time [+301.368ms; +306.474ms] or [+150.872%; +153.428%]

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

  • unstable execution_time [-60.049ms; -28.592ms] or [-30.015%; -14.292%]
  • unstable throughput [-193864.352op/s; -111458.770op/s] or [-36.694%; -21.097%]

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

  • unstable execution_time [-76.929ms; -47.037ms] or [-38.995%; -23.843%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.598ms; +314.295ms] or [+150.320%; +156.648%]

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

  • unstable execution_time [+263.044ms; +297.095ms] or [+132.088%; +149.187%]

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

  • 🟥 execution_time [+303.697ms; +309.754ms] or [+154.016%; +157.087%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.915ms; +300.621ms] or [+149.599%; +149.951%]
  • 🟩 throughput [+60128284.391op/s; +60392576.974op/s] or [+43.789%; +43.982%]

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

  • unstable execution_time [+364.828ms; +381.452ms] or [+453.729%; +474.403%]
  • 🟥 throughput [-7324.600op/s; -7092.573op/s] or [-56.623%; -54.829%]

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

  • 🟥 execution_time [+303.233ms; +306.131ms] or [+151.246%; +152.691%]
  • 🟥 throughput [-30439463.526op/s; -29051195.109op/s] or [-13.483%; -12.868%]

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

  • unstable execution_time [-89.971ms; -56.323ms] or [-44.066%; -27.586%]
  • unstable throughput [-117785.895op/s; +30730.732op/s] or [-10.997%; +2.869%]

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

  • 🟩 execution_time [-101.250ms; -97.090ms] or [-51.233%; -49.128%]
  • 🟩 throughput [+56494.596op/s; +76414.817op/s] or [+6.539%; +8.845%]

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

  • unstable execution_time [-55.875ms; -19.789ms] or [-29.111%; -10.310%]
  • unstable throughput [-295141.408op/s; -88115.221op/s] or [-22.844%; -6.820%]

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

  • unstable execution_time [-56.125ms; -29.044ms] or [-27.575%; -14.270%]
  • 🟩 throughput [+69801.438op/s; +82321.251op/s] or [+6.932%; +8.176%]

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

  • 🟩 execution_time [-89.019ms; -69.046ms] or [-44.456%; -34.481%]
  • unstable throughput [-44656.352op/s; +18253.000op/s] or [-8.109%; +3.314%]

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

  • unstable execution_time [-53.479ms; -26.969ms] or [-26.870%; -13.550%]

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

  • unstable execution_time [-60.734ms; -26.172ms] or [-30.378%; -13.091%]
  • unstable throughput [-288859.462op/s; -137432.269op/s] or [-32.273%; -15.355%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

  • unstable execution_time [-55.161ms; -26.253ms] or [-28.015%; -13.333%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • 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_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • 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 netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • 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 netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • 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 net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant