testing-perf
This skill provides patterns for k6 load testing, Locust stress testing, and pytest execution optimization. It covers staged ramp-up configuration, threshold setup, test type classification (load, stress, spike, soak), and parallel execution with pytest-xdist for faster test suites.
testing-perf helps you set up k6 or Locust load tests with thresholds and staged ramp-up configurations.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-28
testing-perf helps you set up k6 or Locust load tests with thresholds and staged ramp-up configurations. This skill provides patterns for k6 load testing, Locust stress testing, and pytest execution optimization. It covers staged ramp-up configuration, threshold setup, test type classification (load, stress, spike, soak), and parallel execution with pytest-xdist for faster test suites.
Use it when
- testing-perf classifies performance test types so you choose the right one for your goals.
- testing-perf shows how to use pytest-xdist to run tests across multiple workers, dramatically reducing total execution time.
Verify before relying
Read SKILL.md below before installing (15 files). Open directory: indexed for reading, not audited.
Similar skills
Install
yonatangross/orchestkit/testing-perf · repository language: TypeScript
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I set up k6 load testing with thresholds?
testing-perf covers k6 load testing setup with thresholds by showing how to define performance criteria that fail your test if violated. You configure thresholds in your k6 script's options object to specify acceptable response times, error rates, and other metrics. The skill explains staged ramp-up patterns so you gradually increase virtual users rather than spiking load instantly, helping you identify breaking points in your system under realistic conditions.
What's the difference between load, stress, spike, and soak tests?
testing-perf classifies performance test types so you choose the right one for your goals. Load tests verify normal capacity; stress tests push beyond limits to find breaking points; spike tests suddenly increase traffic to test recovery; soak tests run at steady load for hours to detect memory leaks and degradation. The skill helps you plan which type answers your specific performance question before writing test code.
How can I speed up pytest test suites using xdist parallel execution?
testing-perf shows how to use pytest-xdist to run tests across multiple workers, dramatically reducing total execution time. You install pytest-xdist, add the -n flag with a worker count, and configure worker isolation to prevent test conflicts—especially important for database access and shared resources. The skill covers CI/CD integration patterns so parallel execution works reliably in your pipeline.
How do I write Locust stress tests for Python applications?
testing-perf provides Locust stress testing patterns including task weighting to simulate realistic user flows, authentication handling, and custom metrics. You define User classes with task methods, set spawn rates and run duration, then execute distributed load across multiple machines if needed. The skill shows how to structure tests for auth flows and other complex scenarios beyond simple HTTP requests.
What pytest markers and plugins work best for parallel testing?
testing-perf covers pytest markers for parallel tests and conftest plugin configuration to enable xdist worker isolation. You use markers to skip or group tests, configure fixtures with proper scoping, and set up plugins that coordinate state across workers. The skill explains how to handle database transactions, temporary files, and other resources that conflict when tests run simultaneously.
How do I integrate k6 performance tests into CI with thresholds?
testing-perf explains k6 CI integration by showing how to run k6 scripts in your pipeline and fail the build if thresholds are breached. You export results to JSON, parse threshold violations, and set exit codes accordingly. The skill covers staged ramp-up examples and custom metrics so your CI catches performance regressions before they reach production.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Performance & Load Testing Patterns
Focused skill for performance testing, load testing, and pytest execution optimization. Covers k6, Locust, pytest-xdist parallel execution, custom plugins, and test type classification.
Quick Reference
| Area | File | Purpose |
|---|---|---|
| k6 Load Testing | rules/perf-k6.md |
Thresholds, |
(truncated - see the full file via the links below)
File tree — 15 files
src/skills/testing-perf/SKILL.md
src/skills/testing-perf/checklists/performance-checklist.md
src/skills/testing-perf/checklists/pytest-production-checklist.md
src/skills/testing-perf/references/custom-plugins.md
src/skills/testing-perf/references/k6-patterns.md
src/skills/testing-perf/references/xdist-parallel.md
src/skills/testing-perf/rules/_sections.md
src/skills/testing-perf/rules/execution.md
src/skills/testing-perf/rules/perf-k6.md
src/skills/testing-perf/rules/perf-locust.md
src/skills/testing-perf/rules/perf-types.md
src/skills/testing-perf/rules/pytest-execution.md
src/skills/testing-perf/rules/pytest-plugins.md
src/skills/testing-perf/scripts/test-case-template.md
src/skills/testing-perf/test-cases.json
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Set up k6 or Locust load tests with thresholds and staged ramp-up”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
This skill has been split into five specialized sub-skills, each addressing a distinct testing need. Choose testing-unit for isolated logic, testing-e2e for browser automation, testing-integration for cross-boundary APIs and databases, testing-llm for AI evaluation, or testing-perf for load and performance work.
testing-llm equips you with patterns for mocking LLM API calls, evaluating output quality across multiple dimensions, and automating test workflows through planner, generator, and healer agents. Use it to build deterministic CI tests, validate RAG pipelines, and apply structured output validation with Pydantic schemas.
Learn to structure Python tests using pytest, fixtures, parameterization, and mocking techniques. This skill covers unit and integration testing, test isolation, the AAA pattern, and debugging strategies to establish reliable test infrastructure.
Learn to build reliable test suites in Python using pytest, fixtures, and mocking strategies. This skill covers unit and integration testing, test organization, async testing, and coverage measurement. Discover patterns for parametrized tests, external dependency mocking, and test-driven development workflows.
Master pytest's core patterns for writing maintainable tests: fixtures for setup and teardown, parametrize for test variations, and monkeypatch for mocking. Learn test structure, granularity, and scope management to build fast, isolated unit tests that serve as executable documentation.
Pytest Patterns teaches you to write reliable Python tests using pytest's core features—fixtures for setup and teardown, parametrization to run tests with multiple inputs, and mocking to isolate dependencies. Learn test organization, coverage analysis, and CI/CD integration to scale from simple unit tests to complex test suites.
More skills python-testing-patterns (MIT)