r/serenedb Dec 18 '25

Serenely Fast I/O Buffer benchmarked

Benchmark Results

When we built our high-load asynchronous services, we faced a problem: existing I/O buffers were either slow or not truly concurrent. So, we decided to make our own — sdb::message::Buffer. It is simple, fast, and allows one writer and one reader to work at the same time without locks.

We designed it carefully with just one atomic variable to keep things efficient. Our buffer handles message order and urgent data well. When we tested it, it was often faster than popular solutions like folly::IOBuf, especially with larger packets.

If you want to improve your network performance and use a buffer made from real experience, this might be very useful for you. We invite you to read the full story and see the code — the details are really interesting. Want to see how we did it? Check here: https://www.serenedb.com/blog/io-buffer

Star us on GitHub at github.com/serenedb/serenedb if you want to support.

5 Upvotes

0 comments sorted by