swactor/benches
Zachery Aaron Shores-Chmielewski 4e633375d5 feat: Stress tests, benchmarking, and non-failing queues and inboxes #3
Adds some basic benchmarking, stress tests. They still need to be properly examined to ensure they are testing the correct properties, but fit for "good enough". Implements the HybridChannel type, which features a channel buffer that can withstand overflows. It does so by providing a dequeue behind a mutex. Without overflow, will push messages into the lock free ArrayQueue implemented by crossbeam_queue; when that buffer fills, will use the locking portion provided by the Mutex<VecDequeue>.

In the future we can even further optimize this, perhaps with some linked list implementations of lock-free channels, but, like the benchmarks, this fits the "good enough" bar for now.


Signed-off-by: Zachery Aaron Shores-Chmielewski <zacheryasc@gmail.com>
2026-01-26 14:14:00 +07:00
..
harness.rs feat: Stress tests, benchmarking, and non-failing queues and inboxes #3 2026-01-26 14:14:00 +07:00
main.rs feat: Stress tests, benchmarking, and non-failing queues and inboxes #3 2026-01-26 14:14:00 +07:00
scaling.rs feat: Stress tests, benchmarking, and non-failing queues and inboxes #3 2026-01-26 14:14:00 +07:00
throughput.rs feat: Stress tests, benchmarking, and non-failing queues and inboxes #3 2026-01-26 14:14:00 +07:00