Skip to content

fix: keep polling after a reactor wait fails - #426

Merged
sgerbino merged 2 commits into
cppalliance:developfrom
sgerbino:pr/reactor-throw-keeps-sentinel
Nov 19, 2026
Merged

sgerbino merged 2 commits into
cppalliance:developfrom
sgerbino:pr/reactor-throw-keeps-sentinel

Conversation

@sgerbino

@sgerbino sgerbino commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

When the reactor's wait call failed (epoll_wait, select or kevent with an error other than EINTR), run() rethrew without putting the reactor sentinel back in the queue. Nothing else pushes it, so the context never polled for I/O again: every later run(), run_for() or poll() ran posted handlers only, and parked reads, writes and accepts never completed. In a multi-threaded loop, a peer thread waiting behind the failed pass also slept forever, since nothing woke it.

The failed pass now re-takes the lock if run_task released it, requeues the sentinel and wakes every waiting thread before the exception leaves run(). The uring scheduler already does the same.

epoll's run_task had two more throw sites with the same effect. A failed timerfd update cleared the stale flag first, so no later pass rearmed the timer and the next wait could block with a timer due. A failed update after the wait dropped the events that wait collected; each was already marked enqueued, so its socket never queued again. The update now leaves the flag set when it fails, and collected events move to the thread's private queue before anything can throw.

Descriptors retired during the failed pass stay on the retired list and are settled by the next pass or by shutdown_drain, so nothing leaks.

Tests, in the reactor fault suite (epoll, select, kqueue):

  • testWaitFailureKeepsPolling: the wait fails and run() throws; a read parked before the failure must complete on the next run.
  • testWaitFailureLeavesPeerPolling: two threads run the context. A short timer holds the first wait while the second thread parks, the next wait then fails on one thread, and the byte is sent only after the failure, so the surviving thread must be woken to finish the read.

In the epoll fault suite:

  • testRunLoopFaults: a timerfd update that fails before the wait no longer loses the timer; the next run's delay completes.
  • testTimerUpdateFailureKeepsEvents: a byte and a due timer are collected by the same pass, the timer update after the wait fails, and the parked read must still complete on the next run.

On kqueue the wakeup also calls kevent, so the tests fail the wait through a new kevent_wait fault arm that matches only calls collecting events without submitting changes.

select retries EBADF, so its tests fail the wait with EINVAL. Both tests failed on epoll and select before the fix. With the wake removed, the two-thread test fails in 39 of 40 runs, and each epoll test fails with its fix reverted; none failed in hundreds of runs with the fixes in place.

Summary by CodeRabbit

  • Bug Fixes
    • When a task throws an error, the scheduler now restores its completion state, notifies waiting operations, and then propagates the error.
    • Timer programming can be retried after a failure.
    • Pending descriptor operations are transferred for processing before timer handling.

@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d4b8b0e and d4bb81c.

Files ignored due to path filters: 4

  • test/unit/fault/epoll_faults.cpp is excluded by !**/test/**
  • test/unit/fault/fault.hpp is excluded by !**/test/**
  • test/unit/fault/fault_posix.cpp is excluded by !**/test/**
  • test/unit/fault/reactor_faults.hpp is excluded by !**/test/**
Files selected for processing: 2

  • include/boost/corosio/native/detail/epoll/epoll_scheduler.hpp
  • include/boost/corosio/native/detail/reactor/reactor_scheduler.hpp

No actionable comments were generated in the recent review.

Walkthrough

The reactor scheduler now restores task state and signals waiters when run_task throws. The epoll scheduler marks the timerfd stale after a programming failure and transfers queued descriptor operations to ctx.private_queue before timer processing.

Changes: Reactor task exception cleanup

Layer / File(s) Summary
Exception cleanup
include/boost/corosio/native/detail/reactor/reactor_scheduler.hpp
When run_task throws, the code reacquires the lock if needed, clears task_running_, restores the reactor sentinel to completed_ops_, and signals all waiters before rethrowing.

Epoll timer and operation handling

Layer / File(s) Summary
Timer retry and operation queue handling
include/boost/corosio/native/detail/epoll/epoll_scheduler.hpp
update_timerfd marks the timerfd stale before throwing on timerfd_settime failure. run_task transfers locally queued descriptor operations to ctx.private_queue before timer processing and removes the final splice to completed_ops_.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: mvandeberg

Merge Risk: Minimal · previous review 979f3

This change keeps I/O polling working after a reactor wait failure and preserves epoll timer and event state. No actionable merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix: keep polling after a reactor wait fails" matches the main change. The objectives describe restoring the reactor sentinel and waking parked threads when a wait call fails, so polling co…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix: keep polling after a reactor wait fails" matches the main change. The objectives describe restoring the reactor sentinel and waking parked threads when a wait call fails, so polling continues. The raw summary covers the reactor_scheduler.hpp catch-block change and the epoll timer and queue changes. The title does not name the epoll timer-update fix, but it is an aspect of the same reliability fix, so the title is related and specific.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit watched the task unwind,
Then saw the waiting threads aligned.
The timer stale, the queues in place,
Operations moved at measured pace.
It thumped and hopped beneath the moon,
As schedulers recovered soon.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 93b552d and 979f37a.

Files ignored due to path filters: 4

  • test/unit/fault/epoll_faults.cpp is excluded by !**/test/**
  • test/unit/fault/fault.hpp is excluded by !**/test/**
  • test/unit/fault/fault_posix.cpp is excluded by !**/test/**
  • test/unit/fault/reactor_faults.hpp is excluded by !**/test/**
Files selected for processing: 1

  • include/boost/corosio/native/detail/reactor/reactor_scheduler.hpp

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@cppalliance-bot

cppalliance-bot commented Nov 18, 2026 •

Copy link
Copy Markdown

An automated preview of the documentation is available at https://426.corosio.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-11-19 20:54:08 UTC

@cppalliance-bot

cppalliance-bot commented Nov 18, 2026 •

Copy link
Copy Markdown

GCOVR code coverage report https://426.corosio.prtest3.cppalliance.org/gcovr/index.html
LCOV code coverage report https://426.corosio.prtest3.cppalliance.org/genhtml/index.html
Coverage Diff Report https://426.corosio.prtest3.cppalliance.org/diff-report/index.html

Build time: 2026-11-19 21:10:30 UTC

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Benchmark report

6ff567e1010d (base) vs d4bb81c35c66 (head)

  • ✅ linux — clean (epoll, uring)
  • ✅ windows — clean (iocp)
  • ✅ macos — clean (kqueue)
linux — full results (226 benchmarks, 5 iterations, 1.5s each)

accept_churn

Benchmark Backend Metric Base Head Δ Noise
burst/10 epoll ops_per_sec 2.03K ops/s 2.03K ops/s 🔴▼ -0.26% 0.27%
burst/10 uring ops_per_sec 2.42K ops/s 2.42K ops/s 🔴▼ -0.17% 1.00%
burst/100 epoll ops_per_sec 205.5 ops/s 205.3 ops/s 🔴▼ -0.06% 0.28%
burst/100 uring ops_per_sec 247.7 ops/s 248.5 ops/s 🟢▲ +0.02% 0.64%
burst_lockless/10 epoll ops_per_sec 2.04K ops/s 2.04K ops/s 🔴▼ -0.03% 0.26%
burst_lockless/10 uring ops_per_sec 2.42K ops/s 2.43K ops/s 🔴▼ -0.21% 0.96%
burst_lockless/100 epoll ops_per_sec 206.9 ops/s 207.2 ops/s 🟢▲ +0.27% 0.24%
burst_lockless/100 uring ops_per_sec 248.9 ops/s 249.3 ops/s 🟢▲ +0.02% 0.54%
concurrent/1 epoll ops_per_sec 16.27K ops/s 16.22K ops/s 🔴▼ -0.36% 0.63%
concurrent/1 uring ops_per_sec 17.50K ops/s 17.38K ops/s 🔴▼ -0.42% 0.69%
concurrent/16 epoll ops_per_sec 16.22K ops/s 16.20K ops/s 🔴▼ -0.07% 0.40%
concurrent/16 uring ops_per_sec 19.02K ops/s 19.00K ops/s 🔴▼ -0.17% 1.15%
concurrent/4 epoll ops_per_sec 16.21K ops/s 16.21K ops/s 🟢▲ +0.03% 0.62%
concurrent/4 uring ops_per_sec 18.06K ops/s 17.95K ops/s 🟢▲ +0.02% 1.34%
sequential epoll ops_per_sec 16.29K ops/s 16.20K ops/s 🔴▼ -0.60% 0.67%
sequential uring ops_per_sec 17.43K ops/s 17.38K ops/s 🔴▼ -0.38% 0.30%
sequential_lockless epoll ops_per_sec 16.39K ops/s 16.33K ops/s 🔴▼ -0.41% 0.48%
sequential_lockless uring ops_per_sec 17.58K ops/s 17.47K ops/s 🔴▼ -0.80% 0.48%

fan_out

Benchmark Backend Metric Base Head Δ Noise
concurrent_parents/1 epoll ops_per_sec 3.95K ops/s 3.95K ops/s 🔴▼ -0.18% 0.61%
concurrent_parents/1 uring ops_per_sec 4.06K ops/s 4.08K ops/s 🟢▲ +0.37% 0.87%
concurrent_parents/16 epoll ops_per_sec 3.85K ops/s 3.84K ops/s 🔴▼ -0.29% 0.27%
concurrent_parents/16 uring ops_per_sec 3.98K ops/s 3.98K ops/s 🟢▲ +0.01% 0.10%
concurrent_parents/4 epoll ops_per_sec 3.86K ops/s 3.85K ops/s 🔴▼ -0.21% 0.21%
concurrent_parents/4 uring ops_per_sec 4.02K ops/s 4.01K ops/s 🔴▼ -0.12% 0.17%
concurrent_parents_lockless/1 epoll ops_per_sec 3.98K ops/s 3.96K ops/s 🔴▼ -0.30% 0.84%
concurrent_parents_lockless/1 uring ops_per_sec 4.09K ops/s 4.11K ops/s 🟢▲ +0.27% 0.48%
concurrent_parents_lockless/16 epoll ops_per_sec 3.89K ops/s 3.86K ops/s 🔴▼ -0.35% 1.08%
concurrent_parents_lockless/16 uring ops_per_sec 4.02K ops/s 4.03K ops/s 🟢▲ +0.09% 0.98%
concurrent_parents_lockless/4 epoll ops_per_sec 3.90K ops/s 3.88K ops/s 🔴▼ -0.42% 1.09%
concurrent_parents_lockless/4 uring ops_per_sec 4.06K ops/s 4.07K ops/s 🔴▼ -0.18% 0.97%
fork_join/1 epoll ops_per_sec 58.03K ops/s 57.78K ops/s 🔴▼ -0.30% 0.38%
fork_join/1 uring ops_per_sec 55.39K ops/s 55.59K ops/s 🟢▲ +0.50% 0.20%
fork_join/16 epoll ops_per_sec 3.97K ops/s 3.94K ops/s 🔴▼ -0.64% 1.07%
fork_join/16 uring ops_per_sec 4.05K ops/s 4.08K ops/s 🟢▲ +0.50% 0.88%
fork_join/4 epoll ops_per_sec 15.61K ops/s 15.55K ops/s 🔴▼ -0.55% 0.49%
fork_join/4 uring ops_per_sec 15.20K ops/s 15.30K ops/s 🟢▲ +0.45% 0.39%
fork_join/64 epoll ops_per_sec 973.8 ops/s 964.3 ops/s 🔴▼ -0.60% 0.90%
fork_join/64 uring ops_per_sec 1.01K ops/s 1.01K ops/s 🟢▲ +0.20% 1.06%
fork_join_lockless/1 epoll ops_per_sec 58.80K ops/s 58.48K ops/s 🔴▼ -0.11% 1.07%
fork_join_lockless/1 uring ops_per_sec 56.32K ops/s 56.81K ops/s 🟢▲ +0.57% 1.02%
fork_join_lockless/16 epoll ops_per_sec 3.99K ops/s 3.98K ops/s 🔴▼ -0.40% 1.25%
fork_join_lockless/16 uring ops_per_sec 4.09K ops/s 4.13K ops/s 🟢▲ +0.22% 0.94%
fork_join_lockless/4 epoll ops_per_sec 15.76K ops/s 15.69K ops/s 🔴▼ -0.25% 1.06%
fork_join_lockless/4 uring ops_per_sec 15.39K ops/s 15.50K ops/s 🟢▲ +0.29% 0.99%
fork_join_lockless/64 epoll ops_per_sec 978.3 ops/s 974.3 ops/s 🔴▼ -0.42% 1.04%
fork_join_lockless/64 uring ops_per_sec 1.01K ops/s 1.02K ops/s 🟢▲ +0.26% 1.10%
nested/16 epoll ops_per_sec 964.3 ops/s 963.7 ops/s 🔴▼ -0.44% 1.05%
nested/16 uring ops_per_sec 1.00K ops/s 1.01K ops/s 🟢▲ +0.02% 0.96%
nested/4 epoll ops_per_sec 3.94K ops/s 3.93K ops/s 🔴▼ -0.35% 1.06%
nested/4 uring ops_per_sec 4.04K ops/s 4.08K ops/s 🟢▲ +0.34% 1.09%
nested_lockless/16 epoll ops_per_sec 970.2 ops/s 969.6 ops/s 🔴▼ -0.53% 1.13%
nested_lockless/16 uring ops_per_sec 1.01K ops/s 1.01K ops/s 🔴▼ -0.06% 1.00%
nested_lockless/4 epoll ops_per_sec 3.95K ops/s 3.96K ops/s 🔴▼ -0.21% 1.11%
nested_lockless/4 uring ops_per_sec 4.08K ops/s 4.10K ops/s 🟢▲ +0.25% 0.98%

http_server

Benchmark Backend Metric Base Head Δ Noise
concurrent/1 epoll ops_per_sec 59.28K ops/s 59.48K ops/s 🔴▼ -0.14% 1.04%
concurrent/1 uring ops_per_sec 55.45K ops/s 55.53K ops/s 🟢▲ +0.06% 1.12%
concurrent/16 epoll ops_per_sec 62.24K ops/s 62.14K ops/s 🔴▼ -0.05% 0.39%
concurrent/16 uring ops_per_sec 65.47K ops/s 65.65K ops/s 🔴▼ -0.10% 1.12%
concurrent/32 epoll ops_per_sec 61.72K ops/s 61.61K ops/s 🔴▼ -0.13% 0.29%
concurrent/32 uring ops_per_sec 65.33K ops/s 65.62K ops/s 🟢▲ +0.34% 1.19%
concurrent/4 epoll ops_per_sec 61.94K ops/s 62.04K ops/s 🟢▲ +0.10% 0.36%
concurrent/4 uring ops_per_sec 63.28K ops/s 63.35K ops/s 🔴▼ -0.01% 1.08%
multithread/1 epoll ops_per_sec 61.72K ops/s 61.70K ops/s 🟢▲ +0.03% 0.22%
multithread/1 uring ops_per_sec 65.31K ops/s 65.61K ops/s 🟢▲ +0.32% 1.21%
multithread/16 epoll ops_per_sec 172.1K ops/s 171.7K ops/s 🔴▼ -0.30% 0.49%
multithread/16 uring ops_per_sec 103.1K ops/s 104.0K ops/s 🟢▲ +0.97% 0.55%
multithread/2 epoll ops_per_sec 94.01K ops/s 94.74K ops/s 🟢▲ +0.65% 0.43%
multithread/2 uring ops_per_sec 78.97K ops/s 79.06K ops/s 🟢▲ +0.15% 0.23%
multithread/4 epoll ops_per_sec 168.0K ops/s 168.4K ops/s 🔴▼ -0.29% 1.54%
multithread/4 uring ops_per_sec 123.6K ops/s 125.0K ops/s 🟢▲ +0.62% 1.05%
multithread/8 epoll ops_per_sec 172.0K ops/s 171.6K ops/s 🔴▼ -0.17% 0.29%
multithread/8 uring ops_per_sec 116.4K ops/s 116.1K ops/s 🔴▼ -0.16% 0.61%
single_conn epoll ops_per_sec 59.20K ops/s 59.43K ops/s ⚪ 0.00% 1.08%
single_conn uring ops_per_sec 55.60K ops/s 55.61K ops/s 🔴▼ -0.32% 0.98%
single_conn_lockless epoll ops_per_sec 59.56K ops/s 59.92K ops/s 🟢▲ +0.03% 1.05%
single_conn_lockless uring ops_per_sec 56.66K ops/s 56.56K ops/s 🔴▼ -0.39% 1.30%

local_socket_latency

Benchmark Backend Metric Base Head Δ Noise
concurrent/1 epoll latency_mean_ns 6.34 µs 6.77 µs 🔴▼ -10.65% 5.51%
concurrent/1 uring latency_mean_ns 5.29 µs 5.45 µs 🔴▼ -0.79% 5.29%
concurrent/16 epoll latency_mean_ns 101.50 µs 101.46 µs 🔴▼ -0.13% 0.32%
concurrent/16 uring latency_mean_ns 87.56 µs 87.64 µs 🔴▼ -0.22% 0.35%
concurrent/4 epoll latency_mean_ns 25.55 µs 25.47 µs 🟢▲ +0.10% 1.34%
concurrent/4 uring latency_mean_ns 21.83 µs 21.77 µs 🔴▼ -0.26% 1.54%
concurrent_lockless/1 epoll latency_mean_ns 6.70 µs 6.60 µs 🟢▲ +0.48% 5.75%
concurrent_lockless/1 uring latency_mean_ns 5.28 µs 5.38 µs 🔴▼ -0.72% 3.05%
concurrent_lockless/16 epoll latency_mean_ns 101.15 µs 100.56 µs 🟢▲ +0.63% 0.89%
concurrent_lockless/16 uring latency_mean_ns 87.31 µs 87.55 µs 🔴▼ -0.22% 0.51%
concurrent_lockless/4 epoll latency_mean_ns 25.25 µs 25.32 µs 🔴▼ -0.08% 1.46%
concurrent_lockless/4 uring latency_mean_ns 21.97 µs 21.77 µs 🔴▼ -0.19% 1.49%
pingpong/1 epoll latency_mean_ns 6.39 µs 6.43 µs 🔴▼ -0.51% 4.78%
pingpong/1 uring latency_mean_ns 5.38 µs 5.40 µs 🔴▼ -0.36% 5.70%
pingpong/1024 epoll latency_mean_ns 6.83 µs 7.00 µs 🔴▼ -0.18% 5.72%
pingpong/1024 uring latency_mean_ns 5.80 µs 5.95 µs 🔴▼ -0.11% 6.36%
pingpong/64 epoll latency_mean_ns 6.47 µs 6.39 µs 🔴▼ -0.17% 5.11%
pingpong/64 uring latency_mean_ns 5.43 µs 5.32 µs 🔴▼ -0.48% 5.55%
pingpong_lockless/1 epoll latency_mean_ns 6.42 µs 6.40 µs 🟢▲ +0.36% 4.98%
pingpong_lockless/1 uring latency_mean_ns 5.51 µs 5.32 µs 🔴▼ -0.27% 6.85%
pingpong_lockless/1024 epoll latency_mean_ns 6.81 µs 6.72 µs 🔴▼ -0.43% 5.78%
pingpong_lockless/1024 uring latency_mean_ns 6.19 µs 5.97 µs 🔴▼ -0.07% 5.68%
pingpong_lockless/64 epoll latency_mean_ns 6.39 µs 6.44 µs 🟢▲ +0.12% 4.89%
pingpong_lockless/64 uring latency_mean_ns 5.35 µs 5.48 µs 🔴▼ -1.17% 5.38%

local_socket_throughput

Benchmark Backend Metric Base Head Δ Noise
bidirectional/1024 epoll bytes_per_sec 320.9 MB/s 318.0 MB/s 🔴▼ -1.62% 1.29%
bidirectional/1024 uring bytes_per_sec 362.1 MB/s 360.3 MB/s 🔴▼ -0.79% 0.77%
bidirectional/1048576 epoll bytes_per_sec 3.24 GB/s 3.30 GB/s 🟢▲ +1.56% 2.05%
bidirectional/1048576 uring bytes_per_sec 3.57 GB/s 3.53 GB/s 🔴▼ -1.38% 2.18%
bidirectional/16384 epoll bytes_per_sec 3.21 GB/s 3.05 GB/s 🔴▼ -2.57% 6.77%
bidirectional/16384 uring bytes_per_sec 2.99 GB/s 3.08 GB/s 🟢▲ +3.57% 3.29%
bidirectional/262144 epoll bytes_per_sec 3.25 GB/s 3.28 GB/s 🟢▲ +0.82% 1.79%
bidirectional/262144 uring bytes_per_sec 3.54 GB/s 3.51 GB/s 🔴▼ -1.64% 1.76%
bidirectional/4096 epoll bytes_per_sec 1.04 GB/s 1.03 GB/s 🔴▼ -0.39% 1.15%
bidirectional/4096 uring bytes_per_sec 1.14 GB/s 1.15 GB/s 🟢▲ +0.29% 2.05%
bidirectional/65536 epoll bytes_per_sec 3.01 GB/s 3.03 GB/s 🔴▼ -0.38% 2.97%
bidirectional/65536 uring bytes_per_sec 3.48 GB/s 3.51 GB/s 🔴▼ -0.51% 3.43%
bidirectional_lockless/1024 epoll bytes_per_sec 318.8 MB/s 320.3 MB/s 🟢▲ +0.12% 0.94%
bidirectional_lockless/1024 uring bytes_per_sec 363.1 MB/s 360.0 MB/s 🔴▼ -0.62% 1.14%
bidirectional_lockless/1048576 epoll bytes_per_sec 3.24 GB/s 3.29 GB/s 🟢▲ +2.26% 2.07%
bidirectional_lockless/1048576 uring bytes_per_sec 3.57 GB/s 3.55 GB/s 🔴▼ -0.94% 1.83%
bidirectional_lockless/16384 epoll bytes_per_sec 3.13 GB/s 3.10 GB/s 🟢▲ +0.04% 7.04%
bidirectional_lockless/16384 uring bytes_per_sec 3.02 GB/s 3.06 GB/s 🟢▲ +1.85% 1.39%
bidirectional_lockless/262144 epoll bytes_per_sec 3.24 GB/s 3.28 GB/s 🟢▲ +1.40% 1.77%
bidirectional_lockless/262144 uring bytes_per_sec 3.54 GB/s 3.51 GB/s 🟢▲ +0.29% 2.10%
bidirectional_lockless/4096 epoll bytes_per_sec 1.04 GB/s 1.04 GB/s 🟢▲ +0.25% 1.12%
bidirectional_lockless/4096 uring bytes_per_sec 1.14 GB/s 1.14 GB/s 🔴▼ -0.63% 1.84%
bidirectional_lockless/65536 epoll bytes_per_sec 3.03 GB/s 3.06 GB/s 🟢▲ +0.34% 2.93%
bidirectional_lockless/65536 uring bytes_per_sec 3.50 GB/s 3.48 GB/s 🔴▼ -1.62% 1.87%
unidirectional/1024 epoll bytes_per_sec 313.9 MB/s 312.9 MB/s 🔴▼ -0.48% 0.94%
unidirectional/1024 uring bytes_per_sec 362.7 MB/s 360.6 MB/s 🔴▼ -0.33% 1.08%
unidirectional/1048576 epoll bytes_per_sec 3.30 GB/s 3.36 GB/s 🟢▲ +1.67% 2.29%
unidirectional/1048576 uring bytes_per_sec 3.56 GB/s 3.51 GB/s 🔴▼ -1.84% 3.27%
unidirectional/16384 epoll bytes_per_sec 3.16 GB/s 3.04 GB/s ⚪ 0.00% 13.07%
unidirectional/16384 uring bytes_per_sec 3.05 GB/s 3.09 GB/s 🟢▲ +1.00% 3.83%
unidirectional/262144 epoll bytes_per_sec 3.32 GB/s 3.37 GB/s 🟢▲ +1.66% 1.91%
unidirectional/262144 uring bytes_per_sec 3.52 GB/s 3.52 GB/s 🟢▲ +0.08% 2.55%
unidirectional/4096 epoll bytes_per_sec 1.03 GB/s 1.03 GB/s 🟢▲ +0.20% 1.69%
unidirectional/4096 uring bytes_per_sec 1.15 GB/s 1.15 GB/s 🔴▼ -0.05% 1.19%
unidirectional/65536 epoll bytes_per_sec 3.28 GB/s 3.34 GB/s 🟢▲ +0.34% 4.99%
unidirectional/65536 uring bytes_per_sec 3.54 GB/s 3.57 GB/s 🟢▲ +0.15% 2.56%
unidirectional_lockless/1024 epoll bytes_per_sec 313.7 MB/s 317.2 MB/s 🟢▲ +2.02% 1.35%
unidirectional_lockless/1024 uring bytes_per_sec 361.7 MB/s 361.2 MB/s 🟢▲ +0.08% 0.61%
unidirectional_lockless/1048576 epoll bytes_per_sec 3.32 GB/s 3.36 GB/s 🟢▲ +2.03% 2.86%
unidirectional_lockless/1048576 uring bytes_per_sec 3.60 GB/s 3.52 GB/s 🔴▼ -1.96% 2.02%
unidirectional_lockless/16384 epoll bytes_per_sec 3.18 GB/s 3.00 GB/s 🟢▲ +0.04% 13.16%
unidirectional_lockless/16384 uring bytes_per_sec 3.10 GB/s 3.07 GB/s 🔴▼ -1.75% 1.51%
unidirectional_lockless/262144 epoll bytes_per_sec 3.32 GB/s 3.35 GB/s 🟢▲ +2.15% 1.85%
unidirectional_lockless/262144 uring bytes_per_sec 3.54 GB/s 3.51 GB/s 🔴▼ -1.72% 2.56%
unidirectional_lockless/4096 epoll bytes_per_sec 1.03 GB/s 1.03 GB/s 🟢▲ +0.17% 0.52%
unidirectional_lockless/4096 uring bytes_per_sec 1.14 GB/s 1.15 GB/s 🔴▼ -0.18% 2.41%
unidirectional_lockless/65536 epoll bytes_per_sec 3.29 GB/s 3.30 GB/s 🟢▲ +0.55% 5.33%
unidirectional_lockless/65536 uring bytes_per_sec 3.57 GB/s 3.57 GB/s 🔴▼ -0.25% 2.63%

socket_latency

Benchmark Backend Metric Base Head Δ Noise
concurrent/1 epoll latency_mean_ns 14.09 µs 14.04 µs 🔴▼ -0.08% 0.98%
concurrent/1 uring latency_mean_ns 13.34 µs 13.27 µs 🟢▲ +0.02% 1.20%
concurrent/16 epoll latency_mean_ns 225.37 µs 224.29 µs 🟢▲ +0.21% 0.98%
concurrent/16 uring latency_mean_ns 214.47 µs 214.93 µs 🔴▼ -0.20% 1.27%
concurrent/4 epoll latency_mean_ns 56.15 µs 55.78 µs 🟢▲ +0.37% 1.11%
concurrent/4 uring latency_mean_ns 53.18 µs 53.37 µs 🔴▼ -0.39% 1.23%
concurrent_lockless/1 epoll latency_mean_ns 14.06 µs 13.99 µs 🟢▲ +0.31% 1.00%
concurrent_lockless/1 uring latency_mean_ns 13.26 µs 13.29 µs 🟢▲ +0.09% 1.24%
concurrent_lockless/16 epoll latency_mean_ns 224.60 µs 223.26 µs 🟢▲ +0.16% 1.00%
concurrent_lockless/16 uring latency_mean_ns 213.98 µs 215.52 µs 🔴▼ -0.29% 1.17%
concurrent_lockless/4 epoll latency_mean_ns 55.90 µs 55.66 µs 🟢▲ +0.08% 1.04%
concurrent_lockless/4 uring latency_mean_ns 53.13 µs 53.50 µs 🔴▼ -0.25% 1.17%
pingpong/1 epoll latency_mean_ns 13.97 µs 14.06 µs 🔴▼ -0.32% 0.89%
pingpong/1 uring latency_mean_ns 13.19 µs 13.23 µs 🔴▼ -0.44% 1.21%
pingpong/1024 epoll latency_mean_ns 14.28 µs 14.30 µs 🔴▼ -0.16% 1.13%
pingpong/1024 uring latency_mean_ns 13.53 µs 13.53 µs 🟢▲ +0.09% 1.22%
pingpong/64 epoll latency_mean_ns 14.03 µs 14.13 µs 🔴▼ -0.29% 1.08%
pingpong/64 uring latency_mean_ns 13.29 µs 13.30 µs 🟢▲ +0.14% 1.24%
pingpong_lockless/1 epoll latency_mean_ns 13.99 µs 13.93 µs 🟢▲ +0.26% 1.10%
pingpong_lockless/1 uring latency_mean_ns 13.19 µs 13.15 µs 🔴▼ -0.07% 1.40%
pingpong_lockless/1024 epoll latency_mean_ns 14.32 µs 14.25 µs 🟢▲ +0.03% 1.09%
pingpong_lockless/1024 uring latency_mean_ns 13.50 µs 13.47 µs 🔴▼ -0.23% 1.34%
pingpong_lockless/64 epoll latency_mean_ns 14.06 µs 14.01 µs 🟢▲ +0.20% 1.07%
pingpong_lockless/64 uring latency_mean_ns 13.26 µs 13.22 µs 🟢▲ +0.07% 1.56%

socket_throughput

Benchmark Backend Metric Base Head Δ Noise
bidirectional/1024 epoll bytes_per_sec 136.1 MB/s 135.9 MB/s 🔴▼ -0.06% 0.26%
bidirectional/1024 uring bytes_per_sec 152.2 MB/s 151.9 MB/s 🔴▼ -0.03% 0.93%
bidirectional/1048576 epoll bytes_per_sec 3.35 GB/s 3.31 GB/s 🔴▼ -3.28% 2.86%
bidirectional/1048576 uring bytes_per_sec 3.34 GB/s 3.36 GB/s 🟢▲ +1.11% 1.39%
bidirectional/16384 epoll bytes_per_sec 1.65 GB/s 1.64 GB/s 🔴▼ -0.51% 1.65%
bidirectional/16384 uring bytes_per_sec 1.63 GB/s 1.63 GB/s 🟢▲ +0.06% 0.93%
bidirectional/262144 epoll bytes_per_sec 3.24 GB/s 3.23 GB/s 🟢▲ +0.64% 0.98%
bidirectional/262144 uring bytes_per_sec 3.24 GB/s 3.27 GB/s 🟢▲ +1.23% 1.28%
bidirectional/4096 epoll bytes_per_sec 514.2 MB/s 512.7 MB/s 🔴▼ -0.34% 0.47%
bidirectional/4096 uring bytes_per_sec 528.6 MB/s 526.5 MB/s 🔴▼ -0.42% 1.01%
bidirectional/65536 epoll bytes_per_sec 2.65 GB/s 2.60 GB/s 🔴▼ -0.27% 2.85%
bidirectional/65536 uring bytes_per_sec 2.90 GB/s 2.91 GB/s 🔴▼ -0.17% 1.05%
bidirectional_lockless/1024 epoll bytes_per_sec 136.8 MB/s 136.1 MB/s 🔴▼ -0.35% 1.10%
bidirectional_lockless/1024 uring bytes_per_sec 153.0 MB/s 152.8 MB/s 🔴▼ -0.32% 1.22%
bidirectional_lockless/1048576 epoll bytes_per_sec 3.38 GB/s 3.36 GB/s 🔴▼ -1.54% 2.33%
bidirectional_lockless/1048576 uring bytes_per_sec 3.31 GB/s 3.30 GB/s 🔴▼ -0.41% 0.87%
bidirectional_lockless/16384 epoll bytes_per_sec 1.64 GB/s 1.66 GB/s 🟢▲ +0.79% 1.32%
bidirectional_lockless/16384 uring bytes_per_sec 1.59 GB/s 1.58 GB/s 🟢▲ +0.35% 1.27%
bidirectional_lockless/262144 epoll bytes_per_sec 3.27 GB/s 3.24 GB/s 🔴▼ -0.98% 0.94%
bidirectional_lockless/262144 uring bytes_per_sec 3.22 GB/s 3.21 GB/s 🔴▼ -0.18% 0.91%
bidirectional_lockless/4096 epoll bytes_per_sec 516.2 MB/s 514.8 MB/s 🔴▼ -0.04% 0.96%
bidirectional_lockless/4096 uring bytes_per_sec 529.9 MB/s 528.8 MB/s 🔴▼ -0.32% 0.94%
bidirectional_lockless/65536 epoll bytes_per_sec 2.60 GB/s 2.62 GB/s 🟢▲ +0.05% 3.12%
bidirectional_lockless/65536 uring bytes_per_sec 2.77 GB/s 2.75 GB/s 🔴▼ -1.05% 1.49%
multithread/2 epoll bytes_per_sec 3.68 GB/s 3.67 GB/s 🔴▼ -0.30% 1.41%
multithread/2 uring bytes_per_sec 4.23 GB/s 4.24 GB/s 🟢▲ +0.09% 0.68%
multithread/4 epoll bytes_per_sec 6.00 GB/s 5.92 GB/s 🔴▼ -1.48% 1.65%
multithread/4 uring bytes_per_sec 6.74 GB/s 6.75 GB/s 🔴▼ -0.16% 0.84%
multithread/8 epoll bytes_per_sec 6.36 GB/s 6.40 GB/s 🟢▲ +0.28% 1.05%
multithread/8 uring bytes_per_sec 6.88 GB/s 6.89 GB/s 🟢▲ +0.10% 0.58%
unidirectional/1024 epoll bytes_per_sec 127.7 MB/s 127.7 MB/s 🟢▲ +0.01% 0.26%
unidirectional/1024 uring bytes_per_sec 150.8 MB/s 150.6 MB/s 🔴▼ -0.16% 1.03%
unidirectional/1048576 epoll bytes_per_sec 3.39 GB/s 3.37 GB/s 🔴▼ -0.20% 0.57%
unidirectional/1048576 uring bytes_per_sec 3.41 GB/s 3.41 GB/s 🔴▼ -0.19% 0.83%
unidirectional/16384 epoll bytes_per_sec 1.57 GB/s 1.57 GB/s 🟢▲ +0.64% 2.66%
unidirectional/16384 uring bytes_per_sec 1.68 GB/s 1.71 GB/s 🟢▲ +3.48% 3.17%
unidirectional/262144 epoll bytes_per_sec 3.35 GB/s 3.33 GB/s 🔴▼ -0.75% 1.22%
unidirectional/262144 uring bytes_per_sec 3.27 GB/s 3.27 GB/s 🔴▼ -0.32% 0.77%
unidirectional/4096 epoll bytes_per_sec 481.2 MB/s 478.9 MB/s 🔴▼ -0.24% 0.41%
unidirectional/4096 uring bytes_per_sec 530.2 MB/s 525.8 MB/s 🔴▼ -0.47% 1.19%
unidirectional/65536 epoll bytes_per_sec 2.78 GB/s 2.69 GB/s 🔴▼ -5.03% 4.81%
unidirectional/65536 uring bytes_per_sec 2.81 GB/s 2.84 GB/s 🟢▲ +0.54% 2.22%
unidirectional_lockless/1024 epoll bytes_per_sec 128.1 MB/s 128.0 MB/s 🔴▼ -0.05% 0.12%
unidirectional_lockless/1024 uring bytes_per_sec 151.0 MB/s 150.0 MB/s 🔴▼ -0.14% 1.15%
unidirectional_lockless/1048576 epoll bytes_per_sec 3.33 GB/s 3.30 GB/s 🟢▲ +0.09% 1.90%
unidirectional_lockless/1048576 uring bytes_per_sec 3.38 GB/s 3.36 GB/s 🔴▼ -0.10% 1.39%
unidirectional_lockless/16384 epoll bytes_per_sec 1.56 GB/s 1.55 GB/s 🔴▼ -0.67% 1.77%
unidirectional_lockless/16384 uring bytes_per_sec 1.71 GB/s 1.71 GB/s 🔴▼ -0.24% 2.49%
unidirectional_lockless/262144 epoll bytes_per_sec 3.34 GB/s 3.32 GB/s 🔴▼ -1.12% 1.71%
unidirectional_lockless/262144 uring bytes_per_sec 3.31 GB/s 3.29 GB/s 🔴▼ -0.10% 0.77%
unidirectional_lockless/4096 epoll bytes_per_sec 481.1 MB/s 479.1 MB/s 🔴▼ -0.53% 0.29%
unidirectional_lockless/4096 uring bytes_per_sec 529.2 MB/s 524.1 MB/s 🔴▼ -0.89% 1.35%
unidirectional_lockless/65536 epoll bytes_per_sec 2.83 GB/s 2.79 GB/s 🔴▼ -1.43% 1.52%
unidirectional_lockless/65536 uring bytes_per_sec 2.83 GB/s 2.81 GB/s 🟢▲ +0.02% 0.76%
windows — full results (77 benchmarks, 5 iterations, 1.5s each)

accept_churn

Benchmark Backend Metric Base Head Δ Noise
burst/10 iocp ops_per_sec 1.56K ops/s 1.56K ops/s 🟢▲ +0.09% 0.34%
burst/100 iocp ops_per_sec 156.3 ops/s 156.4 ops/s 🟢▲ +0.42% 0.88%
burst_lockless/10 iocp ops_per_sec 1.56K ops/s 1.56K ops/s 🟢▲ +0.11% 0.42%
burst_lockless/100 iocp ops_per_sec 159.3 ops/s 159.4 ops/s ⚪ 0.00% 0.86%
concurrent/1 iocp ops_per_sec 12.58K ops/s 12.57K ops/s 🔴▼ -0.02% 0.37%
concurrent/16 iocp ops_per_sec 13.45K ops/s 13.49K ops/s 🟢▲ +0.32% 0.14%
concurrent/4 iocp ops_per_sec 13.14K ops/s 13.16K ops/s 🟢▲ +0.02% 0.27%
sequential iocp ops_per_sec 12.50K ops/s 12.52K ops/s 🟢▲ +0.06% 0.42%
sequential_lockless iocp ops_per_sec 12.56K ops/s 12.55K ops/s 🔴▼ -0.06% 0.34%

fan_out

Benchmark Backend Metric Base Head Δ Noise
concurrent_parents/1 iocp ops_per_sec 7.35K ops/s 7.37K ops/s 🟢▲ +0.25% 0.17%
concurrent_parents/16 iocp ops_per_sec 6.83K ops/s 6.83K ops/s 🔴▼ -0.23% 1.79%
concurrent_parents/4 iocp ops_per_sec 7.25K ops/s 7.28K ops/s 🟢▲ +0.25% 0.92%
concurrent_parents_lockless/1 iocp ops_per_sec 7.36K ops/s 7.38K ops/s 🟢▲ +0.26% 0.29%
concurrent_parents_lockless/16 iocp ops_per_sec 6.85K ops/s 6.86K ops/s 🟢▲ +0.07% 1.58%
concurrent_parents_lockless/4 iocp ops_per_sec 7.26K ops/s 7.30K ops/s 🟢▲ +0.25% 0.82%
fork_join/1 iocp ops_per_sec 112.8K ops/s 112.6K ops/s 🔴▼ -0.09% 0.27%
fork_join/16 iocp ops_per_sec 7.36K ops/s 7.36K ops/s 🔴▼ -0.01% 0.24%
fork_join/4 iocp ops_per_sec 29.19K ops/s 29.19K ops/s 🟢▲ +0.09% 0.33%
fork_join/64 iocp ops_per_sec 1.82K ops/s 1.82K ops/s 🟢▲ +0.21% 1.22%
fork_join_lockless/1 iocp ops_per_sec 112.7K ops/s 112.8K ops/s 🔴▼ -0.03% 0.25%
fork_join_lockless/16 iocp ops_per_sec 7.36K ops/s 7.35K ops/s 🔴▼ -0.33% 0.29%
fork_join_lockless/4 iocp ops_per_sec 29.21K ops/s 29.15K ops/s 🔴▼ -0.12% 0.45%
fork_join_lockless/64 iocp ops_per_sec 1.82K ops/s 1.83K ops/s 🟢▲ +0.18% 0.96%
nested/16 iocp ops_per_sec 1.79K ops/s 1.80K ops/s 🟢▲ +0.29% 0.93%
nested/4 iocp ops_per_sec 7.22K ops/s 7.24K ops/s ⚪ 0.00% 0.40%
nested_lockless/16 iocp ops_per_sec 1.79K ops/s 1.80K ops/s 🟢▲ +0.21% 1.05%
nested_lockless/4 iocp ops_per_sec 7.21K ops/s 7.24K ops/s 🟢▲ +0.47% 0.26%

http_server

Benchmark Backend Metric Base Head Δ Noise
concurrent/1 iocp ops_per_sec 112.0K ops/s 111.2K ops/s 🔴▼ -0.90% 0.47%
concurrent/16 iocp ops_per_sec 108.5K ops/s 108.8K ops/s 🟢▲ +0.36% 0.31%
concurrent/32 iocp ops_per_sec 108.0K ops/s 108.0K ops/s 🟢▲ +0.11% 0.20%
concurrent/4 iocp ops_per_sec 109.2K ops/s 109.2K ops/s 🔴▼ -0.02% 0.27%
multithread/1 iocp ops_per_sec 107.9K ops/s 108.1K ops/s 🟢▲ +0.10% 0.24%
multithread/16 iocp ops_per_sec 266.0K ops/s 265.8K ops/s 🔴▼ -0.14% 0.49%
multithread/2 iocp ops_per_sec 181.4K ops/s 181.3K ops/s 🔴▼ -0.02% 0.60%
multithread/4 iocp ops_per_sec 224.6K ops/s 225.4K ops/s 🟢▲ +0.40% 0.49%
multithread/8 iocp ops_per_sec 266.1K ops/s 264.7K ops/s 🔴▼ -0.47% 0.79%
single_conn iocp ops_per_sec 111.6K ops/s 111.8K ops/s 🟢▲ +0.06% 0.47%
single_conn_lockless iocp ops_per_sec 111.9K ops/s 111.6K ops/s 🔴▼ -0.17% 0.34%

socket_latency

Benchmark Backend Metric Base Head Δ Noise
concurrent/1 iocp latency_mean_ns 7.55 µs 7.59 µs 🔴▼ -0.64% 0.37%
concurrent/16 iocp latency_mean_ns 130.26 µs 126.60 µs 🟢▲ +3.00% 4.20%
concurrent/4 iocp latency_mean_ns 30.45 µs 30.43 µs 🔴▼ -0.01% 0.61%
concurrent_lockless/1 iocp latency_mean_ns 7.57 µs 7.58 µs 🔴▼ -0.26% 0.47%
concurrent_lockless/16 iocp latency_mean_ns 122.21 µs 123.25 µs 🔴▼ -0.56% 1.49%
concurrent_lockless/4 iocp latency_mean_ns 30.46 µs 30.39 µs 🟢▲ +0.30% 0.13%
pingpong/1 iocp latency_mean_ns 7.55 µs 7.58 µs 🔴▼ -0.36% 0.34%
pingpong/1024 iocp latency_mean_ns 7.68 µs 7.72 µs 🔴▼ -0.15% 0.50%
pingpong/64 iocp latency_mean_ns 7.57 µs 7.58 µs 🔴▼ -0.40% 0.26%
pingpong_lockless/1 iocp latency_mean_ns 7.56 µs 7.56 µs 🟢▲ +0.01% 0.24%
pingpong_lockless/1024 iocp latency_mean_ns 7.65 µs 7.66 µs 🔴▼ -0.09% 0.69%
pingpong_lockless/64 iocp latency_mean_ns 7.59 µs 7.58 µs 🟢▲ +0.17% 0.26%

socket_throughput

Benchmark Backend Metric Base Head Δ Noise
bidirectional/1024 iocp bytes_per_sec 280.2 MB/s 281.0 MB/s 🟢▲ +0.31% 0.47%
bidirectional/1048576 iocp bytes_per_sec 4.93 GB/s 4.74 GB/s 🔴▼ -3.34% 7.73%
bidirectional/16384 iocp bytes_per_sec 3.67 GB/s 3.76 GB/s 🟢▲ +1.36% 2.51%
bidirectional/262144 iocp bytes_per_sec 9.39 GB/s 9.63 GB/s 🟢▲ +0.35% 3.43%
bidirectional/4096 iocp bytes_per_sec 1.07 GB/s 1.08 GB/s 🟢▲ +0.30% 0.79%
bidirectional/65536 iocp bytes_per_sec 8.75 GB/s 9.17 GB/s 🟢▲ +2.70% 4.34%
bidirectional_lockless/1024 iocp bytes_per_sec 280.6 MB/s 280.3 MB/s 🔴▼ -0.19% 0.57%
bidirectional_lockless/1048576 iocp bytes_per_sec 5.18 GB/s 5.20 GB/s 🟢▲ +0.18% 12.19%
bidirectional_lockless/16384 iocp bytes_per_sec 3.71 GB/s 3.72 GB/s 🟢▲ +0.29% 0.39%
bidirectional_lockless/262144 iocp bytes_per_sec 9.61 GB/s 9.72 GB/s 🟢▲ +1.48% 1.14%
bidirectional_lockless/4096 iocp bytes_per_sec 1.08 GB/s 1.08 GB/s 🔴▼ -0.04% 0.65%
bidirectional_lockless/65536 iocp bytes_per_sec 8.98 GB/s 9.02 GB/s 🟢▲ +0.53% 1.22%
multithread/2 iocp bytes_per_sec 12.57 GB/s 12.64 GB/s 🟢▲ +0.70% 0.68%
multithread/4 iocp bytes_per_sec 16.72 GB/s 16.84 GB/s 🟢▲ +0.19% 1.69%
multithread/8 iocp bytes_per_sec 18.41 GB/s 18.50 GB/s 🟢▲ +0.67% 0.47%
unidirectional/1024 iocp bytes_per_sec 283.8 MB/s 284.4 MB/s 🟢▲ +0.36% 0.60%
unidirectional/1048576 iocp bytes_per_sec 4.03 GB/s 4.04 GB/s 🟢▲ +1.11% 3.76%
unidirectional/16384 iocp bytes_per_sec 3.79 GB/s 3.79 GB/s 🟢▲ +0.24% 0.62%
unidirectional/262144 iocp bytes_per_sec 8.89 GB/s 9.01 GB/s 🟢▲ +0.93% 3.91%
unidirectional/4096 iocp bytes_per_sec 1.09 GB/s 1.09 GB/s 🔴▼ -0.36% 0.26%
unidirectional/65536 iocp bytes_per_sec 9.39 GB/s 9.29 GB/s 🔴▼ -0.28% 1.96%
unidirectional_lockless/1024 iocp bytes_per_sec 283.9 MB/s 283.6 MB/s 🔴▼ -0.16% 0.44%
unidirectional_lockless/1048576 iocp bytes_per_sec 4.57 GB/s 4.54 GB/s 🔴▼ -0.61% 3.12%
unidirectional_lockless/16384 iocp bytes_per_sec 3.79 GB/s 3.78 GB/s 🟢▲ +0.01% 0.98%
unidirectional_lockless/262144 iocp bytes_per_sec 9.83 GB/s 9.67 GB/s 🔴▼ -2.59% 1.83%
unidirectional_lockless/4096 iocp bytes_per_sec 1.09 GB/s 1.09 GB/s 🔴▼ -0.02% 0.55%
unidirectional_lockless/65536 iocp bytes_per_sec 9.35 GB/s 9.26 GB/s 🔴▼ -0.05% 2.59%
macos — full results (113 benchmarks, 5 iterations, 1.5s each)

accept_churn

Benchmark Backend Metric Base Head Δ Noise
burst/10 kqueue ops_per_sec 4.70K ops/s 4.72K ops/s 🟢▲ +0.32% 0.79%
burst/100 kqueue ops_per_sec 467.3 ops/s 466.9 ops/s 🔴▼ -0.23% 0.76%
burst_lockless/10 kqueue ops_per_sec 4.75K ops/s 4.78K ops/s 🟢▲ +0.06% 1.04%
burst_lockless/100 kqueue ops_per_sec 472.5 ops/s 471.4 ops/s 🔴▼ -0.21% 0.72%
concurrent/1 kqueue ops_per_sec 20.67K ops/s 20.59K ops/s 🔴▼ -0.40% 0.69%
concurrent/16 kqueue ops_per_sec 37.60K ops/s 37.63K ops/s 🟢▲ +0.15% 0.92%
concurrent/4 kqueue ops_per_sec 29.32K ops/s 29.18K ops/s 🔴▼ -0.14% 1.32%
sequential kqueue ops_per_sec 20.99K ops/s 21.03K ops/s 🟢▲ +0.20% 0.81%
sequential_lockless kqueue ops_per_sec 20.64K ops/s 20.85K ops/s 🟢▲ +1.16% 0.79%

fan_out

Benchmark Backend Metric Base Head Δ Noise
concurrent_parents/1 kqueue ops_per_sec 8.12K ops/s 8.14K ops/s 🟢▲ +0.23% 1.25%
concurrent_parents/16 kqueue ops_per_sec 7.73K ops/s 6.54K ops/s 🔴▼ -30.06% 18.77%
concurrent_parents/4 kqueue ops_per_sec 8.30K ops/s 8.53K ops/s 🟢▲ +3.88% 1.80%
concurrent_parents_lockless/1 kqueue ops_per_sec 8.22K ops/s 8.25K ops/s 🟢▲ +0.72% 0.86%
concurrent_parents_lockless/16 kqueue ops_per_sec 7.20K ops/s 6.64K ops/s 🔴▼ -0.65% 20.82%
concurrent_parents_lockless/4 kqueue ops_per_sec 8.44K ops/s 8.53K ops/s 🟢▲ +0.50% 2.05%
fork_join/1 kqueue ops_per_sec 48.80K ops/s 48.94K ops/s 🟢▲ +0.46% 1.08%
fork_join/16 kqueue ops_per_sec 8.15K ops/s 8.16K ops/s 🟢▲ +0.02% 1.08%
fork_join/4 kqueue ops_per_sec 23.59K ops/s 23.65K ops/s 🔴▼ -0.03% 0.86%
fork_join/64 kqueue ops_per_sec 2.11K ops/s 2.16K ops/s 🟢▲ +3.90% 2.12%
fork_join_lockless/1 kqueue ops_per_sec 50.28K ops/s 50.27K ops/s 🟢▲ +0.07% 0.53%
fork_join_lockless/16 kqueue ops_per_sec 8.25K ops/s 8.26K ops/s 🟢▲ +0.26% 0.88%
fork_join_lockless/4 kqueue ops_per_sec 23.66K ops/s 23.65K ops/s 🔴▼ -0.05% 0.79%
fork_join_lockless/64 kqueue ops_per_sec 2.13K ops/s 2.18K ops/s 🟢▲ +3.86% 2.18%
nested/16 kqueue ops_per_sec 2.09K ops/s 2.15K ops/s 🟢▲ +4.49% 2.22%
nested/4 kqueue ops_per_sec 8.04K ops/s 8.14K ops/s 🟢▲ +1.08% 1.09%
nested_lockless/16 kqueue ops_per_sec 2.11K ops/s 2.17K ops/s 🟢▲ +4.32% 2.27%
nested_lockless/4 kqueue ops_per_sec 8.12K ops/s 8.26K ops/s 🟢▲ +2.05% 1.20%

http_server

Benchmark Backend Metric Base Head Δ Noise
concurrent/1 kqueue ops_per_sec 49.60K ops/s 49.52K ops/s 🔴▼ -0.07% 0.44%
concurrent/16 kqueue ops_per_sec 130.5K ops/s 130.6K ops/s 🟢▲ +0.07% 0.29%
concurrent/32 kqueue ops_per_sec 130.3K ops/s 129.9K ops/s 🟢▲ +0.09% 1.39%
concurrent/4 kqueue ops_per_sec 89.40K ops/s 90.47K ops/s 🟢▲ +1.23% 0.91%
multithread/1 kqueue ops_per_sec 130.3K ops/s 129.8K ops/s 🟢▲ +0.24% 1.06%
multithread/16 kqueue ops_per_sec 132.9K ops/s 132.9K ops/s 🟢▲ +0.50% 1.17%
multithread/2 kqueue ops_per_sec 183.7K ops/s 184.9K ops/s 🟢▲ +0.35% 0.56%
multithread/4 kqueue ops_per_sec 162.6K ops/s 162.1K ops/s 🔴▼ -0.22% 0.49%
multithread/8 kqueue ops_per_sec 139.2K ops/s 138.1K ops/s 🔴▼ -0.06% 1.25%
single_conn kqueue ops_per_sec 49.64K ops/s 49.64K ops/s 🟢▲ +0.01% 0.25%
single_conn_lockless kqueue ops_per_sec 49.97K ops/s 49.83K ops/s 🔴▼ -0.23% 0.23%

local_socket_latency

Benchmark Backend Metric Base Head Δ Noise
concurrent/1 kqueue latency_mean_ns 1.71 µs 1.71 µs 🔴▼ -0.09% 0.76%
concurrent/16 kqueue latency_mean_ns 26.77 µs 26.87 µs 🔴▼ -0.36% 0.33%
concurrent/4 kqueue latency_mean_ns 6.66 µs 6.67 µs 🔴▼ -0.24% 0.51%
concurrent_lockless/1 kqueue latency_mean_ns 1.69 µs 1.70 µs 🔴▼ -0.04% 0.46%
concurrent_lockless/16 kqueue latency_mean_ns 26.59 µs 26.65 µs 🔴▼ -0.66% 0.54%
concurrent_lockless/4 kqueue latency_mean_ns 6.58 µs 6.62 µs 🔴▼ -0.50% 0.48%
pingpong/1 kqueue latency_mean_ns 1.71 µs 1.71 µs 🟢▲ +0.12% 0.66%
pingpong/1024 kqueue latency_mean_ns 1.81 µs 1.80 µs 🟢▲ +0.39% 0.17%
pingpong/64 kqueue latency_mean_ns 1.71 µs 1.71 µs 🔴▼ -0.12% 0.42%
pingpong_lockless/1 kqueue latency_mean_ns 1.69 µs 1.70 µs 🔴▼ -0.46% 0.32%
pingpong_lockless/1024 kqueue latency_mean_ns 1.79 µs 1.79 µs 🔴▼ -0.19% 0.49%
pingpong_lockless/64 kqueue latency_mean_ns 1.69 µs 1.69 µs 🟢▲ +0.05% 0.41%

local_socket_throughput

Benchmark Backend Metric Base Head Δ Noise
bidirectional/1024 kqueue bytes_per_sec 1.32 GB/s 1.32 GB/s 🔴▼ -0.05% 0.42%
bidirectional/1048576 kqueue bytes_per_sec 3.90 GB/s 3.92 GB/s 🟢▲ +0.12% 1.01%
bidirectional/16384 kqueue bytes_per_sec 3.91 GB/s 3.91 GB/s 🔴▼ -0.24% 0.92%
bidirectional/262144 kqueue bytes_per_sec 3.90 GB/s 3.91 GB/s 🟢▲ +0.73% 0.92%
bidirectional/4096 kqueue bytes_per_sec 2.94 GB/s 2.95 GB/s 🟢▲ +0.29% 0.30%
bidirectional/65536 kqueue bytes_per_sec 3.89 GB/s 3.91 GB/s 🟢▲ +0.70% 0.58%
bidirectional_lockless/1024 kqueue bytes_per_sec 1.33 GB/s 1.33 GB/s 🟢▲ +0.13% 0.33%
bidirectional_lockless/1048576 kqueue bytes_per_sec 3.98 GB/s 3.99 GB/s 🟢▲ +0.14% 0.82%
bidirectional_lockless/16384 kqueue bytes_per_sec 3.99 GB/s 3.98 GB/s 🔴▼ -0.43% 0.94%
bidirectional_lockless/262144 kqueue bytes_per_sec 3.99 GB/s 3.97 GB/s 🟢▲ +0.11% 0.67%
bidirectional_lockless/4096 kqueue bytes_per_sec 2.98 GB/s 2.98 GB/s 🔴▼ -0.29% 0.53%
bidirectional_lockless/65536 kqueue bytes_per_sec 3.98 GB/s 3.98 GB/s 🔴▼ -0.85% 0.94%
unidirectional/1024 kqueue bytes_per_sec 1.31 GB/s 1.31 GB/s 🔴▼ -0.18% 0.87%
unidirectional/1048576 kqueue bytes_per_sec 3.56 GB/s 3.54 GB/s 🔴▼ -0.73% 0.33%
unidirectional/16384 kqueue bytes_per_sec 3.57 GB/s 3.55 GB/s 🔴▼ -0.51% 0.47%
unidirectional/262144 kqueue bytes_per_sec 3.56 GB/s 3.54 GB/s 🔴▼ -0.61% 0.36%
unidirectional/4096 kqueue bytes_per_sec 2.73 GB/s 2.72 GB/s 🔴▼ -0.58% 0.68%
unidirectional/65536 kqueue bytes_per_sec 3.56 GB/s 3.54 GB/s 🔴▼ -0.45% 0.43%
unidirectional_lockless/1024 kqueue bytes_per_sec 1.32 GB/s 1.32 GB/s 🔴▼ -0.07% 0.34%
unidirectional_lockless/1048576 kqueue bytes_per_sec 3.62 GB/s 3.61 GB/s 🔴▼ -0.45% 0.36%
unidirectional_lockless/16384 kqueue bytes_per_sec 3.63 GB/s 3.61 GB/s 🔴▼ -0.37% 0.39%
unidirectional_lockless/262144 kqueue bytes_per_sec 3.63 GB/s 3.62 GB/s 🔴▼ -0.06% 0.41%
unidirectional_lockless/4096 kqueue bytes_per_sec 2.77 GB/s 2.77 GB/s 🟢▲ +0.01% 0.25%
unidirectional_lockless/65536 kqueue bytes_per_sec 3.63 GB/s 3.61 GB/s 🔴▼ -0.48% 0.46%

socket_latency

Benchmark Backend Metric Base Head Δ Noise
concurrent/1 kqueue latency_mean_ns 18.77 µs 18.71 µs 🟢▲ +0.34% 0.34%
concurrent/16 kqueue latency_mean_ns 121.46 µs 120.58 µs 🟢▲ +0.27% 0.89%
concurrent/4 kqueue latency_mean_ns 43.65 µs 43.18 µs 🟢▲ +1.26% 1.05%
concurrent_lockless/1 kqueue latency_mean_ns 18.67 µs 18.66 µs 🔴▼ -0.08% 0.29%
concurrent_lockless/16 kqueue latency_mean_ns 121.73 µs 120.49 µs 🟢▲ +0.37% 1.15%
concurrent_lockless/4 kqueue latency_mean_ns 42.78 µs 42.79 µs 🟢▲ +0.05% 1.03%
pingpong/1 kqueue latency_mean_ns 15.39 µs 15.44 µs 🟢▲ +0.15% 1.27%
pingpong/1024 kqueue latency_mean_ns 19.07 µs 19.02 µs 🔴▼ -0.02% 0.41%
pingpong/64 kqueue latency_mean_ns 18.72 µs 18.74 µs 🟢▲ +0.15% 0.44%
pingpong_lockless/1 kqueue latency_mean_ns 15.37 µs 15.34 µs 🟢▲ +0.14% 0.45%
pingpong_lockless/1024 kqueue latency_mean_ns 19.02 µs 19.00 µs 🟢▲ +0.20% 0.30%
pingpong_lockless/64 kqueue latency_mean_ns 18.65 µs 18.65 µs 🟢▲ +0.10% 0.19%

socket_throughput

Benchmark Backend Metric Base Head Δ Noise
bidirectional/1024 kqueue bytes_per_sec 478.4 MB/s 477.2 MB/s 🔴▼ -0.36% 1.67%
bidirectional/1048576 kqueue bytes_per_sec 7.82 GB/s 7.73 GB/s 🟢▲ +0.77% 4.55%
bidirectional/16384 kqueue bytes_per_sec 4.58 GB/s 4.55 GB/s 🔴▼ -0.29% 1.25%
bidirectional/262144 kqueue bytes_per_sec 8.73 GB/s 8.79 GB/s 🟢▲ +0.90% 2.32%
bidirectional/4096 kqueue bytes_per_sec 1.83 GB/s 1.83 GB/s 🟢▲ +0.18% 1.41%
bidirectional/65536 kqueue bytes_per_sec 7.65 GB/s 7.64 GB/s 🔴▼ -0.62% 1.31%
bidirectional_lockless/1024 kqueue bytes_per_sec 480.5 MB/s 478.5 MB/s 🔴▼ -0.50% 1.34%
bidirectional_lockless/1048576 kqueue bytes_per_sec 7.92 GB/s 7.78 GB/s 🟢▲ +0.35% 3.98%
bidirectional_lockless/16384 kqueue bytes_per_sec 4.62 GB/s 4.59 GB/s 🔴▼ -0.27% 1.63%
bidirectional_lockless/262144 kqueue bytes_per_sec 8.93 GB/s 8.94 GB/s 🟢▲ +0.54% 3.56%
bidirectional_lockless/4096 kqueue bytes_per_sec 1.84 GB/s 1.84 GB/s 🟢▲ +0.03% 0.95%
bidirectional_lockless/65536 kqueue bytes_per_sec 7.61 GB/s 7.67 GB/s 🟢▲ +0.86% 2.14%
multithread/2 kqueue bytes_per_sec 7.55 GB/s 7.55 GB/s 🟢▲ +1.07% 4.45%
multithread/4 kqueue bytes_per_sec 3.58 GB/s 3.66 GB/s 🟢▲ +2.04% 4.38%
multithread/8 kqueue bytes_per_sec 3.21 GB/s 3.17 GB/s 🟢▲ +5.38% 11.74%
unidirectional/1024 kqueue bytes_per_sec 463.5 MB/s 460.6 MB/s 🟢▲ +0.63% 3.80%
unidirectional/1048576 kqueue bytes_per_sec 8.99 GB/s 8.81 GB/s 🔴▼ -0.32% 5.61%
unidirectional/16384 kqueue bytes_per_sec 4.50 GB/s 4.41 GB/s 🔴▼ -1.46% 1.23%
unidirectional/262144 kqueue bytes_per_sec 8.79 GB/s 8.87 GB/s 🟢▲ +1.88% 1.84%
unidirectional/4096 kqueue bytes_per_sec 1.83 GB/s 1.82 GB/s 🔴▼ -1.12% 1.40%
unidirectional/65536 kqueue bytes_per_sec 7.49 GB/s 7.33 GB/s 🔴▼ -2.68% 2.28%
unidirectional_lockless/1024 kqueue bytes_per_sec 490.2 MB/s 481.8 MB/s 🔴▼ -0.50% 2.83%
unidirectional_lockless/1048576 kqueue bytes_per_sec 9.01 GB/s 8.85 GB/s 🟢▲ +0.55% 4.77%
unidirectional_lockless/16384 kqueue bytes_per_sec 4.48 GB/s 4.50 GB/s 🔴▼ -0.47% 2.10%
unidirectional_lockless/262144 kqueue bytes_per_sec 8.77 GB/s 8.81 GB/s 🟢▲ +0.19% 1.03%
unidirectional_lockless/4096 kqueue bytes_per_sec 1.85 GB/s 1.82 GB/s 🔴▼ -3.12% 1.76%
unidirectional_lockless/65536 kqueue bytes_per_sec 7.49 GB/s 7.45 GB/s 🔴▼ -1.29% 2.36%

Run & raw JSON artifacts · flag rule: |median Δ| > max(2%, 3×CV of the noisier side) · advisory only

@sgerbino
sgerbino force-pushed the pr/reactor-throw-keeps-sentinel branch 4 times, most recently from 979f37a to d4b8b0e Compare November 19, 2026 18:28
When the reactor's wait call failed, run() rethrew without putting the
reactor sentinel back in the queue. The context then never polled for
I/O again, and a peer thread parked behind that pass slept forever.

The failed pass now requeues the sentinel and wakes every parked
thread before the exception leaves run().
A failed timerfd update cleared the stale flag first, so no later
pass reprogrammed the timerfd and the next wait could block with a
timer due. A failed update after the wait also dropped the events the
wait had collected; each was already marked enqueued, so its socket
never queued again. The update now leaves the flag set when it fails,
and the collected events move to the thread's private queue before
anything can throw.
@sgerbino
sgerbino force-pushed the pr/reactor-throw-keeps-sentinel branch from d4b8b0e to d4bb81c Compare November 19, 2026 20:46
@sgerbino
sgerbino merged commit 893a696 into cppalliance:develop Nov 19, 2026
49 checks passed
@sgerbino
sgerbino deleted the pr/reactor-throw-keeps-sentinel branch November 19, 2026 22:31
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Beast2 Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants