Skip to content

Conversation

@mgeier
Copy link
Owner

@mgeier mgeier commented Nov 7, 2025

rtrb doesn't (yet?) support storing the buffer on the stack, but maybe it's interesting to compare other const-generic ring buffers.

For reference, this contains measurements with the good old rtrb::RingBuffer, just using a const capacity, even though the capacity isn't actually const in the implementation.

eager-pop-const-line

As always, there's also a corresponding violin plot:

eager-pop-const-violin

@boranby
Copy link

boranby commented Nov 11, 2025

I ran with cargo criterion but I couldn't get this plot generated. Is there anything I miss?

@mgeier
Copy link
Owner Author

mgeier commented Nov 11, 2025

I normally use cargo bench (possibly with a few options, like --bench two_threads_const or -- eager-pop). I have never tried cargo criterion.

@mgeier
Copy link
Owner Author

mgeier commented Nov 11, 2025

IIRC, I wanted to try it out some time ago, but then it looked unmaintained (bheisler/cargo-criterion#64) and I didn't bother.

@boranby
Copy link

boranby commented Nov 11, 2025

lines

Violin:

Image

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.

2 participants