بنقرة واحدة
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.