install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/RediSearch/RediSearch/run-rust-benchmarks" ~/.claude/skills/comeonoliver-skillshub-run-rust-benchmarks && rm -rf "$T"
manifest:
skills/RediSearch/RediSearch/run-rust-benchmarks/SKILL.mdsource content
Rust Benchmarks Skill
Run Rust benchmarks and compare performance with the C implementation.
Arguments
: Run the given benchmark crate (e.g.,<crate>
)/run-rust-benchmarks rqe_iterators_bencher
: Run specific bench in a benchmark crate (e.g.,<crate> <bench>
)/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>
- If a crate name is provided, run benchmarks for that crate:
- 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"