Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Azure/azure-sdk-for-rust --skill create-perf-test명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | create-perf-test |
| description | Generate a new performance test |
| disable-model-invocation | true |
You will generate a new performance (perf) test under the sdk/{service-directory}/{crate-name}/perf directory as ${input:testName:perf_test_name}.rs where:
{service-directory} is the directory name under sdk for the current ${file} e.g., core.{crate-name} is the crate directory name under sdk/{service-directory} for the current ${file} e.g., azure_core.These instructions only need to be done once. If changes described are already present, do not make the changes again.
Under the {crate-name} directory, in Cargo.toml add the following section:
[[bench]]
name = "perf"
path = "perf/perf_tests.rs"
harness = false
Under the {crate-name} directory, add a perf/perf_tests.rs file that uses azure_core_test::perf::PerfRunner to register and run the crate's perf tests.
Under the {crate-name} directory, copy sdk/core/perf.yml and change only the following contents:
ServiceDirectory to match the {service-directory}.Under the {crate-name} directory, copy sdk/core/perf-tests.yml and change only the following contents:
Service to match the {service-directory}.Project to match the {crate-name}.PackageVersions to replace azure_core with the {crate-name}.For each new perf test:
In sdk/{service-directory}/{crate-name}/perf/${input:testName}.rs:
azure_core_test::perf::PerfTest.test_metadata() function returning PerfTestMetadata, including any required command-line options.PerfTest implementation.context.recording().credential() or an existing helper) instead of introducing a new authentication flow.recording.instrument_perf(&mut options.client_options)?.In sdk/{service-directory}/{crate-name}/perf/perf_tests.rs:
mod ${input:testName};.PerfRunner::new(...).In the {crate-name}/perf-tests.yml file:
Add a top-level Tests: property if it does not already exist.
Add the following YAML under the Tests: property as a separate YAML array object:
- Test: ${input:testName}
Class: ${input:testName}
Arguments:
- --sync
Match existing crate patterns for client construction, shared setup state, and environment variable names.