Add the protocol-comparison module

This commit is contained in:
2026-09-04 00:52:18 +05:30
parent 5224afdad2
commit 00910f2291
30 changed files with 1627 additions and 0 deletions
@@ -0,0 +1,10 @@
=== unbounded stream; client takes 100, then goes quiet ===
protocol quiet 0.5s quiet 1s quiet 2s
RSocket 100 100 100
gRPC 142,000 680,542 1,346,233
WebSocket 23,693 125,099 311,617
RSocket is flat: the server produced exactly what request(n) asked for.
gRPC grows 9.5x between 0.5 s and 2 s; WebSocket grows 13.2x.
Growth that tracks the wait, rather than settling at a buffer size,
means nothing bounded the producer. (Growth is faster than linear
because the loop is still being JIT-compiled during the first run.)