원클릭으로
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.