Project | Performance
Performance Testing with Apache JMeter
One JMeter plan with four load profiles (smoke, load, stress, spike) against a ticket-booking API in the same repository. JMeter has no pass or fail for a slow p95, so an SLO gate written in Java reads the results and fails the build, and after the load the plan checks that the limited event was never oversold.
On 28 Nov 2026 the weekly run passed: 47 unit tests, then smoke, load and spike within their SLOs (load: 4,304 bookings, p95 94 ms, no errors), and the stress profile, which looks for the limit: booking p95 1,096 ms at up to 120 users.
Evidence checked 28 Nov 2026 | Scheduled CI run on main
On this page
Problem and purpose
Bookings need one of four payment connections for 40-80 ms, which allows about 66 per second. The stress test found exactly that: past about 54 users throughput stays flat and each extra user only adds waiting. p95 rose from about 90 ms to 1.3 s with no errors, so a check on errors alone would have seen nothing wrong. After the load, the plan also checks that the event with only 101 seats was never oversold.
Architecture
Base load, Burst users, ramp-up and duration come from the profile
Once per user Login
Browse events GET /events (random pick) + GET /events/{id}
Book seats POST /bookings, accepts 201 or 409, counts confirmed seats
Only if booked Check booking
After the test Check no overselling: the API's count against the test's ownTechnology and tools
| Area | Tools |
|---|---|
| Load | Apache JMeter 5.6.3 through the Maven plugin: one .jmx plan, profiles smoke, load, stress and spike in pom.xml |
| Application | A booking API in the repository: login, events, bookings, with four payment connections as the deliberate limit |
| Gate | SloGate in Java reads the results file and fails the build on p95 or error rate per transaction |
| Tests | Java 21, JUnit: 47 unit tests of the API, the seat count under real concurrency, the statistics and the gate |
| CI | GitHub Actions: unit tests and smoke on every push, then load and spike; stress weekly and by hand |
Engineering decisions and approach
- One plan, data-driven load: the flow exists once and a profile changes only the numbers
- Transaction controllers, so results and SLOs speak in business steps, not URLs
- The pass or fail rule is code with its own unit tests, reviewed and versioned
- The API is tested before it is loaded: a load test of a broken API measures nothing
- The smoke profile gates the rest of the pipeline
Test scope and execution approach
Project-specific checks and execution details documented in the repository:
- Stress profile that finds the limit: about 66 bookings per second from about 54 users
- Spike profile: 15 users plus 80 for 20 s, p95 back to normal within 10 s
- Overselling check after every run, against the test's own count of confirmed seats
- JMeter HTML dashboard and an SLO table in every CI job summary
- 60 interview questions on performance testing and JMeter, answered with this project
Results with dated evidence
Historical repository or workflow evidence
Scheduled CI run on main
On 28 Nov 2026 the weekly run passed: 47 unit tests, then smoke, load and spike within their SLOs (load: 4,304 bookings, p95 94 ms, no errors), and the stress profile, which looks for the limit: booking p95 1,096 ms at up to 120 users.
Evidence checked: | Open dated evidence
Evidence explorer
Static screenshots are labelled as images; dated workflow links identify the execution evidence and its check date.
Scheduled CI run, 28 Nov 2026: 47 unit tests passed; load 4,304 bookings with p95 94 ms and no errors; spike p95 781 ms; stress booking p95 1,096 ms at up to 120 users.
Static material from the public repository. The linked verification record was checked 2026-11-28; that date is not a screenshot capture date.
Dated workflow record
Evidence checked 2026-11-28. Open Scheduled CI run on main
Local setup and execution
./mvnw verify # unit tests, then the smoke profile (about a minute)
./mvnw verify -Pload # also -Pstress, -PspikeWorkflow and reports
Known limitations
- The API and its limit are built for this project, so the numbers describe the demo, not a real system
- JMeter thread groups are a closed model: a slow system receives less load, so overload looks milder than with real public traffic
- No soak test and no server-side monitoring
- The API and its limit are built for the project, and JMeter thread groups are a closed model, so overload looks milder than it would with real public traffic.