Skip to content

Set TCP_NODELAY on sockets to reduce latency - #93

Merged
novotimo merged 1 commit into
mainfrom
91-tcp_nodelay
Aug 11, 2026
Merged

Set TCP_NODELAY on sockets to reduce latency#93
novotimo merged 1 commit into
mainfrom
91-tcp_nodelay

Conversation

@novotimo

Copy link
Copy Markdown
Owner

Closes #91

@novotimo

Copy link
Copy Markdown
Owner Author

Times are way down.

┌──────────────┬──────────┬──────────┬─────┬──────────────┬──────────┬──────────┐
│    200 B     │  before  │  after   │     │    1024 B    │  before  │  after   │
├──────────────┼──────────┼──────────┼─────┼──────────────┼──────────┼──────────┤
│ p50          │ 0.46 ms  │ 0.46 ms  │     │ p50          │ 0.51 ms  │ 0.52 ms  │
├──────────────┼──────────┼──────────┼─────┼──────────────┼──────────┼──────────┤
│ p95          │ 0.79 ms  │ 0.76 ms  │     │ p95          │ 0.89 ms  │ 0.91 ms  │
├──────────────┼──────────┼──────────┼─────┼──────────────┼──────────┼──────────┤
│ p99          │ 42.18 ms │ 1.12 ms  │     │ p99          │ 1.12 ms  │ 1.23 ms  │
├──────────────┼──────────┼──────────┼─────┼──────────────┼──────────┼──────────┤
│ p999         │ 59.67 ms │ 28.11 ms │     │ p999         │ 64.57 ms │ 25.81 ms │
├──────────────┼──────────┼──────────┼─────┼──────────────┼──────────┼──────────┤
│ missed slots │ 4580     │ 950      │     │ missed slots │ 1652     │ 988      │
└──────────────┴──────────┴──────────┴─────┴──────────────┴──────────┴──────────┘

@novotimo
novotimo merged commit e65307e into main Aug 11, 2026
5 checks passed
@novotimo
novotimo deleted the 91-tcp_nodelay branch August 11, 2026 03:39
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.

Neither leg sets TCP_NODELAY, so 8.5% of 1400-byte messages stall for 40 ms

1 participant