Run Rust benchmarks and compare performance with the C implementation.
Arguments
<crate>: Run the given benchmark crate (e.g., /run-rust-benchmarks rqe_iterators_bencher)
<crate> <bench>: Run specific bench in a benchmark crate (e.g., /run-rust-benchmarks rqe_iterators_bencher "Iterator - InvertedIndex - Numeric - Read Dense")
Arguments provided: $ARGUMENTS
Instructions
Check the arguments provided above:
If a crate name is provided, run benchmarks for that crate:
cd src/redisearch_rs && cargo bench -p <crate_name>
If both crate and bench name are provided, run the specific bench:
cd src/redisearch_rs && cargo bench -p <crate_name> <bench_name>
Run benchmarks only once. If the output is too large or truncated, extract the timing data from the saved output file rather than re-running the benchmarks.
Once the benchmarks are complete, generate a summary comparing the average run times between the Rust and C implementations.
Common Benchmark Commands
# Bench given crate
cd src/redisearch_rs && cargo bench -p rqe_iterators_bencher
cd src/redisearch_rs && cargo bench -p inverted_index_bencher
# Run a specific benchmark
cd src/redisearch_rs && cargo bench -p rqe_iterators_bencher "Iterator - InvertedIndex - Numeric - Read Dense"
1---2name: run-rust-benchmarks3description: Rust Benchmarks Skill4---5# Rust Benchmarks Skill67Run Rust benchmarks and compare performance with the C implementation.89## Arguments10- `<crate>`: Run the given benchmark crate (e.g., `/run-rust-benchmarks rqe_iterators_bencher`)11- `<crate> <bench>`: Run specific bench in a benchmark crate (e.g., `/run-rust-benchmarks rqe_iterators_bencher "Iterator - InvertedIndex - Numeric - Read Dense"`)1213Arguments provided: `$ARGUMENTS`1415## Instructions16171. Check the arguments provided above:18 - If a crate name is provided, run benchmarks for that crate:19 ```bash20 cd src/redisearch_rs && cargo bench -p <crate_name>21 ```22 - If both crate and bench name are provided, run the specific bench:23 ```bash24 cd src/redisearch_rs && cargo bench -p <crate_name> <bench_name>25 ```262. **Run benchmarks only once.** If the output is too large or truncated, extract the timing data from the saved output file rather than re-running the benchmarks.273. Once the benchmarks are complete, generate a summary comparing the average run times between the Rust and C implementations.2829## Common Benchmark Commands3031```bash32# Bench given crate33cd src/redisearch_rs && cargo bench -p rqe_iterators_bencher34cd src/redisearch_rs && cargo bench -p inverted_index_bencher3536# Run a specific benchmark37cd src/redisearch_rs && cargo bench -p rqe_iterators_bencher "Iterator - InvertedIndex - Numeric - Read Dense"38```
Run npx skillmds@latest add comeonoliver/run-rust-benchmarks in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Rust Benchmarks Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ComeOnOliver (@comeonoliver) published this skill. Their other Agent Skills are listed on their SkillMD profile.