Skip to content

Add upstream response body filter benchmark - #973

Open
torinnd wants to merge 1 commit into
cloudflare:mainfrom
torinnd:noop-body-filter-benchmark
Open

Add upstream response body filter benchmark#973
torinnd wants to merge 1 commit into
cloudflare:mainfrom
torinnd:noop-body-filter-benchmark

Conversation

@torinnd

@torinnd torinnd commented Aug 24, 2026

Copy link
Copy Markdown

Add a Criterion benchmark for the per-call cost of ProxyHttp::upstream_response_body_filter, covering both the default implementation and a trivial override. This provides a stable baseline for evaluating changes to a per-body-chunk hot path. I opted for Criterion, as it's already used by pingora-lru; this adds it only as a dev-dependency and follows that existing benchmark pattern.

Run with:

cargo bench -p pingora-proxy --bench noop_body_filter

Add a Criterion benchmark for the per-call cost of
ProxyHttp::upstream_response_body_filter, covering both the default
implementation and a trivial override. This provides a stable baseline
for evaluating changes to a per-body-chunk hot path.

Run with:

  cargo bench -p pingora-proxy --bench noop_body_filter
@torinnd
torinnd force-pushed the noop-body-filter-benchmark branch from 15cb798 to a91d2cd Compare August 27, 2026 13:13
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.

1 participant