Skip to content

Enable OpenTelemetry microbenchmarks#8559

Merged
igoragoli merged 29 commits into
masterfrom
augusto/enable-otel-benchmarks
May 7, 2026
Merged

Enable OpenTelemetry microbenchmarks#8559
igoragoli merged 29 commits into
masterfrom
augusto/enable-otel-benchmarks

Conversation

@igoragoli

@igoragoli igoragoli commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

  • Enable OpenTelemetry benchmarks which were turned off on Update microbenchmark design to reduce flakiness #8300.
  • Use 1 CPU per benchmark instead of 2 to fit OpenTelemetry benchmarks.
  • Reduce launchCount from 10 to 5.
    • Flakiness changes.
      • This increases flakiness overall because of execution time/throughput metrics.
        • The false positive (FP) rate went from ~4% to 9%.
          - Memory allocation metrics remain stable.
        • The FP rate considering allocation metrics is 6%. There are some big outliers¹, but 85% of the benchmarks have a 0% FP rate. By marking them as flaky, we can have very effective gates on the remaining benchmarks.
    • Absolute value changes.
      • This might lead to changes in absolute values on certain benchmarks (mean delta of execution time and throughput is -11%² and -6%).
      • But once again, memory allocation metrics remain stable (mean delta is of 0.1%).
      • This reduced CI job time in 10 minutes (from ~70 minutes to ~60 minutes). I was expecting a bigger change.
        • This might be because on 1 CPU the benchmarks are slower?
        • Maybe reverting to 10 launches and having stabler benchmarks would be better. But if we only care about memory allocation metrics, it is already stable. And we send half of the data over the wire to the BP UI, which leads to less curl retries.
¹ Worst offenders when it comes to allocated memory false positives
Scenario FP Rate Max Bound
StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1 68.9% 14.69%
OTel Api ActivityBenchmark.StartSpan_GetContext_Sampled net6.0 55.6% 5.93%
OTel Api ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0 55.6% 5.14%
OTel Api TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0 55.6% 6.01%
OTel Api ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0 53.3% 4.90%
OTel Api ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0 53.3% 3.28%
OTel Api ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0 53.3% 5.93%
OTel Api TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0 53.3% 5.93%
OTel Api TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0 53.3% 8.41%
OTel Api TracerBenchmark.StartActiveSpan net6.0 53.3% 6.90%
OTel Api TracerBenchmark.StartRootSpan net6.0 53.3% 8.41%
OTel Api TracerBenchmark.StartSpan_GetCurrentSpan net6.0 53.3% 6.90%

² I have no idea why both execution time and throughput went down. I would imagine they would have inverse behaviors? Maybe this is because of some BenchmarkDotNet internal? Anyways, execution time and throughput are not looking super reliable for gating in any case.

Reason for change

Restore OpenTelemetry benchmarks missing after bp-runner migration, and improve CI job performance.

Implementation details

Test coverage

@igoragoli
igoragoli requested a review from a team as a code owner May 5, 2026 09:35
@igoragoli
igoragoli marked this pull request as draft May 5, 2026 09:36
@igoragoli
igoragoli force-pushed the augusto/same-cpus-windows branch from a1d8a1f to 37ab98f Compare May 5, 2026 09:38
@igoragoli
igoragoli force-pushed the augusto/enable-otel-benchmarks branch from 13c59ea to 27074e7 Compare May 5, 2026 09:38

igoragoli commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Base automatically changed from augusto/same-cpus-windows to master May 5, 2026 13:35
@pr-commenter

pr-commenter Bot commented May 5, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-07 13:55:14

Comparing candidate commit f3780025 in PR branch augusto/enable-otel-benchmarks with baseline commit eb916fc 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_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472

Found 3 performance improvements and 2 performance regressions! Performance is the same for 48 metrics, 19 unstable metrics, 91 known flaky benchmarks, 35 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.328%; -9.321%]

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

  • 🟥 throughput [-65543.370op/s; -60165.658op/s] or [-44.525%; -40.872%]
  • 🟩 execution_time [-50.451ms; -38.110ms] or [-25.036%; -18.912%]

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

  • 🟥 throughput [-55050.698op/s; -38382.731op/s] or [-27.603%; -19.245%]
  • 🟩 execution_time [-78.868ms; -59.471ms] or [-39.886%; -30.076%]

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 [+34.076ms; +67.728ms] or [+24.609%; +48.913%]
  • unstable throughput [-64950.780op/s; -36742.807op/s] or [-34.767%; -19.668%]

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

  • unstable execution_time [-24.537ms; +7.439ms] or [-20.206%; +6.126%]

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

  • unstable execution_time [-1.666ms; +25.988ms] or [-1.165%; +18.172%]
  • unstable throughput [-27431.232op/s; -3544.152op/s] or [-17.050%; -2.203%]

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

  • unstable execution_time [-40.708ms; -2.579ms] or [-26.281%; -1.665%]

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

  • unstable execution_time [-28.884ms; +7.401ms] or [-16.035%; +4.109%]
  • unstable throughput [-20018.033op/s; +10256.657op/s] or [-12.897%; +6.608%]

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

  • unstable execution_time [-26.623ms; +6.582ms] or [-22.197%; +5.488%]

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

  • unstable execution_time [-0.489ms; +32.593ms] or [-0.311%; +20.706%]
  • unstable throughput [-18478.422op/s; +2320.034op/s] or [-14.051%; +1.764%]

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

  • unstable execution_time [-51.584ms; -15.416ms] or [-31.048%; -9.279%]

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

  • unstable execution_time [+20.946ms; +47.199ms] or [+15.837%; +35.687%]
  • unstable throughput [-57097.578op/s; -30686.124op/s] or [-28.028%; -15.063%]

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

  • unstable execution_time [-5.754ms; +31.515ms] or [-4.766%; +26.103%]

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

  • unstable execution_time [-20.673ms; +10.048ms] or [-13.292%; +6.460%]
  • unstable throughput [-11783.146op/s; +18611.155op/s] or [-6.817%; +10.768%]

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

  • unstable execution_time [-24.352ms; +14.554ms] or [-17.581%; +10.507%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.280%; +10.287%]
  • unstable execution_time [-20.461ms; +4.971ms] or [-12.764%; +3.101%]
  • unstable throughput [-10476.322op/s; +14912.653op/s] or [-6.719%; +9.564%]

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

  • unstable execution_time [-50.178ms; -15.665ms] or [-35.299%; -11.020%]

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

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-7.795%; -7.788%]
  • unstable execution_time [+2.804ms; +26.777ms] or [+1.986%; +18.959%]
  • unstable throughput [-25349.269op/s; -7298.477op/s] or [-17.054%; -4.910%]

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

  • unstable execution_time [-70.866ms; -38.648ms] or [-42.836%; -23.361%]

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

  • unstable execution_time [-13537.375µs; +12992.857µs] or [-8.979%; +8.618%]
  • unstable throughput [-11180.987op/s; +14888.290op/s] or [-7.233%; +9.631%]

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

  • unstable execution_time [+3.759ms; +42.618ms] or [+2.887%; +32.732%]

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

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+5.534%; +5.541%]
  • unstable execution_time [-38.814ms; -6.371ms] or [-24.924%; -4.091%]
  • unstable throughput [-6259.951op/s; +16829.495op/s] or [-5.668%; +15.239%]

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

  • unstable execution_time [-27.461ms; +5.679ms] or [-22.699%; +4.694%]

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

  • unstable execution_time [+3.434ms; +35.215ms] or [+2.453%; +25.155%]
  • unstable throughput [-23273.253op/s; -7203.233op/s] or [-16.583%; -5.133%]

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

  • unstable execution_time [+2.817ms; +41.569ms] or [+2.124%; +31.340%]

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

  • unstable execution_time [+4.733ms; +21.238ms] or [+3.809%; +17.093%]
  • 🟥 throughput [-27723.243op/s; -13281.816op/s] or [-16.200%; -7.761%]

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

  • unstable execution_time [+4.666ms; +43.603ms] or [+3.601%; +33.653%]

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

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.328%; -9.321%]
  • unstable execution_time [-11.447ms; +9.323ms] or [-8.348%; +6.799%]
  • unstable throughput [-13748.435op/s; +7039.508op/s] or [-7.877%; +4.033%]

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

  • unstable execution_time [-64.092ms; -40.932ms] or [-45.691%; -29.180%]

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

  • unstable execution_time [-87.384ms; -64.309ms] or [-43.596%; -32.084%]
  • unstable throughput [-27135.597op/s; -12408.521op/s] or [-22.809%; -10.430%]

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

  • 🟩 execution_time [-100.561ms; -98.173ms] or [-50.579%; -49.378%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+313.739ms; +329.555ms] or [+155.688%; +163.537%]
  • 🟥 throughput [-53.459op/s; -40.850op/s] or [-9.618%; -7.350%]

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

  • 🟥 execution_time [+99.129ms; +100.892ms] or [+78.318%; +79.711%]
  • 🟩 throughput [+85.852op/s; +92.293op/s] or [+11.319%; +12.169%]

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

  • 🟥 execution_time [+82.561ms; +85.527ms] or [+73.064%; +75.688%]

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%]
  • 🟩 execution_time [-65.468ms; -47.691ms] or [-30.576%; -22.273%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • unstable execution_time [-63.321ms; -42.313ms] or [-30.153%; -20.149%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-274895.800op/s; -266779.455op/s] or [-28.068%; -27.239%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • unstable execution_time [-86.754ms; -54.244ms] or [-38.689%; -24.190%]
  • unstable throughput [-289702.644op/s; -156542.338op/s] or [-30.949%; -16.724%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟩 execution_time [-85.592ms; -80.957ms] or [-42.724%; -40.410%]
  • 🟥 throughput [-133970.641op/s; -117944.217op/s] or [-19.249%; -16.946%]

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

  • unstable execution_time [-43.156ms; -22.676ms] or [-21.775%; -11.441%]
  • unstable throughput [-23597.461op/s; -7717.087op/s] or [-15.015%; -4.910%]

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

  • unstable execution_time [-48.363ms; -28.533ms] or [-24.657%; -14.547%]
  • 🟩 throughput [+7610.957op/s; +10296.790op/s] or [+6.063%; +8.203%]

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

  • unstable execution_time [-61.351ms; -39.195ms] or [-30.334%; -19.379%]
  • unstable throughput [-274743.432op/s; +91047.570op/s] or [-9.161%; +3.036%]

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

  • 🟩 execution_time [-16.410ms; -11.849ms] or [-7.564%; -5.462%]
  • 🟩 throughput [+163872.871op/s; +220035.743op/s] or [+6.505%; +8.734%]

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

  • 🟥 execution_time [+300.398ms; +314.063ms] or [+150.099%; +156.926%]

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

  • unstable execution_time [+151.985ms; +191.040ms] or [+76.646%; +96.342%]

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

  • 🟥 execution_time [+300.179ms; +306.683ms] or [+151.207%; +154.483%]

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

  • 🟥 execution_time [+297.309ms; +310.805ms] or [+146.026%; +152.655%]

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

  • 🟥 execution_time [+245.305ms; +259.910ms] or [+119.920%; +127.060%]

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

  • 🟥 execution_time [+278.892ms; +293.989ms] or [+139.390%; +146.935%]

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

  • 🟥 execution_time [+22.295µs; +49.730µs] or [+5.113%; +11.406%]
  • 🟥 throughput [-241.785op/s; -118.499op/s] or [-10.512%; -5.152%]

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

  • 🟥 execution_time [+29.402µs; +53.563µs] or [+9.387%; +17.100%]
  • 🟥 throughput [-487.878op/s; -285.382op/s] or [-15.209%; -8.896%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.024ms; +300.844ms] or [+149.743%; +150.152%]

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

  • unstable execution_time [+361.845ms; +381.126ms] or [+393.159%; +414.109%]
  • 🟥 throughput [-6946.043op/s; -6737.329op/s] or [-57.077%; -55.362%]

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

  • unstable execution_time [+202.847ms; +277.209ms] or [+154.020%; +210.482%]
  • 🟥 throughput [-1341.499op/s; -1057.063op/s] or [-12.987%; -10.233%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+291.981ms; +306.302ms] or [+134.250%; +140.835%]
  • 🟥 throughput [-677.528op/s; -660.711op/s] or [-61.391%; -59.867%]

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

  • unstable execution_time [-52.117ms; +81.717ms] or [-22.210%; +34.824%]
  • 🟥 throughput [-704.932op/s; -613.201op/s] or [-47.019%; -40.901%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • unstable execution_time [+255.419ms; +320.719ms] or [+152.770%; +191.827%]
  • 🟥 throughput [-730.036op/s; -695.770op/s] or [-50.831%; -48.445%]

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

  • 🟩 execution_time [-185.058µs; -157.356µs] or [-9.374%; -7.971%]
  • 🟩 throughput [+44.284op/s; +52.747op/s] or [+8.742%; +10.413%]

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

  • 🟩 execution_time [-230.430µs; -221.998µs] or [-5.844%; -5.630%]
  • 🟩 throughput [+15.139op/s; +15.733op/s] or [+5.970%; +6.204%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+304.959ms; +315.548ms] or [+153.571%; +158.904%]

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

  • unstable execution_time [+185.307ms; +242.666ms] or [+92.858%; +121.600%]

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

  • 🟥 execution_time [+301.021ms; +308.671ms] or [+151.220%; +155.063%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+304.295ms; +318.629ms] or [+152.807%; +160.005%]

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

  • unstable execution_time [+260.402ms; +285.510ms] or [+128.757%; +141.172%]

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

  • 🟥 execution_time [+302.717ms; +310.132ms] or [+153.430%; +157.189%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+299.698ms; +310.730ms] or [+150.421%; +155.959%]

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

  • 🟥 execution_time [+305.288ms; +312.744ms] or [+152.158%; +155.874%]
  • 🟩 throughput [+49581.450op/s; +59542.511op/s] or [+9.845%; +11.823%]

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

  • 🟥 execution_time [+303.920ms; +309.980ms] or [+151.197%; +154.212%]

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

  • 🟩 execution_time [-27.255ms; -13.171ms] or [-12.674%; -6.125%]
  • 🟥 throughput [-192839.864op/s; -170212.606op/s] or [-52.901%; -46.694%]

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

  • unstable execution_time [-71.013ms; -42.839ms] or [-35.621%; -21.489%]

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

  • 🟩 allocated_mem [-24.808KB; -24.785KB] or [-9.049%; -9.041%]
  • unstable execution_time [-77.262µs; -21.431µs] or [-15.270%; -4.236%]
  • unstable throughput [+109.890op/s; +312.312op/s] or [+5.484%; +15.585%]

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

  • 🟩 execution_time [-88.203µs; -31.426µs] or [-15.285%; -5.446%]
  • 🟩 throughput [+115.525op/s; +273.486op/s] or [+6.600%; +15.625%]

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

  • unstable execution_time [+1.995µs; +6.480µs] or [+4.715%; +15.316%]

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

  • unstable execution_time [-14.832µs; -6.766µs] or [-23.011%; -10.497%]
  • unstable throughput [+1799.441op/s; +3607.329op/s] or [+11.040%; +22.132%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+304.364ms; +318.201ms] or [+153.842%; +160.836%]

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

  • 🟥 execution_time [+304.366ms; +308.370ms] or [+154.921%; +156.959%]

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

  • 🟥 execution_time [+297.060ms; +305.396ms] or [+148.715%; +152.888%]

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

  • unstable execution_time [-48.629ms; -9.908ms] or [-24.307%; -4.953%]
  • unstable throughput [-252315.672op/s; -171174.526op/s] or [-47.758%; -32.400%]

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

  • 🟩 execution_time [-110.003ms; -106.009ms] or [-55.761%; -53.736%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.364ms; +313.025ms] or [+149.704%; +156.015%]

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

  • 🟥 execution_time [+300.670ms; +308.173ms] or [+150.982%; +154.750%]

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

  • 🟥 execution_time [+302.063ms; +307.811ms] or [+153.187%; +156.102%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.724ms; +301.507ms] or [+150.003%; +150.393%]
  • 🟩 throughput [+59954031.694op/s; +60265798.606op/s] or [+43.662%; +43.889%]

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

  • unstable execution_time [+370.080ms; +380.430ms] or [+460.261%; +473.133%]
  • 🟥 throughput [-7343.359op/s; -7149.119op/s] or [-56.768%; -55.266%]

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

  • 🟥 execution_time [+302.229ms; +304.488ms] or [+150.745%; +151.872%]
  • 🟥 throughput [-30193633.480op/s; -28970010.416op/s] or [-13.374%; -12.832%]

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

  • unstable execution_time [-79.855ms; -52.842ms] or [-39.111%; -25.881%]
  • unstable throughput [-236826.850op/s; -82938.390op/s] or [-22.112%; -7.744%]

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

  • unstable execution_time [-50.242ms; -22.526ms] or [-25.423%; -11.399%]
  • 🟩 throughput [+61237.011op/s; +81469.208op/s] or [+7.088%; +9.430%]

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

  • unstable execution_time [-79.857ms; -57.408ms] or [-41.606%; -29.910%]
  • unstable throughput [-162095.063op/s; -14095.611op/s] or [-12.546%; -1.091%]

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

  • unstable execution_time [-94.532ms; -72.116ms] or [-46.445%; -35.432%]
  • 🟩 throughput [+89446.778op/s; +96699.515op/s] or [+8.884%; +9.604%]

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

  • unstable execution_time [-88.916ms; -65.986ms] or [-44.404%; -32.953%]
  • unstable throughput [-44333.094op/s; +27245.731op/s] or [-8.050%; +4.947%]

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

  • unstable execution_time [-86.533ms; -64.819ms] or [-43.477%; -32.567%]

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

  • unstable execution_time [-103.339ms; -80.311ms] or [-51.688%; -40.170%]
  • unstable throughput [-71846.652op/s; +44742.651op/s] or [-8.027%; +4.999%]

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

  • unstable execution_time [-90.663ms; -70.330ms] or [-46.046%; -35.720%]

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_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_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_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild 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.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark 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

@igoragoli
igoragoli force-pushed the augusto/enable-otel-benchmarks branch from 7e8b594 to 0f362e2 Compare May 6, 2026 06:31
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented May 6, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8559) and master.

⚠️ Potential regressions detected

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1264.58 ± (1263.27 - 1269.26) ms1336.79 ± (1335.73 - 1343.77) ms+5.7%❌⬆️
Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration74.77 ± (74.78 - 75.47) ms72.40 ± (72.37 - 72.69) ms-3.2%
.NET Framework 4.8 - Bailout
duration79.43 ± (78.92 - 79.46) ms77.22 ± (77.29 - 77.75) ms-2.8%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1125.90 ± (1125.54 - 1132.96) ms1127.42 ± (1127.99 - 1133.54) ms+0.1%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.69 ± (22.62 - 22.75) ms22.50 ± (22.46 - 22.55) ms-0.8%
process.time_to_main_ms87.16 ± (86.80 - 87.51) ms84.99 ± (84.72 - 85.26) ms-2.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.90 - 10.91) MB10.94 ± (10.93 - 10.94) MB+0.3%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.40 ± (22.36 - 22.44) ms22.71 ± (22.65 - 22.78) ms+1.4%✅⬆️
process.time_to_main_ms85.56 ± (85.35 - 85.76) ms88.92 ± (88.59 - 89.24) ms+3.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.96 ± (10.95 - 10.96) MB10.96 ± (10.96 - 10.96) MB+0.0%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms204.40 ± (203.79 - 205.00) ms204.56 ± (204.01 - 205.12) ms+0.1%✅⬆️
process.time_to_main_ms566.93 ± (565.53 - 568.34) ms566.60 ± (565.01 - 568.19) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.80 ± (49.77 - 49.83) MB49.77 ± (49.74 - 49.80) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+1.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.53 ± (21.47 - 21.59) ms21.09 ± (21.05 - 21.13) ms-2.1%
process.time_to_main_ms75.75 ± (75.46 - 76.03) ms72.94 ± (72.74 - 73.14) ms-3.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.62 - 10.63) MB10.63 ± (10.63 - 10.64) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.10 ± (21.06 - 21.13) ms20.94 ± (20.90 - 20.97) ms-0.8%
process.time_to_main_ms74.75 ± (74.58 - 74.93) ms73.88 ± (73.67 - 74.09) ms-1.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.74 ± (10.74 - 10.74) MB10.75 ± (10.74 - 10.75) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms353.37 ± (351.28 - 355.46) ms355.60 ± (352.64 - 358.57) ms+0.6%✅⬆️
process.time_to_main_ms563.86 ± (562.44 - 565.28) ms564.96 ± (562.69 - 567.23) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.97 ± (50.94 - 50.99) MB51.14 ± (51.11 - 51.17) MB+0.3%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.83 ± (19.77 - 19.89) ms19.46 ± (19.42 - 19.49) ms-1.9%
process.time_to_main_ms75.12 ± (74.84 - 75.40) ms73.50 ± (73.32 - 73.68) ms-2.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.68 - 7.69) MB7.68 ± (7.67 - 7.68) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.71 ± (19.65 - 19.77) ms19.51 ± (19.47 - 19.55) ms-1.0%
process.time_to_main_ms76.07 ± (75.79 - 76.34) ms74.71 ± (74.55 - 74.86) ms-1.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.72 - 7.73) MB7.73 ± (7.72 - 7.73) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms280.42 ± (278.17 - 282.67) ms280.92 ± (278.12 - 283.73) ms+0.2%✅⬆️
process.time_to_main_ms521.49 ± (520.14 - 522.84) ms525.45 ± (524.02 - 526.89) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.86 ± (37.83 - 37.90) MB37.89 ± (37.86 - 37.91) 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
duration202.64 ± (203.29 - 204.97) ms210.69 ± (212.92 - 215.73) ms+4.0%✅⬆️
.NET Framework 4.8 - Bailout
duration207.02 ± (207.21 - 208.46) ms215.86 ± (217.47 - 220.30) ms+4.3%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1264.58 ± (1263.27 - 1269.26) ms1336.79 ± (1335.73 - 1343.77) ms+5.7%❌⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms200.22 ± (199.53 - 200.92) ms210.19 ± (208.70 - 211.68) ms+5.0%✅⬆️
process.time_to_main_ms87.05 ± (86.71 - 87.39) ms92.02 ± (91.36 - 92.67) ms+5.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.96 ± (15.94 - 15.97) MB15.84 ± (15.82 - 15.86) MB-0.7%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.9%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms200.40 ± (199.56 - 201.25) ms209.00 ± (207.63 - 210.37) ms+4.3%✅⬆️
process.time_to_main_ms88.64 ± (88.27 - 89.02) ms92.63 ± (91.97 - 93.29) ms+4.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.98 ± (15.96 - 15.99) MB15.88 ± (15.86 - 15.90) MB-0.6%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.5%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms386.01 ± (384.62 - 387.41) ms393.66 ± (391.57 - 395.75) ms+2.0%✅⬆️
process.time_to_main_ms583.59 ± (581.82 - 585.36) ms604.14 ± (600.89 - 607.39) ms+3.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.59 ± (58.42 - 58.75) MB59.32 ± (59.17 - 59.47) MB+1.3%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.7%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms204.83 ± (204.19 - 205.46) ms213.01 ± (211.44 - 214.58) ms+4.0%✅⬆️
process.time_to_main_ms75.41 ± (75.12 - 75.71) ms78.82 ± (78.26 - 79.38) ms+4.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.24 ± (16.22 - 16.26) MB16.21 ± (16.19 - 16.23) MB-0.2%
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (19 - 20)+0.9%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms205.14 ± (204.46 - 205.82) ms212.44 ± (210.93 - 213.94) ms+3.6%✅⬆️
process.time_to_main_ms76.82 ± (76.51 - 77.12) ms79.84 ± (79.29 - 80.38) ms+3.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.29 ± (16.27 - 16.31) MB16.27 ± (16.25 - 16.29) MB-0.1%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 21)+0.9%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms567.35 ± (564.70 - 569.99) ms587.92 ± (581.74 - 594.10) ms+3.6%✅⬆️
process.time_to_main_ms570.70 ± (569.50 - 571.90) ms596.69 ± (594.15 - 599.23) ms+4.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.94 ± (61.90 - 61.97) MB62.25 ± (62.17 - 62.33) MB+0.5%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.8%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms202.87 ± (202.26 - 203.49) ms208.84 ± (207.44 - 210.24) ms+2.9%✅⬆️
process.time_to_main_ms74.81 ± (74.54 - 75.07) ms76.87 ± (76.42 - 77.33) ms+2.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.64 ± (11.63 - 11.66) MB11.53 ± (11.50 - 11.55) MB-1.0%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.6%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms202.43 ± (201.72 - 203.14) ms209.80 ± (208.58 - 211.02) ms+3.6%✅⬆️
process.time_to_main_ms75.69 ± (75.44 - 75.95) ms79.35 ± (78.95 - 79.74) ms+4.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.63 ± (11.62 - 11.65) MB11.55 ± (11.53 - 11.57) MB-0.7%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+1.7%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms495.65 ± (491.23 - 500.07) ms540.53 ± (532.74 - 548.32) ms+9.1%✅⬆️
process.time_to_main_ms531.02 ± (529.46 - 532.59) ms557.73 ± (554.86 - 560.61) ms+5.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.66 ± (51.61 - 51.70) MB51.71 ± (51.64 - 51.77) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 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 (8559) - mean (73ms)  : 70, 75
    master - mean (75ms)  : 70, 80

    section Bailout
    This PR (8559) - mean (78ms)  : 75, 80
    master - mean (79ms)  : 75, 83

    section CallTarget+Inlining+NGEN
    This PR (8559) - mean (1,131ms)  : 1091, 1170
    master - mean (1,129ms)  : 1075, 1183

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 (8559) - mean (115ms)  : 109, 121
    master - mean (117ms)  : 110, 124

    section Bailout
    This PR (8559) - mean (119ms)  : 112, 126
    master - mean (115ms)  : 112, 118

    section CallTarget+Inlining+NGEN
    This PR (8559) - mean (809ms)  : 783, 835
    master - mean (808ms)  : 777, 839

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

    section Bailout
    This PR (8559) - mean (101ms)  : 98, 104
    master - mean (102ms)  : 98, 106

    section CallTarget+Inlining+NGEN
    This PR (8559) - mean (952ms)  : 916, 987
    master - mean (951ms)  : 910, 991

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8559) - mean (101ms)  : 96, 106
    master - mean (103ms)  : 97, 109

    section Bailout
    This PR (8559) - mean (102ms)  : 99, 105
    master - mean (104ms)  : 99, 109

    section CallTarget+Inlining+NGEN
    This PR (8559) - mean (837ms)  : 785, 889
    master - mean (834ms)  : 791, 876

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 (8559) - mean (214ms)  : 194, 235
    master - mean (204ms)  : 192, 217

    section Bailout
    This PR (8559) - mean (219ms)  : 198, 239
    master - mean (208ms)  : 199, 217

    section CallTarget+Inlining+NGEN
    This PR (8559) - mean (1,340ms)  : crit, 1282, 1398
    master - mean (1,266ms)  : 1223, 1309

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 (8559) - mean (317ms)  : 279, 355
    master - mean (298ms)  : 282, 315

    section Bailout
    This PR (8559) - mean (315ms)  : 282, 348
    master - mean (299ms)  : 283, 315

    section CallTarget+Inlining+NGEN
    This PR (8559) - mean (1,054ms)  : 1007, 1102
    master - mean (1,010ms)  : 987, 1033

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8559) - mean (304ms)  : 269, 338
    master - mean (290ms)  : 276, 304

    section Bailout
    This PR (8559) - mean (308ms)  : 265, 351
    master - mean (292ms)  : 277, 307

    section CallTarget+Inlining+NGEN
    This PR (8559) - mean (1,226ms)  : 1129, 1324
    master - mean (1,171ms)  : 1132, 1210

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8559) - mean (300ms)  : 266, 335
    master - mean (289ms)  : 274, 305

    section Bailout
    This PR (8559) - mean (304ms)  : 271, 336
    master - mean (289ms)  : 274, 305

    section CallTarget+Inlining+NGEN
    This PR (8559) - mean (1,129ms)  : crit, 1035, 1223
    master - mean (1,065ms)  : 988, 1141

Loading

igoragoli added 19 commits May 6, 2026 11:38
…llocation

- Add batch-2 for Benchmarks.OpenTelemetry.InstrumentedApi (all commits)
- Add batch-3 for Benchmarks.OpenTelemetry.Api (master only)
- Change cpus_per_item from 2 to 1 for better parallelism
- Use non-overlapping CPU masks across batches
- Support BENCHMARK_PROJECT and ONLY_ON_MASTER env vars in runner script
- Remove ONLY_ON_MASTER env var and its check
- Add DLL existence check to skip benchmarks for projects not built
- Add comments explaining BENCHMARK_CATEGORY usage
- batch-0 -> trace
- batch-1 -> trace-unstable
- batch-2 -> otel-instr-api
- batch-3 -> otel-api
@andrewlock andrewlock added the area:benchmarks Benchmarks, throughput tests, Crank, Bombardier, etc label May 6, 2026
@andrewlock andrewlock added the area:builds project files, build scripts, pipelines, versioning, releases, packages label May 6, 2026
Exit 56 (recv failure) not retried by default. --retry-all-errors fixes.
@igoragoli
igoragoli force-pushed the augusto/enable-otel-benchmarks branch from 68b5bc1 to 38144d4 Compare May 6, 2026 12:14
@igoragoli igoragoli changed the title feat(benchmarks): add OpenTelemetry benchmark batches, optimize CPU allocation Add OpenTelemetry benchmark batches, optimize CPU allocation May 7, 2026
igoragoli added 2 commits May 7, 2026 14:42
Nuke's BuildBenchmarks checks PR_NUMBER to exclude
Benchmarks.OpenTelemetry.Api on PRs. Without forwarding it,
the project was built and run on every PR unnecessarily.
@igoragoli
igoragoli marked this pull request as ready for review May 7, 2026 13:19
@igoragoli igoragoli changed the title Add OpenTelemetry benchmark batches, optimize CPU allocation Readd OpenTelemetry benchmarks May 7, 2026
@igoragoli igoragoli changed the title Readd OpenTelemetry benchmarks Enable OpenTelemetry microbenchmarks May 7, 2026

@NachoEchevarria NachoEchevarria left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@igoragoli

igoragoli commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

@igoragoli
igoragoli merged commit ae8ed60 into master May 7, 2026
137 checks passed
@igoragoli
igoragoli deleted the augusto/enable-otel-benchmarks branch May 7, 2026 15:28
@github-actions github-actions Bot added this to the vNext-v3 milestone May 7, 2026
@faydef faydef mentioned this pull request May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:benchmarks Benchmarks, throughput tests, Crank, Bombardier, etc area:builds project files, build scripts, pipelines, versioning, releases, packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants