How to load test your signup and login endpoints

· 5 min read · QuickInbox team

  • Signup
  • Login
  • Load testing

When a launch goes wrong, it's often the signup or login page that fails first. Here's why, and how to test them before your users do.

Why auth endpoints break first

  • Password hashing is slow on purpose. bcrypt, scrypt and Argon2 are designed to cost CPU. Many logins at once can use all of it.
  • Signups write to the database, often several tables, plus checks for duplicate emails.
  • They call other services: email for verification, sometimes SMS or fraud checks, each with its own limits.

Test signup with varied data

Every signup needs a new email. Use a payload file with one test address per line, so each simulated visitor registers a different user:

loadtest-0001@example.test
loadtest-0002@example.test
loadtest-0003@example.test
...

Then set the request body to use the value, for example { "email": "...", "password": "Correct-Horse-42" } with the email taken from the payload file.

Test login with existing test users

Create a set of test users first (a script against staging is fine), then use their emails in the payload file for the login request. Logging in as one user thousands of times mostly tests your cache and your rate limiter, not real behaviour.

Don't send real emails at load

Put your email provider in sandbox mode or point staging at a test inbox, so a load test doesn't send thousands of real messages and hurt your sender reputation. Separately, with normal traffic, check that verification emails still arrive and work: see email verification in Playwright.

Watch for rate limits

Good auth endpoints have rate limits per IP or per account. During a load test from a few servers, those limits will trigger. Either raise them for staging, or treat the test as a check that your limiter works.

What to measure

  • p95 response time for signup and login separately.
  • Error rate, and which errors (timeouts vs 429 vs 500).
  • Database connections and CPU while the test runs.

Related guides

Run a load test: QuickInbox includes a free test with up to 10,000 simulated visitors. Bigger tests are prepaid, from $3 for 10 small tests, with no monthly fee. See load testing or create a free account.

← All articles