Skip to main content

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.

  1. Create Checkout Session

  2. Create Payment

  3. 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.

GuestAPIresponsetime GuestAPIresponsetime2

Important user facing APIs here:

API99th Percentile response timeCall Count
POST:/payments35.8ms1.19k
GET:/payments8.64ms16.24k
POST:/checkout-sessions36.3ms1.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.

PaymentAPIresponsetime

Important user facing APIs here:

API99th Percentile response timeCall Count
POST:/payments22.1ms678k
GET:/payments8.64ms37.75k