Skip to content

Fix race condition in IpcTests#8657

Merged
andrewlock merged 1 commit into
masterfrom
andrew/fix-race-in-ipc-tests
May 19, 2026
Merged

Fix race condition in IpcTests#8657
andrewlock merged 1 commit into
masterfrom
andrew/fix-race-in-ipc-tests

Conversation

@andrewlock

Copy link
Copy Markdown
Member

Summary of changes

Fixes a race condition in IpcTests that is causing a lot of flake

Reason for change

There's a race condition between the client and server loops. Both callbacks call Interlocked.Exchange(ref finalValue, value) after sending the message. During the final exchange, the server's callback for (19, 19) would send (20, 19) to the client, then the client could process it, send (20, 20) back, write finalValue=(20, 20), and set clientTaskCompletion. That all happens before the server callback writes finalValue, so the server overwrites with (20, 19).

The table below (from 🤖) summarizes it:

time server polling thread client polling thread finalValue
t0 receives (19, 19) → increments → value = (20, 19)
t1 sends (20, 19) to client (mutex released)
t2 receives (20, 19) → increments → value = (20, 20)
t3 sends (20, 20) to server
t4 Interlocked.Exchange(finalValue, (20, 20)) (20, 20)
t5 sets clientTaskCompletion (20, 20)
t6 Interlocked.Exchange(finalValue, (20, 19)) ← stale! (20, 19)
t7 sets serverTaskCompletion (20, 19)

Implementation details

Track finalServerValue and finalClientValue independently so that each callback writes its own value. As there's now only one writer, the race has gone.

Test coverage

This is the test

Other details

The bug is only in the test, not in the production code

@andrewlock
andrewlock requested a review from a team as a code owner May 19, 2026 08:56
@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8657) 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
duration73.82 ± (73.76 - 74.33) ms71.97 ± (72.02 - 72.36) ms-2.5%
.NET Framework 4.8 - Bailout
duration78.68 ± (78.60 - 79.11) ms76.75 ± (76.69 - 77.03) ms-2.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1098.59 ± (1098.59 - 1105.85) ms1106.86 ± (1106.23 - 1114.13) ms+0.8%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.80 ± (22.73 - 22.86) ms22.32 ± (22.28 - 22.36) ms-2.1%
process.time_to_main_ms86.65 ± (86.33 - 86.98) ms84.11 ± (83.91 - 84.30) ms-2.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.91) MB10.91 ± (10.91 - 10.92) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.36 ± (22.32 - 22.39) ms22.53 ± (22.47 - 22.59) ms+0.8%✅⬆️
process.time_to_main_ms85.94 ± (85.74 - 86.14) ms86.92 ± (86.60 - 87.23) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.94 - 10.94) MB10.94 ± (10.94 - 10.95) MB+0.0%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms214.07 ± (213.09 - 215.05) ms211.42 ± (210.55 - 212.30) ms-1.2%
process.time_to_main_ms539.88 ± (538.36 - 541.40) ms536.83 ± (535.55 - 538.11) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.45 ± (48.41 - 48.49) MB48.42 ± (48.39 - 48.46) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.9%
.NET 6 - Baseline
process.internal_duration_ms21.31 ± (21.27 - 21.35) ms21.32 ± (21.26 - 21.38) ms+0.1%✅⬆️
process.time_to_main_ms73.74 ± (73.58 - 73.90) ms74.92 ± (74.66 - 75.17) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 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_ms21.10 ± (21.06 - 21.14) ms21.01 ± (20.97 - 21.05) ms-0.4%
process.time_to_main_ms74.24 ± (74.11 - 74.38) ms74.04 ± (73.87 - 74.20) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.74) MB10.74 ± (10.74 - 10.74) MB+0.0%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms380.23 ± (378.06 - 382.40) ms381.33 ± (379.45 - 383.21) ms+0.3%✅⬆️
process.time_to_main_ms537.21 ± (535.99 - 538.43) ms540.00 ± (538.66 - 541.35) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.79 ± (49.76 - 49.81) MB49.92 ± (49.89 - 49.94) MB+0.3%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.3%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.59 ± (19.53 - 19.65) ms19.49 ± (19.44 - 19.54) ms-0.5%
process.time_to_main_ms74.05 ± (73.75 - 74.35) ms73.60 ± (73.33 - 73.86) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.68 - 7.69) MB7.66 ± (7.65 - 7.66) MB-0.3%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.68 ± (19.61 - 19.76) ms19.62 ± (19.56 - 19.69) ms-0.3%
process.time_to_main_ms75.30 ± (74.87 - 75.72) ms75.39 ± (75.12 - 75.67) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.73 ± (7.72 - 7.73) MB7.71 ± (7.71 - 7.72) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms296.37 ± (294.08 - 298.65) ms299.79 ± (297.46 - 302.12) ms+1.2%✅⬆️
process.time_to_main_ms496.86 ± (495.97 - 497.75) ms495.67 ± (494.56 - 496.79) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.98 ± (36.95 - 37.00) MB36.95 ± (36.92 - 36.98) MB-0.1%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.7%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration198.83 ± (198.45 - 199.32) ms200.39 ± (200.21 - 201.30) ms+0.8%✅⬆️
.NET Framework 4.8 - Bailout
duration203.12 ± (202.76 - 203.45) ms204.60 ± (204.03 - 204.79) ms+0.7%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1187.58 ± (1187.01 - 1192.42) ms1197.77 ± (1196.90 - 1203.47) ms+0.9%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms192.78 ± (192.30 - 193.25) ms195.03 ± (194.63 - 195.44) ms+1.2%✅⬆️
process.time_to_main_ms82.62 ± (82.39 - 82.86) ms84.33 ± (84.04 - 84.61) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.02 ± (16.00 - 16.04) MB16.04 ± (16.01 - 16.06) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.3%
.NET Core 3.1 - Bailout
process.internal_duration_ms190.58 ± (190.18 - 190.98) ms194.58 ± (194.12 - 195.05) ms+2.1%✅⬆️
process.time_to_main_ms83.51 ± (83.27 - 83.75) ms85.21 ± (84.92 - 85.50) ms+2.0%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.19 ± (16.16 - 16.21) MB16.07 ± (16.05 - 16.10) MB-0.7%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.1%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms383.51 ± (382.08 - 384.93) ms388.79 ± (387.35 - 390.23) ms+1.4%✅⬆️
process.time_to_main_ms527.15 ± (525.98 - 528.31) ms538.94 ± (537.72 - 540.17) ms+2.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.40 ± (57.22 - 57.58) MB58.02 ± (57.80 - 58.23) MB+1.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms195.77 ± (195.33 - 196.21) ms199.59 ± (199.17 - 200.02) ms+2.0%✅⬆️
process.time_to_main_ms71.54 ± (71.32 - 71.75) ms72.50 ± (72.19 - 72.82) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.32 ± (16.30 - 16.35) MB16.34 ± (16.31 - 16.37) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.5%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms195.10 ± (194.59 - 195.61) ms199.35 ± (198.87 - 199.83) ms+2.2%✅⬆️
process.time_to_main_ms72.60 ± (72.43 - 72.78) ms74.10 ± (73.86 - 74.33) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.43 ± (16.41 - 16.46) MB16.39 ± (16.36 - 16.42) MB-0.2%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.5%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms590.64 ± (587.89 - 593.39) ms592.77 ± (590.50 - 595.04) ms+0.4%✅⬆️
process.time_to_main_ms531.53 ± (530.40 - 532.65) ms537.31 ± (536.38 - 538.24) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.13 ± (61.03 - 61.23) MB61.38 ± (61.27 - 61.48) MB+0.4%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.4%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms193.87 ± (193.39 - 194.34) ms197.57 ± (197.09 - 198.04) ms+1.9%✅⬆️
process.time_to_main_ms70.91 ± (70.70 - 71.13) ms72.04 ± (71.77 - 72.31) ms+1.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.76 ± (11.74 - 11.79) MB11.71 ± (11.69 - 11.72) MB-0.5%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms193.08 ± (192.60 - 193.56) ms197.05 ± (196.56 - 197.54) ms+2.1%✅⬆️
process.time_to_main_ms71.67 ± (71.49 - 71.85) ms73.30 ± (73.07 - 73.52) ms+2.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.77 ± (11.75 - 11.79) MB11.79 ± (11.77 - 11.81) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.3%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms514.13 ± (511.67 - 516.58) ms513.69 ± (511.12 - 516.26) ms-0.1%
process.time_to_main_ms488.03 ± (487.19 - 488.86) ms491.87 ± (491.12 - 492.62) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.64 ± (50.61 - 50.67) MB50.67 ± (50.63 - 50.71) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (29 - 30)+0.0%✅⬆️
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 (8657) - mean (72ms)  : 70, 75
    master - mean (74ms)  : 70, 78

    section Bailout
    This PR (8657) - mean (77ms)  : 75, 79
    master - mean (79ms)  : 75, 83

    section CallTarget+Inlining+NGEN
    This PR (8657) - mean (1,110ms)  : 1054, 1166
    master - mean (1,102ms)  : 1048, 1157

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 (8657) - mean (113ms)  : 109, 117
    master - mean (117ms)  : 111, 122

    section Bailout
    This PR (8657) - mean (116ms)  : 110, 123
    master - mean (115ms)  : 111, 119

    section CallTarget+Inlining+NGEN
    This PR (8657) - mean (786ms)  : 763, 808
    master - mean (794ms)  : 770, 818

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

    section Bailout
    This PR (8657) - mean (101ms)  : 99, 103
    master - mean (101ms)  : 100, 103

    section CallTarget+Inlining+NGEN
    This PR (8657) - mean (953ms)  : 915, 990
    master - mean (945ms)  : 901, 989

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8657) - mean (101ms)  : 95, 107
    master - mean (102ms)  : 96, 108

    section Bailout
    This PR (8657) - mean (103ms)  : 98, 108
    master - mean (103ms)  : 94, 112

    section CallTarget+Inlining+NGEN
    This PR (8657) - mean (823ms)  : 781, 866
    master - mean (824ms)  : 790, 858

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 (8657) - mean (201ms)  : 194, 207
    master - mean (199ms)  : 194, 204

    section Bailout
    This PR (8657) - mean (204ms)  : 201, 208
    master - mean (203ms)  : 200, 207

    section CallTarget+Inlining+NGEN
    This PR (8657) - mean (1,200ms)  : 1151, 1249
    master - mean (1,190ms)  : 1150, 1230

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 (8657) - mean (288ms)  : 280, 296
    master - mean (285ms)  : 278, 291

    section Bailout
    This PR (8657) - mean (289ms)  : 282, 295
    master - mean (283ms)  : 277, 290

    section CallTarget+Inlining+NGEN
    This PR (8657) - mean (969ms)  : 945, 992
    master - mean (951ms)  : 930, 971

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8657) - mean (281ms)  : 273, 289
    master - mean (276ms)  : 269, 283

    section Bailout
    This PR (8657) - mean (282ms)  : 275, 288
    master - mean (276ms)  : 268, 285

    section CallTarget+Inlining+NGEN
    This PR (8657) - mean (1,158ms)  : 1123, 1193
    master - mean (1,154ms)  : 1119, 1188

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8657) - mean (280ms)  : 273, 287
    master - mean (275ms)  : 267, 283

    section Bailout
    This PR (8657) - mean (281ms)  : 276, 286
    master - mean (275ms)  : 268, 281

    section CallTarget+Inlining+NGEN
    This PR (8657) - mean (1,037ms)  : 1003, 1071
    master - mean (1,035ms)  : 1000, 1071

Loading

@pr-commenter

pr-commenter Bot commented May 19, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-19 09:49:45

Comparing candidate commit 0250c77 in PR branch andrew/fix-race-in-ipc-tests with baseline commit 9886c12 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.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

Found 3 performance improvements and 4 performance regressions! Performance is the same for 48 metrics, 17 unstable metrics, 87 known flaky benchmarks, 39 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.StartRootSpan net6.0

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

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • 🟩 throughput [+13709.255op/s; +28454.915op/s] or [+8.465%; +17.570%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+7.889%; +7.898%]

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

  • 🟥 throughput [-65599.149op/s; -59793.973op/s] or [-44.563%; -40.619%]
  • 🟩 execution_time [-52.582ms; -39.868ms] or [-26.093%; -19.784%]

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

  • 🟥 throughput [-70394.793op/s; -50841.084op/s] or [-35.296%; -25.492%]

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 [-15.230ms; +7.480ms] or [-10.769%; +5.289%]
  • unstable throughput [-2334.083op/s; +20943.612op/s] or [-1.375%; +12.339%]

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

  • unstable execution_time [+10.495ms; +35.715ms] or [+11.750%; +39.985%]

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

  • unstable execution_time [-23.914ms; -7.909ms] or [-16.760%; -5.543%]

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

  • unstable execution_time [+10.733ms; +43.273ms] or [+8.475%; +34.171%]
  • unstable throughput [-28616.096op/s; -6534.338op/s] or [-15.586%; -3.559%]

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

  • unstable execution_time [-15.772ms; +19.279ms] or [-14.373%; +17.568%]

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

  • unstable execution_time [-6.729ms; +14.127ms] or [-4.642%; +9.745%]
  • unstable throughput [-10781.197op/s; +4154.784op/s] or [-8.047%; +3.101%]

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

  • unstable execution_time [-6.050ms; +14.094ms] or [-4.407%; +10.265%]
  • 🟩 throughput [+15078.880op/s; +29534.670op/s] or [+9.061%; +17.748%]

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

  • unstable execution_time [-50.387ms; -28.471ms] or [-30.468%; -17.216%]

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

  • unstable execution_time [-62.330ms; -22.492ms] or [-40.579%; -14.643%]

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

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.188%; -9.180%]
  • unstable execution_time [-13.911ms; +9.991ms] or [-9.769%; +7.017%]

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

  • unstable execution_time [-33.490ms; -8.665ms] or [-30.202%; -7.814%]

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

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-7.698%; -7.691%]
  • unstable execution_time [-18344.450µs; +19186.278µs] or [-11.860%; +12.404%]
  • unstable throughput [-2916.853op/s; +18383.674op/s] or [-2.169%; +13.673%]

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

  • unstable execution_time [-33.484ms; -8.317ms] or [-30.379%; -7.546%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]
  • unstable execution_time [-53.125ms; -31.514ms] or [-31.545%; -18.713%]
  • unstable throughput [-25555.099op/s; +4314.237op/s] or [-14.606%; +2.466%]

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

  • unstable execution_time [+2.238ms; +43.412ms] or [+2.037%; +39.512%]

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

  • unstable execution_time [-48.961ms; -23.268ms] or [-32.992%; -15.679%]
  • unstable throughput [+12667.701op/s; +31639.969op/s] or [+12.325%; +30.785%]

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

  • unstable execution_time [+19.731ms; +47.217ms] or [+13.928%; +33.329%]
  • unstable throughput [-25296.655op/s; -11868.288op/s] or [-19.944%; -9.357%]

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

  • unstable execution_time [-32.845ms; -8.017ms] or [-29.724%; -7.255%]

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

  • unstable execution_time [-38.123ms; -17.225ms] or [-24.506%; -11.073%]

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

  • unstable execution_time [+33.610ms; +52.720ms] or [+26.528%; +41.611%]
  • 🟥 throughput [-50259.381op/s; -33641.285op/s] or [-28.511%; -19.084%]

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

  • unstable execution_time [-34.641ms; -9.584ms] or [-30.853%; -8.536%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-5724.676op/s; -5202.891op/s] or [-6.788%; -6.169%]

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

  • unstable execution_time [-39.151ms; -17.370ms] or [-19.533%; -8.666%]
  • unstable throughput [-58949.329op/s; -46077.362op/s] or [-49.549%; -38.730%]

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

  • unstable execution_time [-71.180ms; -43.263ms] or [-35.801%; -21.760%]
  • 🟥 throughput [-6631.441op/s; -5425.896op/s] or [-6.743%; -5.517%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+317.184ms; +333.109ms] or [+157.398%; +165.301%]
  • 🟥 throughput [-56.682op/s; -44.427op/s] or [-10.198%; -7.993%]

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

  • 🟥 execution_time [+99.621ms; +100.883ms] or [+78.707%; +79.704%]
  • 🟩 throughput [+85.753op/s; +90.429op/s] or [+11.306%; +11.923%]

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

  • 🟥 execution_time [+83.306ms; +85.053ms] or [+73.722%; +75.269%]

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 [-50.561ms; -28.585ms] or [-23.614%; -13.350%]
  • unstable throughput [-32607.681op/s; -17734.195op/s] or [-23.802%; -12.945%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • 🟩 execution_time [-62.960ms; -42.899ms] or [-29.981%; -20.428%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-286615.001op/s; -283328.754op/s] or [-29.265%; -28.929%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • unstable execution_time [-92.701ms; -66.854ms] or [-41.341%; -29.814%]
  • unstable throughput [-152738.906op/s; -56208.807op/s] or [-16.317%; -6.005%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟩 execution_time [-80.249ms; -60.850ms] or [-40.057%; -30.374%]
  • 🟥 throughput [-129278.040op/s; -112229.293op/s] or [-18.575%; -16.125%]

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

  • unstable execution_time [-26.911ms; -7.077ms] or [-13.578%; -3.571%]
  • 🟥 throughput [-35639.309op/s; -20548.022op/s] or [-22.677%; -13.074%]

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

  • 🟩 execution_time [-63.311ms; -46.615ms] or [-32.278%; -23.766%]
  • 🟩 throughput [+11412.695op/s; +14121.010op/s] or [+9.092%; +11.249%]

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

  • 🟩 execution_time [-42.433ms; -22.519ms] or [-20.980%; -11.134%]
  • unstable throughput [-549162.351op/s; -208524.093op/s] or [-18.311%; -6.953%]

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

  • unstable execution_time [-69.738ms; -40.584ms] or [-32.147%; -18.708%]
  • 🟩 throughput [+176479.418op/s; +233189.359op/s] or [+7.005%; +9.256%]

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

  • 🟥 execution_time [+301.245ms; +315.264ms] or [+150.522%; +157.527%]

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

  • unstable execution_time [+146.083ms; +184.569ms] or [+73.670%; +93.079%]

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

  • unstable execution_time [+214.946ms; +260.337ms] or [+108.273%; +131.138%]

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

  • 🟥 execution_time [+297.968ms; +311.677ms] or [+146.350%; +153.084%]

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

  • 🟥 execution_time [+239.702ms; +256.456ms] or [+117.182%; +125.372%]

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

  • 🟥 execution_time [+302.758ms; +308.864ms] or [+151.318%; +154.370%]

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

  • 🟥 allocated_mem [+24.647KB; +24.648KB] or [+541.479%; +541.512%]

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

  • 🟥 execution_time [+21.057µs; +44.696µs] or [+6.722%; +14.269%]
  • 🟥 throughput [-417.684op/s; -218.763op/s] or [-13.020%; -6.819%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.094ms; +300.927ms] or [+149.777%; +150.193%]

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

  • unstable execution_time [+351.799ms; +365.932ms] or [+382.244%; +397.600%]
  • 🟥 throughput [-6853.483op/s; -6670.735op/s] or [-56.316%; -54.814%]

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

  • unstable execution_time [+290.690ms; +340.994ms] or [+220.718%; +258.914%]
  • 🟥 throughput [-1314.565op/s; -1090.719op/s] or [-12.726%; -10.559%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+310.125ms; +329.949ms] or [+142.592%; +151.707%]
  • 🟥 throughput [-694.848op/s; -675.675op/s] or [-62.960%; -61.223%]

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

  • unstable execution_time [-51.711ms; +81.940ms] or [-22.037%; +34.919%]
  • 🟥 throughput [-694.201op/s; -604.512op/s] or [-46.303%; -40.321%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+338.409ms; +346.608ms] or [+202.408%; +207.312%]
  • 🟥 throughput [-724.694op/s; -690.538op/s] or [-50.459%; -48.081%]

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

  • 🟩 execution_time [-222.829µs; -166.616µs] or [-11.288%; -8.440%]
  • 🟩 throughput [+48.874op/s; +65.298op/s] or [+9.648%; +12.890%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+308.624ms; +323.149ms] or [+155.417%; +162.732%]

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

  • 🟥 execution_time [+227.440ms; +237.442ms] or [+113.970%; +118.982%]

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

  • 🟥 execution_time [+299.456ms; +305.503ms] or [+150.434%; +153.472%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+303.414ms; +317.553ms] or [+152.364%; +159.465%]

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

  • unstable execution_time [+156.904ms; +217.282ms] or [+77.582%; +107.436%]

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

  • 🟥 execution_time [+301.291ms; +308.891ms] or [+152.707%; +156.560%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+304.340ms; +319.211ms] or [+152.751%; +160.215%]

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

  • 🟥 execution_time [+304.699ms; +312.721ms] or [+151.865%; +155.863%]
  • 🟩 throughput [+29373.539op/s; +39320.874op/s] or [+5.833%; +7.808%]

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

  • 🟥 execution_time [+301.047ms; +308.195ms] or [+149.768%; +153.324%]

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

  • unstable execution_time [-75.211ms; -45.917ms] or [-34.973%; -21.351%]
  • unstable throughput [-132013.156op/s; -77610.448op/s] or [-36.215%; -21.291%]

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

  • unstable execution_time [-89.502ms; -66.669ms] or [-44.895%; -33.442%]

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

  • 🟩 allocated_mem [-18.305KB; -18.282KB] or [-6.677%; -6.669%]
  • unstable execution_time [-50.474µs; +6.045µs] or [-9.976%; +1.195%]
  • unstable throughput [-13.406op/s; +189.697op/s] or [-0.669%; +9.466%]

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

  • unstable execution_time [-92.145µs; -34.316µs] or [-15.968%; -5.947%]
  • 🟩 throughput [+128.992op/s; +290.636op/s] or [+7.369%; +16.604%]

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 [+5.109µs; +10.886µs] or [+12.076%; +25.730%]
  • 🟥 throughput [-4535.144op/s; -2432.412op/s] or [-19.092%; -10.240%]

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

  • unstable execution_time [-12.794µs; -3.600µs] or [-19.849%; -5.586%]
  • unstable throughput [+1039.789op/s; +2989.208op/s] or [+6.379%; +18.340%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+304.308ms; +318.471ms] or [+153.814%; +160.973%]

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

  • 🟥 execution_time [+280.948ms; +299.471ms] or [+143.002%; +152.430%]

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

  • 🟥 execution_time [+299.277ms; +304.801ms] or [+149.825%; +152.591%]

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

  • unstable execution_time [-51.025ms; -24.091ms] or [-25.505%; -12.042%]
  • unstable throughput [-226805.995op/s; -173563.280op/s] or [-42.930%; -32.852%]

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

  • unstable execution_time [-53.532ms; -23.509ms] or [-27.135%; -11.916%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.019ms; +311.765ms] or [+149.034%; +155.387%]

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

  • 🟥 execution_time [+306.619ms; +313.025ms] or [+153.969%; +157.186%]

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

  • 🟥 execution_time [+307.100ms; +314.151ms] or [+155.742%; +159.317%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.981ms; +301.703ms] or [+150.131%; +150.491%]
  • 🟩 throughput [+59789825.952op/s; +60090076.164op/s] or [+43.543%; +43.761%]

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

  • unstable execution_time [+385.317ms; +402.290ms] or [+479.211%; +500.319%]
  • 🟥 throughput [-7554.273op/s; -7322.021op/s] or [-58.398%; -56.603%]

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

  • 🟥 execution_time [+302.835ms; +306.260ms] or [+151.047%; +152.755%]
  • 🟥 throughput [-30878636.464op/s; -29325702.602op/s] or [-13.677%; -12.989%]

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

  • unstable execution_time [-58.201ms; -31.601ms] or [-28.506%; -15.478%]
  • unstable throughput [-213603.054op/s; -65844.762op/s] or [-19.943%; -6.148%]

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

  • unstable execution_time [-72.599ms; -46.907ms] or [-36.736%; -23.735%]
  • 🟩 throughput [+58602.970op/s; +78231.876op/s] or [+6.783%; +9.055%]

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

  • unstable execution_time [-79.765ms; -58.073ms] or [-41.558%; -30.257%]

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

  • unstable execution_time [-33.566ms; -11.502ms] or [-16.492%; -5.651%]
  • 🟩 throughput [+86376.569op/s; +97595.703op/s] or [+8.579%; +9.693%]

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

  • unstable execution_time [-54.000ms; -27.817ms] or [-26.967%; -13.891%]
  • unstable throughput [-167983.733op/s; -89321.998op/s] or [-30.503%; -16.219%]

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

  • unstable execution_time [-71.781ms; -45.043ms] or [-36.066%; -22.631%]
  • 🟩 throughput [+22450.613op/s; +32844.828op/s] or [+5.025%; +7.352%]

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

  • unstable execution_time [-79.238ms; -51.925ms] or [-39.633%; -25.972%]
  • unstable throughput [-209207.025op/s; -73268.945op/s] or [-23.374%; -8.186%]

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

  • unstable execution_time [-73.692ms; -45.389ms] or [-37.427%; -23.053%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • 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_SetAttributes_Sampled net472
  • 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 netcoreapp3.1
  • 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_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_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.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 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.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • 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

@andrewlock
andrewlock enabled auto-merge (squash) May 19, 2026 10:57
@andrewlock
andrewlock merged commit b01af68 into master May 19, 2026
144 of 145 checks passed
@andrewlock
andrewlock deleted the andrew/fix-race-in-ipc-tests branch May 19, 2026 11:14
@github-actions github-actions Bot added this to the vNext-v3 milestone May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants