Run Rust Benchmarks
Measures Redisearch performance using Rust benchmarks to identify bottlenecks and optimize indexing efficiency.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add run-rust-benchmarks npx -- -y @trustedskills/run-rust-benchmarks
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"run-rust-benchmarks": {
"command": "npx",
"args": [
"-y",
"@trustedskills/run-rust-benchmarks"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to execute Rust benchmarks directly within their runtime environment. It facilitates performance testing of Rust code by leveraging pre-configured benchmarking tools and standard libraries available in the agent's execution context.
When to use it
- Validating the performance characteristics of newly written or refactored Rust modules before production deployment.
- Comparing the execution speed of different algorithmic implementations written in Rust.
- Stress-testing backend services built with Rust to identify potential bottlenecks under load.
- Establishing a baseline for micro-benchmarking specific functions without setting up a separate CI/CD pipeline.
Key capabilities
- Direct execution of Rust benchmark suites within the agent environment.
- Integration with standard Rust profiling and timing utilities.
- Support for running custom benchmark scripts written in Rust syntax.
- Automated collection of performance metrics during runtime.
Example prompts
- "Run the
criterionbenchmark suite on my localsorting.rsmodule and report the throughput results." - "Execute a micro-benchmark comparing the memory allocation overhead of two different data structure implementations in Rust."
- "Set up and run a stress test using the
sysbenchcrate to evaluate the latency of my new API handler."
Tips & gotchas
Ensure your Rust code is compiled with optimization flags (e.g., -O) before running benchmarks to get accurate performance data. This skill requires the agent to have access to a compatible Rust toolchain and necessary dependencies installed in its environment.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.