بنقرة واحدة
load-test
Write performance and load tests to validate throughput and thread safety (Priya Sharma's workflow)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Write performance and load tests to validate throughput and thread safety (Priya Sharma's workflow)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Add a new implementation of the primary protocol/interface (Alex Rivera's workflow)
Add a new API endpoint following all project standards
Plan and implement a complete feature end-to-end across all layers
Full codebase audit — dead code, layer violations, concurrency, observability, code quality
Set up or update GitHub Actions CI/CD pipeline (Marcus Chen's workflow)
Remove dead code, unused imports, stale files, and fix code quality issues found by /audit
| name | load-test |
| description | Write performance and load tests to validate throughput and thread safety (Priya Sharma's workflow) |
| disable-model-invocation | true |
Write performance/load tests for: $ARGUMENTS
// Concurrency test — verify thread-safe access under load
TestConcurrency {
test_concurrent_state_changes_no_race_condition(client) {
// Submit 50 concurrent state-changing requests using a thread pool
pool = new ThreadPool(max_workers: 10)
futures = []
for i in range(50) {
futures.append(pool.submit(make_state_change_request, client, i))
}
results = [f.result() for f in futures]
// All requests should succeed (no 500s from race conditions)
for resp in results {
assert resp.status == 200
}
// Final state should be consistent
}
}
Verify the system handles rapid state changes without corruption. After rapid cycling, final state should be deterministic and consistent.
// Latency test — verify endpoints respond within acceptable time
TestLatency {
test_health_endpoint_under_200ms(client) {
start = high_resolution_timer() // see stack concepts
resp = client.GET("<health endpoint path>")
elapsed_ms = (high_resolution_timer() - start) * 1000
assert resp.status == 200
assert elapsed_ms < 200, "Health took {elapsed_ms}ms (limit: 200ms)"
}
}
Place load tests in the performance test file (see test file mapping in project config).
Run the test command (see project config) — full suite still passes.