Performance Testing Baseline
Performance testing goal for Release 1
Run critical API calls and make sure the TPS > 10
Approach We tested the guest payment and user payment flows. These ensures that the critical API flows are tested.
Test results As stripe test mode supports only 20 TPS, so we used K6 tool run 20 guest payment call simultaneously.
Guest Payment Confirm payment happens at stripe end so we wont be covering that. Guest payment call involves three steps.
-
Create Checkout Session
-
Create Payment
-
Poll for payment status to change to 200
All three calls put together we are able to hit 19.5 TPS.
95th Percentile time for the call : 1.48 seconds. To get the individual API response time, we used azure app insights. During the testing window all the API calls response time were below 50ms mark.
Important user facing APIs here:
API | 99th Percentile response time | Call Count |
---|---|---|
POST:/payments | 35.8ms | 1.19k |
GET:/payments | 8.64ms | 16.24k |
POST:/checkout-sessions | 36.3ms | 1.19k |
User (Authenticated) Payment
Within 1 min, we were able to complete 56 payments due to Stripe response times.
There are no performance bottleneck with convenient checkout APIs observed during the test window.
Important user facing APIs here:
API | 99th Percentile response time | Call Count |
---|---|---|
POST:/payments | 22.1ms | 678k |
GET:/payments | 8.64ms | 37.75k |