Skip to content

test(perf): Criterion microbenches and wrk scenarios - #134

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue-110-criterion-benches
Jul 20, 2026
Merged

test(perf): Criterion microbenches and wrk scenarios#134
ZhuchkaTriplesix merged 1 commit into
devfrom
issue-110-criterion-benches

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Criterion bench hot_path: match_route_compiled, map_handler_return (str/bytes), json_to_py
  • perf-test/bench_scenarios.sh + app_scenarios.py: text, JSON POST, JWT, CORS, Depends
  • Docs for running benches / baselines; optional perf-smoke workflow (manual + weekly)
  • extension-module is a Cargo feature (maturin enables it) so cargo bench can link libpython

Closes #110

Test plan

  • cargo bench --bench hot_path -- --sample-size 10 --warm-up-time 1 --measurement-time 1
  • cargo clippy --all-targets -- -D warnings
  • uv run maturin develop --uv still installs the extension
  • Optional: ./perf-test/bench_scenarios.sh with OXYROUTE_BENCH_DURATION=1s

Add cargo bench hot_path (match/map/json), multi-route wrk scenarios,
docs for baselines, and an opt-in perf-smoke workflow. Closes #110.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 56ea1e4 into dev Jul 20, 2026
16 checks passed
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