durableperf

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

durable-perf

Throughput harness for the durable cast path: how fast a single durable thrall drains a JetStream backlog of casts, in casts/s. Build-tagged (durableperf), out of normal CI.

It preloads N casts into the stream before the thrall attaches, so the timed window is pure consumer drain (fetch + serialized handler + ack), not publish. That is the path AE-065 tuned (batched Fetch + AckWait/MaxAckPending), so this harness is its before/after evidence.

Run

scripts/durable-perf.sh            # backlog of 20000 casts
scripts/durable-perf.sh 200000     # larger backlog (recommended for a stable rate)

# or directly:
go test -tags durableperf -run TestDurableThroughput ./examples/durable-perf/

Backlog size is AETHER_PERF_CASTS (default 20000). Use a large N (e.g. 200000) for a representative figure - the harness polls the drained count every 20 ms, so small backlogs drain faster than they can be observed and the rate reads as a floor.

Before/after

The harness measures the current (tuned) build. To see the pre-AE-065 shape, set durableBatchSize = 1 in sdk/go/thrall/thrall.go, run again, then revert. See REPORT.md for a measured snapshot.

Documentation

Overview

Package durableperf is a build-tagged (durableperf) throughput harness for the durable cast path. It measures the one number the durable consumer is about: how fast a single durable thrall drains a JetStream backlog of casts, in casts/s, on this machine.

The scenario is deliberately drain-bound: N casts are preloaded into the stream before the thrall attaches, so the timed window is pure consumer drain (fetch + serialized handler + ack), not publish. That is the path AE-065 tuned (batched Fetch + AckWait/MaxAckPending), so the harness is the before/after evidence for the batching change - run it on the tuned build, then again with durableBatchSize=1 (the pre-AE-065 shape) to see the ceiling move.

Run it with scripts/durable-perf.sh (or `go test -tags durableperf -run TestDurableThroughput ./examples/durable-perf/`). Backlog size is AETHER_PERF_CASTS (default 20000). See REPORT.md for a measured snapshot.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL