The engineering load testing decision record: why the load profile model you chose determines your performance regression detection ceiling and your capacity assumption blast radius

Load testing decisions are made early — when a CI pipeline is first configured, when a staging environment is first stood up, when a performance team is first tasked with writing a test suite — and the choices made in those sessions determine whether performance regressions surface before production or during customer-facing incidents. The load profile model, the pipeline integration model, the pass/fail threshold model, and the baseline management model are founding decisions about what performance conditions the team will test against, how early in the development cycle regressions will surface, and what the team will accept as evidence that a release is production-safe.

An 18-person developer tools startup had built a documentation generation platform. The core product took codebases as input, ran static analysis across the source tree, and produced structured documentation pages for each module, function, and API surface. The team had built a solid continuous integration pipeline that ran unit tests, integration tests, and a load test against a staging environment before every production deployment. The load test had been written during the first month of the platform's existence, when the team had a handful of beta users and wanted to ensure the platform could handle growth. The engineer who wrote it had set the concurrency target at 100 simultaneous users — a number that felt large relative to the 23 users on the beta waitlist at the time — and the test had been passing consistently for eight months.

In month nine, the marketing team launched a campaign that placed the product in front of a large developer community newsletter with 180,000 subscribers. The campaign was planned six weeks in advance. The engineering team was aware of it. No one revisited the load test. The load test passed at 100 concurrent users with p99 latency of 210ms and an error rate of 0%. The team deployed the latest release on the morning of the newsletter send, confirming the load test results as the final gate before the deployment went out.

The newsletter sent at 9:30 AM Pacific. By 9:34 AM, the error rate on the platform's primary API endpoint had reached 47%. By 9:36 AM it was 91%. The site was effectively down. The on-call engineer was paged at 9:34 AM and began investigating. The incident channel opened with the standard triage questions: is this a code regression, an infrastructure failure, or a traffic spike? The Caddy access logs showed 2,400 concurrent sessions — 24 times the load test target — generating 1,800 requests per second. The application servers were healthy. The queue was processing normally. The bottleneck was the database: the connection pool had exhausted its 50 available connections at approximately 9:35 AM, and every request arriving after that point was waiting for a connection that never became available within the 5-second timeout, returning a 503 to the user.

The team increased the connection pool size from 50 to 200 connections. This required a configuration change, a redeployment, and a database restart to pick up the new pool parameters — a sequence that took 22 minutes. At 9:58 AM, the error rate dropped to 0% and the site recovered. The marketing campaign had produced 4,100 signups in the 90 minutes following the newsletter send, but the analysis of the access logs showed that the site had been unresponsive for 24 of those 90 minutes — from 9:34 AM to 9:58 AM — a window that corresponded to the highest-density signup period immediately after the newsletter opened. The team estimated that the site had served error pages to between 1,500 and 2,000 potential signups who attempted to access it during that 24-minute window and did not return.

The post-incident analysis produced an uncomfortable fact: the marketing team had briefed the engineering team on the newsletter campaign 6 weeks before the send. The anticipated concurrency had been calculable from the newsletter's subscriber count, its typical open rate (22%), and an estimated 15% click-through rate — roughly 5,940 clicks in the first hour, compressing to 2,400 concurrent sessions at the peak. That estimate was available 6 weeks before the incident. The load test had been running at 100 concurrent users for eight months without anyone updating the concurrency target as the team's understanding of its traffic profile had evolved. The load test's job was to validate that the system could handle its anticipated production load — but its definition of "anticipated production load" had been frozen at the usage profile of the first month of the beta and had never been updated to reflect either the growth trajectory or the specific traffic event the team knew was coming.

A 38-person B2B SaaS had built a project management platform targeting engineering teams. The platform had been in production for two years and had grown to 4,200 monthly active users across 180 customer accounts. The engineering team ran a load test suite that had been built incrementally as the team had grown — originally a simple k6 script from the founding engineer, extended over time to cover more endpoints and more request types. The load test ran on every deployment to the staging environment, before the deployment was promoted to production. It consistently passed. The team had confidence in its coverage.

The load test had been built against a uniform traffic model: a constant rate of 100 requests per second, distributed evenly across the test endpoints, running for 10 minutes. The test had been designed this way because it was simple to reason about and produced consistent, comparable results between runs. The founding engineer had made the choice deliberately, noting in the initial test script comment that uniform load was easier to baseline against than variable load, and that the team could add variable load scenarios later when the platform had more users and more concrete data about its traffic patterns.

The team shipped a new feature: a bulk project status update endpoint that allowed a project manager to update the status of hundreds of tasks simultaneously. The feature was well-designed for its purpose — it batched the updates into a single transaction, used an optimistic locking approach to handle concurrent edits, and had good test coverage for correctness. The load test passed. The staging deployment was promoted to production on a Thursday afternoon. The engineer who shipped it marked the deployment card as done and started work on the next sprint item.

The following Monday morning, as engineering teams across the customer base arrived at their offices and opened their project dashboards, the platform began to degrade. By 9:15 AM Pacific, p99 latency on the dashboard endpoint had climbed to 8,400ms. By 9:22 AM, the error rate was 14%. The platform was not down — requests were completing — but the user experience was deeply degraded: dashboards were taking 8 to 12 seconds to load, and 1 in 7 requests was failing. The on-call engineer found nothing wrong in the application tier. The database was under load but not in distress. The root cause took 40 minutes to identify: the new bulk status update endpoint had a cache invalidation pattern that, under the burst conditions of Monday morning's concentrated working-hours traffic, was triggering a cache stampede on the task list cache. When 150 concurrent users hit the dashboard in the same 30-second window — the working-hours burst pattern — a fraction of them would have simultaneously hit a cache miss caused by a concurrent bulk update, all attempting to repopulate the cache from the database at the same moment, overwhelming the database connection pool and causing the latency spike across all endpoints that depended on the same connection pool.

The issue was not detectable at 100 requests per second distributed uniformly across a 10-minute test window. At 100 req/s constant rate, the probability of 150 users hitting the cache miss window simultaneously was negligible — the uniform distribution spread the load across time in a way that eliminated the burst concurrency condition. Under Monday morning working-hours traffic, the actual pattern was: 8 req/s from 6:00 AM to 7:00 AM as east coast users arrived, rising to 220 req/s by 9:00 AM Pacific as the west coast added its volume to the existing east coast load, with a 90-second period of 310 req/s at 9:12 AM when a customer had sent an in-app notification to 800 users simultaneously. The uniform load test at 100 req/s had represented the platform's daytime average, not its burst peak, and not the temporal concentration patterns that made the burst peak qualitatively different from a steady higher average rate.

The fix — adding a lock-based cache population gate that prevented simultaneous repopulation of the same cache key — took 3 hours to implement, test, and deploy. The platform had been degraded for 2 hours and 7 minutes. The post-incident analysis found that the bug would have been caught by a load test that modeled the Monday morning burst pattern: 15 minutes at low load, a 90-second ramp to 300 req/s, 5 minutes at 300 req/s, then a 30-second spike to 500 req/s — a shape that would have produced the concurrent cache miss event in a controlled test environment before the feature shipped.

A 61-person enterprise SaaS had built a workflow automation platform serving 240 enterprise customers. The platform processed 4.2 million workflow executions per day across customer integrations with CRM, ERP, and HR systems. The engineering team had a mature performance testing practice by most measures: a dedicated performance environment with production-equivalent infrastructure, a comprehensive load test suite with realistic synthetic workflows, and a process that required load tests before every major release. The practice had been built after a severe performance incident in the company's history — an index migration that had degraded the platform for 11 hours — and the team took it seriously. The load tests ran before every quarterly release cycle. They passed consistently.

In the second week of Q3, a dependency update was merged to the main branch as part of routine dependency maintenance. The update bumped the database ORM library from version 2.14.1 to version 2.17.0 — three minor versions. The library's changelog noted performance improvements in connection pooling and batch insert throughput. The team merged it without additional scrutiny; minor version bumps to a mature ORM library were not a category the team treated as requiring performance investigation. The update went to production in the next regular deployment, 4 days after merging.

Ten weeks later, in the week before the Q3 quarterly release, the team ran its standard pre-release load test. The test flagged 6 endpoints as degraded: the workflow execution list endpoint (p99 latency 2,347ms, up from 178ms baseline), the workflow step detail endpoint (p99 2,089ms, up from 203ms baseline), the execution history endpoint (p99 1,891ms, up from 165ms baseline), and three related query endpoints. The degradation was approximately 10–13x on p99 latency across all 6 affected endpoints. The team escalated immediately — this was a severe regression, not a minor fluctuation — and the investigation identified the root cause within 4 hours: the ORM library update had changed the query builder behavior for a specific pattern involving LEFT JOIN with dynamic filter conditions, generating a query plan that caused the database to execute a sequential scan on a table with 180 million rows rather than the index scan that the previous library version had produced. The query plan change had been silent: the query syntax was identical, but the ORM's query construction path had changed in a way that the database's query planner interpreted differently.

The root cause was clear and the fix was straightforward — adding an explicit query hint to force the index scan. The fix was implemented, the load test rerun to confirm recovery, and the quarterly release shipped on schedule. The incident did not make the news. But the post-incident analysis had a data point that was difficult to dismiss: the ORM version that introduced the regression had been deployed to production 10 weeks before the quarterly load test caught it. During those 10 weeks, every request to the 6 affected endpoints had been executing at 2,100–2,400ms p99 latency rather than 165–203ms. The team had 240 enterprise customers. The workflow list and execution history endpoints were primary surfaces that customers interacted with throughout their working day — not edge-case API calls, but core navigation endpoints.

The team reviewed the alerting configuration for those endpoints. The alert threshold for p99 latency was 3,000ms — an absolute number set when the platform was first configured for production monitoring, chosen because 3,000ms was the number at which the team had empirically observed users beginning to file support tickets about slowness. At 2,100–2,400ms, the absolute alert had not fired. The relative regression — 10–13x degradation from an established 165–203ms baseline — had no corresponding alert. The team had a mature quarterly load testing practice that caught regressions correctly. The gap was that the quarterly cadence allowed a 10-week exposure window, and the absolute alert threshold had no mechanism to surface relative regressions that remained below its ceiling.

The retrospective identified the specific fix: a lightweight load test running on every main branch merge that compared results against the last stored baseline, with a 25% relative regression threshold that would have caught the 10–13x degradation at the ORM update commit, 4 days after the library change, before it had been in production for more than a few days. The team implemented this within the sprint following the incident. The same relative regression detection would have caught the ORM regression the week it was introduced rather than 10 weeks later.

Structural properties set by the load testing decision

Two structural properties are determined by the founding decisions about load profiles, pipeline integration, pass/fail thresholds, and baseline management. Both are invisible during normal operations — the product runs, deployments succeed, and the load test's constraints are not visible in dashboards. Both become visible when a production incident traces back to a regression that the load test was architecturally unable to detect because the load profile never created the conditions that would have revealed it, or when a performance audit reveals that the system has been operating at 10x baseline latency for 10 weeks because the alert threshold had no relative component.

Property 1: Performance regression detection ceiling. The performance regression detection ceiling is the structural limit on how early in the development cycle the engineering team can detect that a code change, dependency update, or configuration change has degraded system performance relative to a previously acceptable baseline. The ceiling has three components. The load profile completeness component is the most consequential for the class of regressions the load test is designed to catch: a load profile that simulates 100 steady-state concurrent users cannot detect regressions that only manifest at 2,400 burst concurrent users; a load profile that simulates uniform request distribution cannot detect regressions triggered by bursty temporal concentration; a 10-minute load profile cannot detect resource exhaustion that manifests after 2 hours of sustained load. The ceiling imposed by an incomplete load profile is not a threshold the team can lower by adjusting the CI configuration — it is a gap in what conditions are ever tested. The pipeline cadence component is determined by when in the development cycle load tests run. A quarterly pre-release load test has a detection ceiling that allows up to three months of regression exposure in production before the test runs. A per-commit load test has a detection ceiling of hours — the time between the commit landing in the pipeline and the test completing. The pipeline cadence component is adjustable, but the adjustment requires deciding which regression classes are severe enough to warrant blocking the development cycle at the commit or merge level versus acceptable to catch at the pre-release stage. Connect to the CI/CD pipeline decision record: the pipeline design decisions about which quality gates block which pipeline stages determine where load tests fit in the development workflow and what pipeline infrastructure (parallelism, caching, dedicated performance environments) is available to run them without unacceptably extending the development cycle; the load testing model is constrained by the pipeline design — a team that has not invested in a dedicated performance environment with production-equivalent infrastructure cannot run a full load test on every main branch merge without introducing a 15-minute blocking step into every merge operation. The baseline management component is determined by whether the team can compare new test results against a versioned prior baseline. Teams that store only pass/fail results cannot distinguish a 10x regression from baseline variance. Teams that store baseline numbers but do not version them alongside code commits cannot correlate a detected regression to the specific change that introduced it. The baseline management model must include: storage of p50, p90, p99 latency and error rate per endpoint per test run, indexed by code commit hash; a comparison infrastructure that surfaces the delta between the current run and the prior baseline for each endpoint; and a regression threshold definition that specifies the maximum percentage degradation that is acceptable before the test fails. Connect to the SLO and error budget decision record: the latency SLO targets — the latency at which the user experience is considered acceptable — are the logical anchor for the load test's pass/fail threshold; the load test threshold should be derived from the SLO, not set independently; a team whose load test has a 3,000ms absolute threshold but whose SLO requires p99 latency under 500ms has a gap between what the SLO commits and what the load test enforces.

Property 2: Capacity assumption blast radius. The capacity assumption blast radius is the total production user impact when a capacity assumption made during development proves incorrect when exposed to real production traffic. It is the product of the number of users affected by the incident and the duration of the incident — a 24-minute outage during a campaign event affecting 2,000 potential signups has a larger blast radius than a 2-hour degradation affecting 50 internal beta users, and the load testing model's design determines which capacity assumption categories are tested before production versus discovered during production incidents. The traffic model accuracy component is determined by how closely the load test derives its concurrency target from the actual worst-case production traffic scenario, not from the team's current typical traffic. Teams that derive concurrency targets from current DAU (daily active users) build in systematic under-modeling: DAU grows as the product grows, the concurrency target doesn't, and the gap between what is tested and what production traffic demands widens over time. The load test concurrency target should be tied to the capacity planning model — the team's formal estimate of peak concurrent sessions at next-milestone traffic levels — and should be updated when the capacity planning model is updated. Connect to the capacity planning decision record: the capacity planning decisions about traffic growth models, peak-to-average traffic ratios, and resource provisioning headroom are the upstream inputs to the load test's concurrency target; the two decisions work together — the capacity planning model defines the anticipated production capacity requirement, and the load test validates that the system can meet it; a team that has not done capacity planning for the next milestone has no principled basis for setting the load test concurrency target, and a team that has done capacity planning but has not updated the load test to reflect the planning model's targets is testing against stale assumptions. The traffic pattern coverage component is determined by whether the load profile models the temporal shape of real traffic, not just the average rate. Bursty traffic patterns — Monday morning working-hours concentration, campaign event spikes, end-of-month billing processing, batch job triggers that arrive simultaneously from multiple customers on a cron schedule — have performance characteristics that are qualitatively different from steady-state traffic at the same average rate. The difference is not just quantitative (more requests) but structural: burst concurrency activates resource contention (database connection pool exhaustion, cache lock contention, queue saturation) that steady-state traffic does not reach even at higher average rates, because the resources are able to recover between requests when the load is distributed over time. A load profile that does not model the bursty patterns that characterize real production traffic will not test the system in the conditions where capacity assumptions are most likely to be violated. Connect to the performance optimization decision record: the performance optimization decisions about which bottlenecks to address and which architectural patterns to adopt (connection pooling, caching strategies, queue depth management) are informed by load test findings; a load test that never reveals the connection pool exhaustion, cache stampede, or queue saturation that occurs under burst conditions will not generate the signal that motivates the optimization decisions that would have prevented the production incident. The dependency load model accuracy component is determined by whether the downstream dependencies — databases, caches, message queues, internal microservices, external APIs — are under realistic concurrent load during the test. A load test that runs against an idle, freshly provisioned database will not reproduce the query plan degradation that occurs when the database query planner makes decisions based on table statistics that have not been updated since a large batch insert, the connection pool exhaustion that occurs when the application tier is handling 2,400 concurrent sessions all awaiting database responses, or the lock contention that occurs when the concurrent request pattern triggers multiple writers on the same rows simultaneously. The dependencies should be pre-warmed to production-representative state before the load test begins — representative table sizes, representative cache state, representative queue depth — so that the test reflects the system's performance characteristics under realistic conditions rather than its performance characteristics from a cold start.

The load testing ADR: five sections

Section 1: Load profile model. The load profile model defines the synthetic traffic patterns the test suite uses to represent production conditions. The ADR must specify load profile types at a level of granularity that maps to the actual traffic scenarios the team needs to validate, not just a single generic "run N concurrent users for M minutes." A complete load profile model covers four scenario types. The steady-state scenario validates that the system performs acceptably at its typical operating concurrency: set the target concurrency to the average concurrent sessions during the system's peak usage hour on a typical business day, run for 15 minutes to allow the system to stabilize after warm-up, measure p50/p90/p99 latency and error rate after the first 2 minutes of warm-up. This scenario validates that routine operations work correctly under normal conditions and provides the baseline against which regressions are measured. The burst scenario validates that the system handles demand spikes without degrading to the point of user-visible failure: ramp from zero to the typical working-hours peak over 5 minutes, sustain for 10 minutes, then spike to 2–3x the sustained peak for 90 seconds (representing the traffic pattern of a campaign event, an in-app notification to a large user segment, or a batch trigger from multiple customers on the same schedule), then ramp back to the sustained peak. The burst scenario is designed to find the resource contention bugs — connection pool exhaustion, cache stampede, queue saturation — that only manifest when the system is simultaneously handling more concurrent requests than the shared resources are sized for at the sustained peak. The ramp scenario validates that the system transitions gracefully from zero to full load without warm-up failures: start from zero, ramp linearly to the sustained peak over 10 minutes. This scenario validates that JVM JIT compilation, connection pool establishment, and cache warming do not create a startup vulnerability window where the system is unreliable during traffic growth. The soak scenario validates long-term stability under sustained moderate load: run at 50% of the burst target for 60 to 90 minutes. This scenario is designed to find resource leaks — memory that is not released between requests, database connections that are not returned to the pool after error paths, file descriptors that accumulate from logging — that do not manifest in a 10 to 15-minute test but produce degradation over sustained operation. The ADR must specify which scenario types are executed at which pipeline stages. The soak scenario should not block deploys — it runs on a weekly schedule and informs capacity planning rather than releasing decisions. The burst scenario is the highest-value gate for pre-deploy quality, because it is the scenario most likely to catch production incidents before they occur. Each scenario must specify: concurrency level and derivation (how was this number determined — from capacity planning, from analytics data, from worst-case estimates); duration; warm-up period that is excluded from pass/fail measurement; and endpoint distribution (what fraction of synthetic requests go to each endpoint, derived from production traffic distribution rather than uniform distribution unless there is an explicit reason to deviate). Connect to the deployment strategy decision record: the deployment strategy decisions about canary releases, blue-green deployments, and feature flags affect the load testing model — a team that uses canary deployments can gate the canary at 1% traffic while running a targeted load test against the canary environment, limiting blast radius while still testing the new code path under realistic conditions; the load testing model should specify which deployment stages trigger which test scenarios, so that the test suite provides coverage at each stage of the progressive rollout rather than only at the pre-production gate.

Section 2: Test scope model. The test scope model defines which endpoints, services, and dependencies are covered by the load test suite, with explicit documentation of what is intentionally excluded and why. Scope decisions in load testing have asymmetric consequences: including too many endpoints makes the test suite expensive to run and difficult to maintain; excluding key endpoints creates gaps where regressions can ship undetected. The scope model must address three categories. The endpoint coverage model defines which API endpoints, page loads, and operations are included in the test. The practical approach is to categorize endpoints by user-impact tier: tier 1 (primary user experience paths — the homepage, authentication, the core product action, the data retrieval endpoint that powers the main dashboard) must be in every load test scenario; tier 2 (frequently used secondary paths — search, filtering, bulk operations, export) must be in the burst and steady-state scenarios; tier 3 (administrative and infrequent paths — settings, billing management, audit logs) can be omitted from automated load tests and covered by occasional manual performance checks. The endpoint tier assignment must be documented in the ADR so that future engineers adding new endpoints know which tier they belong to and ensure they are added to the appropriate test scenario. The dependency representation model defines how downstream dependencies — the database, the cache, internal microservices, external APIs — are represented in the test. Three options exist: live dependencies in a production-equivalent environment (most accurate, highest infrastructure cost, most complex to maintain), live dependencies with synthetic test data (accurate for concurrency and query plan behavior, requires careful test data management to avoid production data leakage), and mocked/stubbed dependencies (fastest and cheapest to run, eliminates the entire category of dependency-related capacity failures from the test's coverage). The ADR must explicitly state which dependencies are live and which are mocked, and must document the coverage gap for each mocked dependency — what classes of regression the mock cannot detect. Teams that mock the database cannot detect query plan regressions, connection pool exhaustion, or lock contention. Teams that mock the cache cannot detect cache stampede bugs or cache invalidation errors under concurrent load. The exclusion model defines what is explicitly not covered by the load test suite, with the rationale for each exclusion. Explicit exclusions are preferable to implicit gaps: a team that documents "we do not load test the data export endpoint because it is used by fewer than 2% of users and runs asynchronously in a job queue that is separately capacity-planned" has made a deliberate scope decision; a team that simply has not written a test for the data export endpoint has an implicit gap that the next engineer to review the test suite cannot distinguish from a deliberate choice.

Section 3: Pipeline integration model. The pipeline integration model defines at which stages of the development pipeline load tests run, what their pass/fail status gates, and how results are surfaced to the team. The ADR must specify three things. The trigger model defines which pipeline events cause load tests to run: pull request (triggers smoke test only — 60 to 90 seconds, 10 to 20 concurrent users, tier-1 endpoints only); main branch merge (triggers full steady-state and burst scenarios — 15 to 25 minutes, peak concurrency, tier-1 and tier-2 endpoints); pre-deploy to production environment (triggers steady-state scenario against the production environment with synthetic test accounts — validates infrastructure configuration rather than code correctness, since the code has already been validated at merge); scheduled nightly or weekly (triggers soak scenario — 60 to 90 minutes, 50% peak concurrency, all tiers). The blocking model defines which test results block pipeline progression versus post as informational signals. Pull request smoke tests should block merging if they fail — a tier-1 endpoint returning errors or catastrophic latency regression at 10 to 20 concurrent users represents a severe regression that should not merge regardless of other test results. Main branch load tests should block deployment promotion if they fail — the full burst and steady-state test failures indicate a regression that should be investigated before the code reaches production. Pre-deploy environment tests should block the specific deployment if they fail — a failure here often indicates an infrastructure configuration issue in the production environment rather than a code regression, and the deployment should be investigated before proceeding. The environment model defines which infrastructure is used for each test trigger. Pull request smoke tests should run against an ephemeral environment provisioned from the PR branch — this requires ephemeral environment infrastructure but ensures the test runs against the actual PR code without being affected by other concurrent changes. Main branch tests should run against a stable staging environment with production-equivalent infrastructure — same instance types, same database configuration, same caching configuration. The staging environment should be periodically refreshed (weekly or on-demand) to clear accumulated test data that could affect performance characteristics. Connect to the CI/CD pipeline decision record: the pipeline design decisions about ephemeral environment provisioning, parallelism, and test infrastructure determine what is technically feasible for load test pipeline integration; a team that lacks ephemeral environment infrastructure cannot run per-PR load tests against isolated environments; the load testing ADR should acknowledge these constraints and specify the highest feasible integration tier given the current pipeline infrastructure, with a note on what infrastructure investments would enable higher-cadence integration.

Section 4: Pass/fail threshold model. The pass/fail threshold model defines the specific criteria that determine whether a load test run passes or fails. The ADR must specify four threshold types for each test scenario and endpoint tier. The latency budget defines the maximum acceptable p99 response time the test must not exceed. This number should be derived from the user-experience SLO: if the SLO specifies that 99% of requests must complete in under 500ms, the load test p99 threshold for tier-1 endpoints under steady-state load is 500ms. The threshold may be higher for burst scenarios — the SLO may allow temporary latency degradation during exceptional traffic events — but the burst scenario threshold should be explicitly set rather than implicitly inheriting the steady-state threshold. The error rate ceiling defines the maximum fraction of requests that may return 5xx responses during the test. For steady-state scenarios, 0% is the correct target for tier-1 endpoints — a system in normal operation should not be returning server errors. For burst scenarios, a small tolerance (0.1% to 0.5%) may be appropriate if the system is designed to shed load gracefully under exceptional burst conditions; the error rate ceiling for the burst scenario should be set to the graceful degradation ceiling, not to 0% if the architecture includes load shedding mechanisms. The throughput floor defines the minimum request completion rate the system must sustain. This threshold catches a failure mode that absolute latency and error rate thresholds miss: a system that is processing requests extremely slowly may show low error rates (requests complete, they just take a very long time) but fail to sustain the minimum throughput that users need for a functional experience. The relative regression tolerance defines the maximum percentage degradation from the prior baseline that is acceptable before the test fails. This is the most important threshold for catching the class of regressions — ORM library updates, database query plan changes, infrastructure configuration changes — that do not violate absolute thresholds but represent significant degradation from an established baseline. The relative regression tolerance should be set at 20 to 25% for p99 latency and 10 to 15% for p50 latency. A 25% degradation in p99 latency (500ms → 625ms) may or may not indicate a regression worth blocking a deployment for — the team may choose to investigate but allow it to proceed. A 200% degradation in p99 latency (500ms → 1,500ms) definitively indicates a regression that should block deployment and trigger root cause analysis. Implementing relative regression tolerance requires the comparison infrastructure described in the baseline management model (Section 5). Teams that do not store baseline numbers cannot implement relative thresholds. The threshold model must specify all four threshold types for each combination of scenario type (smoke, steady-state, burst, soak) and endpoint tier (tier-1, tier-2) — not a single global threshold that applies uniformly, because the acceptable latency for a bulk export operation (tier-2, long-running by design) is fundamentally different from the acceptable latency for a dashboard load (tier-1, expected to be fast).

Section 5: Measurement and baseline model. The measurement and baseline model defines how load test results are captured, stored, versioned, and surfaced to the team. The model must specify five components. The result storage model defines what data is captured from each test run: p50, p90, p95, p99, and p99.9 latency per endpoint per scenario; error rate per endpoint per scenario; request completion rate (throughput) per endpoint per scenario; concurrency-at-failure (the concurrent user count at which the first latency or error rate threshold was violated, if the scenario ramps to failure); and resource utilization metrics for the application and database tiers (CPU, memory, connection pool utilization, cache hit rate) if the test infrastructure can collect them. The result must be stored indexed by: code commit hash, pipeline run ID, test scenario name, test environment name, and timestamp. The baseline management model defines which stored result becomes the comparison baseline for future runs. The practical approach: the baseline for a main branch merge test is the most recent passing main branch merge test for the same scenario and environment. The baseline for a PR smoke test is the most recent passing main branch baseline (not the most recent PR run, which may itself have an undetected regression). Baselines must be versioned alongside code — when a deliberate architectural change improves or degrades performance (a cache layer is added, a database index is added, a query is rewritten), the new performance profile becomes the new baseline from that commit forward, and the relative regression detection compares against the new baseline rather than the pre-change baseline. Without this versioning, an intentional 50% latency improvement from adding a cache layer will make the new post-cache baseline appear as a 50% improvement, and a subsequent regression back to the original latency will appear as only a 100% regression relative to the cache-accelerated baseline — which correctly identifies the regression but requires the team to understand the commit graph to interpret correctly. The comparison infrastructure model defines how the baseline delta is calculated and surfaced. The comparison should run automatically at the end of each test run and produce a per-endpoint delta report: endpoint name, prior baseline value, current run value, percentage change, pass/fail determination based on the regression tolerance threshold. This report should be surfaced on the PR or deployment pipeline run so that engineers reviewing the test results can see not just "load test passed" but "dashboard endpoint p99 improved 15% from baseline, bulk update endpoint p99 degraded 8% from baseline — within tolerance." The measurement model must include failure investigation triggers: if the relative regression threshold is violated on any endpoint, the comparison report should include the last 5 baseline values for that endpoint (to show whether this is a one-time spike or a gradual trend), the commit hash of the prior baseline (to allow git bisect to find the regression commit), and the specific threshold that was violated (to distinguish a p99 regression from an error rate regression). The trend monitoring model defines how performance trends across releases are reviewed. Individual test results are point-in-time measurements; trend analysis across multiple releases reveals gradual degradation that stays within per-run thresholds. A team whose p99 latency grows from 180ms to 220ms per release will not trigger a 25% single-run regression threshold (each step is 10–15%), but the cumulative degradation over 8 releases is 10x. Weekly trend review of the baseline time series for tier-1 endpoints, flagging any endpoint whose p99 latency has grown by more than 50% over the trailing 90 days relative to its 90-day-ago baseline, provides the signal needed to catch gradual degradation before it compounds into a severe performance deficit. The trend review output should be a one-page summary reviewed in the weekly engineering sync: 3 to 5 endpoints with the largest relative change over the trailing 90 days, the commit range where the change occurred (from the indexed baseline storage), and an owner assignment for investigation if the change exceeds the team's trend threshold.

FAQ

What concurrency level should a load test target, and how should it be derived?

The concurrency target should be derived from the peak concurrent session count in production, not from average daily active users. The two numbers can differ by an order of magnitude. Daily active users (DAU) counts distinct users who perform at least one action per day; it does not measure how many are simultaneously active. Peak concurrent sessions — the maximum number of users with an active session at the same moment — depends on the temporal concentration of your usage pattern. For a B2B SaaS used during working hours in one timezone, 80% of daily sessions occur in a 4-hour window. If you have 1,000 daily active users and your average session is 20 minutes, the queuing theory estimate gives 1,000 × (20 min / 240 min) ≈ 83 concurrent users during the working-hours window. Under a campaign event that doubles DAU to 2,000 users with a 30-minute average session time compressed into a 2-hour spike window, the concurrent estimate becomes 2,000 × (30 min / 120 min) = 500 concurrent users — 6x the steady-state estimate. The load test target should be the peak concurrent session estimate, not the DAU-derived steady-state estimate. Use your analytics data to find the actual peak concurrent session count from your production traffic. If you do not have historical data, derive the target from the worst-case scenario your capacity planning has modeled. Add 50% headroom to that estimate — you want to know where the capacity ceiling is, not just that your current traffic is below it. Set your load test to ramp to the target over 5 minutes, sustain for 10 minutes, then ramp to 150% of target to find where latency begins to degrade nonlinearly. The ramp shape matters: a sudden spike from zero to peak concurrency produces warm-up artifacts (JVM JIT, connection pool establishment, cache population) that can mislead; a gradual ramp that mirrors how your actual traffic peaks gives clearer signal about steady-state performance at each concurrency level.

How should load testing integrate into a CI/CD pipeline without making builds prohibitively slow?

The integration model should match test duration and scope to the pipeline stage. Full-scale load tests are expensive and should not block every code commit. A three-tier model works for most teams. Tier 1: smoke load test on every pull request — 60 to 90 seconds, 10 to 20 concurrent users, 3 to 5 critical endpoints. Purpose: catch catastrophic regressions before the branch is merged. If the smoke test adds 90 seconds to a PR check that already takes 8 minutes, run it in parallel with existing tests to avoid extending total check time. Tier 2: full load test on every main branch merge — 10 to 15 minutes, peak concurrency, all endpoints with established baselines. Run asynchronously — it does not block the merge but posts a result that blocks the next production deployment if a regression is detected. Tier 3: soak test on a weekly schedule — 60 to 90 minutes, 50% of peak concurrency, all endpoints. Its signal is about long-term stability rather than release-specific regressions; results should be reviewed weekly and degradation trends should trigger a P2 investigation before they become incidents. The key principle: not every load test needs to gate every deploy. The question is which regression classes each test tier is designed to catch, and whether the pipeline placement gives the team a chance to respond before those regressions reach production.

What should a load test pass/fail threshold specify, and why are absolute thresholds insufficient?

A pass/fail threshold specification must include at least four components: a latency budget (the p99 response time the test must not exceed), an error rate ceiling (the fraction of requests that may return 5xx errors), a throughput floor (the minimum request completion rate under load), and a baseline regression tolerance (the maximum allowed percentage degradation from the previously stored baseline). The latency budget and error rate ceiling are absolute thresholds — they define what the system must achieve in an objective sense. The baseline regression tolerance is relative — it defines what the system must not regress from relative to its own prior performance. Absolute thresholds are necessary but insufficient because they are sized at definition time against a system's performance profile at that time. If the system was performing at 180ms p99 when the absolute threshold of 3,000ms was set, the threshold provides 2,820ms of unmonitored degradation headroom. A regression from 180ms to 2,400ms — a 13x degradation — will pass an absolute threshold of 3,000ms. A relative threshold of 25% would have caught the regression at approximately 180ms → 225ms and certainly at 180ms → 2,400ms. Implementing relative thresholds requires storing test results in a queryable format — not just pass/fail CI status, but the actual p50/p90/p99 latency and error rate numbers per endpoint, per test run, per code commit — so that the comparison infrastructure can retrieve the baseline and calculate the delta. A team that only stores pass/fail without the underlying numbers cannot implement relative thresholds retroactively; the baseline numbers need to have been captured from previous runs.

How do load testing decisions connect to AI chat sessions and decision preservation?

Load testing decisions are made in AI chat sessions when engineering leads work through questions that feel like technical configuration choices but are actually structural decisions with multi-year consequences: what traffic patterns should the load profile model — steady-state only or burst scenarios too, and if burst, at what concurrency multiple; at what pipeline stage should load tests run — PR, main branch merge, pre-deploy, scheduled, or some combination; what thresholds define pass/fail — absolute latency budgets from the SLO, relative regression tolerance from the baseline, error rate ceiling, throughput floor; and how should baselines be managed — per commit, per release, per environment, and what tooling stores and surfaces the baseline comparison. The reasoning in those sessions — why the team chose to run only tier-2 tests (not tier-1 on every PR) because the CI queue time was already 20 minutes and adding a 90-second smoke test would have blocked delivery velocity at a stage when the team was shipping 8 times per day, with the explicit plan to introduce tier-1 tests after the CI infrastructure was migrated to a faster runner; why the absolute threshold was set at 3,000ms rather than 2,000ms because two endpoints had persistent baseline latency at 1,600ms due to a third-party API dependency and the team did not want to invest in mocking it at that stage — is the substance of the load testing model, more so than the k6 script or the CI configuration YAML that implements it. Running those AI chat sessions through the open-source extractor produces the load testing decision record that allows the next platform engineer to understand why the load test has a 3,000ms absolute threshold (not because 3,000ms was the target, but because two endpoints had an external dependency that made a tighter threshold impractical at the time the test suite was written) and why there is no tier-1 smoke test on PRs (not because the team didn't want one, but because the CI queue time constraint made it counterproductive at the time the decision was made — a constraint that may no longer apply now that the CI infrastructure has been migrated). Without the reasoning session, the next platform engineer sees a 3,000ms threshold and cannot determine whether that number represents a deliberate SLO-derived constraint or an arbitrary number picked because it was round. Those sessions exist in the AI chat history of the platform lead who wrote the first k6 script, not in the threshold configuration parameter that implements the number.

Further reading

  • Capacity planning decision record — the capacity planning decisions about traffic growth models, peak-to-average traffic ratios, and resource provisioning headroom are the upstream inputs to the load test's concurrency target; the two decisions work together — the capacity planning model defines the anticipated production capacity requirement, and the load test validates that the system can meet it; a team that has not done capacity planning for the next milestone has no principled basis for setting the load test concurrency target, and a team that has done capacity planning but has not updated the load test to reflect the planning model's targets is testing against stale assumptions about what production traffic will look like; the load testing ADR should explicitly reference the current capacity planning model and specify how the concurrency target will be updated as the planning model evolves.
  • Performance optimization decision record — the performance optimization decisions about which bottlenecks to address and which architectural patterns to adopt are informed by load test findings; a load test that never creates the conditions where the connection pool exhausts, the cache stampedes, or the queue saturates will not generate the signal that motivates the optimization decisions that would have prevented the production incident; the two decisions form a feedback loop: the load test surfaces the performance ceiling, the optimization decision addresses the bottleneck, and the next load test validates that the optimization resolved the bottleneck without introducing a regression elsewhere; teams that do not run load tests in conditions that reveal real bottlenecks will make optimization decisions based on profiling data from low-concurrency conditions, which may identify different bottlenecks than the ones that matter at production concurrency.
  • SLO and error budget decision record — the latency SLO targets are the logical anchor for the load test's pass/fail threshold; the load test threshold should be derived from the SLO, not set independently; a team whose load test has a 3,000ms absolute threshold but whose SLO requires p99 latency under 500ms has a gap between what the SLO commits to users and what the load test enforces before code ships; reviewing the load test threshold against the SLO at the time the load testing ADR is written ensures that the two decisions are aligned — that the quality gate the team applies to code before it ships reflects the quality standard the team has committed to for code after it ships.
  • Deployment strategy decision record — the deployment strategy decisions about canary releases, blue-green deployments, and feature flags affect the load testing model; a team that uses canary deployments can gate the canary at 1% traffic while running a targeted load test against the canary environment, limiting blast radius while still testing the new code path under realistic conditions; the load testing model should specify which deployment stages trigger which test scenarios so that the test suite provides coverage at each stage of the progressive rollout rather than only at the pre-production gate; a team with a canary deployment strategy but no load test for the canary stage is relying on 1% of real users to be the performance regression detector.
  • CI/CD pipeline decision record — the pipeline design decisions about ephemeral environment provisioning, parallelism, and test infrastructure determine what is technically feasible for load test pipeline integration; a team that lacks ephemeral environment infrastructure cannot run per-PR load tests against isolated environments without risking cross-PR interference; the load testing ADR should acknowledge these constraints and specify the highest feasible integration tier given the current pipeline infrastructure, with a note on what infrastructure investments would enable higher-cadence integration; the CI/CD pipeline ADR and the load testing ADR should be reviewed together when pipeline infrastructure changes are planned, since a CI migration to a faster runner or the addition of ephemeral environment provisioning changes the feasibility of the load testing integration model.
  • Open-source extractor — the reasoning behind load testing decisions lives in AI chat sessions: the initial test script discussion about what concurrency target to use and how to derive it from the team's current user count, the threshold calibration session where the engineer worked through which endpoints had external API dependencies that made tight absolute thresholds impractical, the pipeline integration discussion about whether the CI queue time cost of a per-PR smoke test was justified by the regression detection value given the team's current deployment frequency; these are the conversations that contain the reasoning the next platform engineer needs to understand what the load test was designed to catch, what constraints shaped the initial profile, and what the team explicitly decided not to test and why; running those sessions through the extractor produces the load testing decision record that makes the k6 configuration and CI YAML legible as a set of deliberate decisions rather than a set of defaults that accumulated without explicit trade-off analysis.