一键导入
performance-benchmark
Instructions for running and analyzing performance benchmarks for Locus.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Instructions for running and analyzing performance benchmarks for Locus.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Performance Benchmark |
| description | Instructions for running and analyzing performance benchmarks for Locus. |
This skill guides you through the process of benchmarking the Locus library to ensure latency and throughput goals are met.
Use this for a quick check of recall and end-to-end latency on the standard dataset.
First, compile the core library with release optimizations:
uv run maturin develop --release
Then, run the benchmark suite:
uv run python -m scripts.bench.run real --compare
Success Criteria:
Use this for strict regression testing before merging PRs. It isolates the detector and runs on a controlled set of images.
# ICRA 2020 suite
cargo test --release --test regression_icra2020 -- --test-threads=1
# Render-Tag suite (Synthetic Hub Data)
LOCUS_HUB_DATASET_DIR=../../tests/data/hub_cache cargo test --release --test regression_render_tag -- --test-threads=1
Note: Always run with --test-threads=1 to avoid CPU contention affecting timing results.
Use criterion based benchmarks for specific functions (e.g., thresholding, quad-fitting).
cargo bench --workspace
To investigate performance implementations:
tracy feature in Cargo.toml.