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

powersemmi / ruststream / 35134439269
96%

Build:
DEFAULT BRANCH: main
Ran 16 Sep 2026 06:30PM UTC
Jobs 1
Files 99
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

16 Sep 2026 06:26PM UTC coverage: 96.481% (+0.02%) from 96.465%
35134439269

push

github

web-flow
perf: bring the batch consume path to the hand-written loop's allocation count (#376)

* perf(#375): borrow the subscription name for the length of a batch

Every batch named its subscription by copying the name into a `String`, once for
the decode pass and once for the settle pass, because the context lends the name
only for as long as the borrow it was asked through. The name outlives every
delivery of the subscription, so the batch paths now borrow it for the
subscription's own lifetime, as they already do for the delivery context.

Two heap blocks per batch on every batch form: 0.158 allocations per message
down to 0.126 over the benchmark's batches of 64. The scenario's gate drops to
the new floor.

* perf(#375): settle the batch the broker delivered instead of a copy of it

The batch decode pass moved every accepted delivery into a second vector as it
went, so a batch that decoded whole was carried twice. It now records the index
of a rejected element instead, and a batch with nothing rejected is handed on
exactly as it arrived; the split remains for the batch that does lose an element,
which settles before the handler runs as it always did.

One heap block per batch: 0.126 allocations per message down to 0.110 over the
benchmark's batches of 64. The scenario's gate drops to the new floor.

* perf(#375): decode a batch into a buffer the dispatch loop owns

The vector a batch decodes into is the handler's own slice, so it cannot go; it
does not have to be built again for every batch. A batch handler now names the
buffer it decodes into and the dispatch loop keeps one for the subscription,
emptying and reusing it per batch, so the slice costs one allocation at startup
instead of one per batch. A pooled subscriber still takes a buffer per batch:
its batches run at the same time and cannot share one. The form whose values
borrow their deliveries keeps its per-batch vector, which the borrow forces.

This closes the gap with the hand-written loop: 0.1... (continued)

116 of 116 new or added lines in 5 files covered. (100.0%)

14859 of 15401 relevant lines covered (96.48%)

193.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35134439269.1 16 Sep 2026 06:30PM UTC 99
96.48
GitHub Action Run
Source Files on build 35134439269
  • Tree
  • List 99
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35134439269
  • 3da39267 on github
  • Prev Build on ci/draft-gate (#34988687035)
  • Next Build on main (#35454973768)
  • Delete
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