• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nbari / www / 42172076713
95%
master: 37%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 06 Nov 2026 06:05AM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Nov 2026 06:03AM UTC coverage: 94.287%. Remained the same
42172076713

push

github

nbari
Halve the streaming chunk after measuring its memory cost

A response in flight holds one chunk buffer, so the chunk size is also
the memory a client can pin by reading slowly. Sweeping chunk sizes of
64, 128, 256 and 512 KiB against 100 stalled 4 MiB responses:

  64 KiB  +53 MiB RSS   1582 req/s
  128 KiB +55 MiB       1871 req/s
  256 KiB +100 MiB      1932 req/s
  512 KiB +93 MiB       1886 req/s

256 KiB bought 3% over 128 KiB and nearly doubled what a slow reader
can pin, so take the 3%. Go holds +11 MiB for the same workload.

The inline cutoff stays at 256 KiB: the same experiment shows it costs
no memory over streaming, because a streamed response pins a chunk
buffer anyway, while inlining is worth 27% on a 200 KiB file and 60%
on a 100 KiB one.

The sweep refuted the reason the chunk was raised in the first place.
Go issues four times as many read syscalls on this workload and still
wins it, so syscall count was never the binding constraint; 64 KiB is
slowest of all because its 105 context switches per request dominate.

1799 of 1908 relevant lines covered (94.29%)

464.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 rust - 42172076713.1 06 Nov 2026 06:05AM UTC 14
94.29
GitHub Action Run
Source Files on build 42172076713
  • Tree
  • List 14
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42172076713
  • 84025c23 on github
  • Prev Build on develop (#42123198077)
  • Next Build on develop (#42175682117)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc