Skip to content

test(bench): add task ownership A/B profile - #154

Open
LimiNode wants to merge 2 commits into
mainfrom
research/task-ownership-ab
Open

LimiNode wants to merge 2 commits into
mainfrom
research/task-ownership-ab

Conversation

@LimiNode

@LimiNode LimiNode commented Oct 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • compare std::function construction/copy with payload ownership
  • measure TaskExecutor batch admission versus one-at-a-time round-trip
  • measure direct MpscRingAny publication for std::function and uint64 payloads
  • add bounded round-trip sample count and Linux C++17 smoke coverage

Verification

  • MSVC Release C++17 with MPSC ring: 100k batch/ring samples, bounded 1k round-trip samples
  • MSVC Release C++17 with mutex deque: smoke run
  • all changes are benchmark/CI/docs only; production implementation unchanged

Add a benchmark-only target comparing std::function ownership, TaskExecutor batch and round-trip admission, and direct MPSC ring publication. Keep the expensive round-trip probe bounded and cover the target with a short Linux C++17 CI smoke.
Add a prebuilt std::function ring probe with construction outside the timed producer region, rename the constructed publication case, and document concurrent-consumer and control-payload semantics.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant