一键导入
benchmark
Run and analyze performance benchmarks. Use when working on performance-critical code or comparing changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run and analyze performance benchmarks. Use when working on performance-critical code or comparing changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Look up Rust crate documentation in Markdown format from target/doc-md/.
Run all Rust quality checks (fmt, clippy, test, bench). Use before committing or when validating code changes.
Upgrade Rust dependencies one at a time using cargo outdated. Analyzes impact, checks for API changes, and produces a recommendation before upgrading.
Prepare a pull request with quality checks, commit, and PR creation. Use when ready to submit changes for review.
Run security audit on dependencies and review code for vulnerabilities. Use before releases or when updating dependencies.
| name | benchmark |
| description | Run and analyze performance benchmarks. Use when working on performance-critical code or comparing changes. |
Run the Criterion benchmarks and analyze performance.
# Run the whole suite
cargo bench
# Run a single benchmark by name filter
cargo bench --bench eval -- parse
cargo bench --bench eval -- eval_str/field_access
cargo bench --bench eval -- eval_str/iterate_100
# Save a baseline before changes
cargo bench --bench eval -- --save-baseline before
# Make your changes...
# Compare against the baseline
cargo bench --bench eval -- --baseline before
| Benchmark group | File | What it measures |
|---|---|---|
parse/* | benches/eval.rs | Compiling a filter (parser::parse) |
eval_str/* | benches/eval.rs | End-to-end eval_str (parse filter + load YAML + evaluate) |