Load testing

Load test without hitting rate limits

Third-party APIs rate-limit you, charge per call, and fall over under real load test traffic. Mockra gives you a high-throughput mock endpoint that absorbs your full test without flinching.

Start for freeSee pricing
0
Rate limits on mock endpoints
$0
Cost per mock request
< 30s
Time from spec to live endpoint
∞
Concurrent requests supported
The problem
  • ✕Third-party APIs rate-limit load tests after a few hundred requests
  • ✕Sandbox environments weren't built for 10,000 RPS
  • ✕Every test run costs real money in API call fees
  • ✕Sandboxes go down mid-test, invalidating results
  • ✕You can't tune latency to simulate real-world conditions
With Mockra
  • ✓No rate limits — point your full load generator at it
  • ✓Edge infrastructure handles concurrent requests natively
  • ✓Flat monthly cost regardless of request volume on paid plans
  • ✓Mock endpoints don't go down — no flaky test results
  • ✓Configure latency per endpoint to simulate realistic conditions

Drop Mockra into your existing load test

load-test.js — k6
import http from 'k6/http';
import { check, sleep } from 'k6';

export const options = {
  vus: 10000,
  duration: '5m',
};

// Point at Mockra instead of the real API
const BASE_URL = 'https://mock.mockra.io/acme';

export default function () {
  // POST /orders — returns configured mock response
  const res = http.post(`${BASE_URL}/orders`, JSON.stringify({
    product_id: 'prod_123',
    quantity: 1,
  }), { headers: { 'Content-Type': 'application/json' } });

  check(res, {
    'status is 201': (r) => r.status === 201,
    'has order id': (r) => JSON.parse(r.body).id !== undefined,
  });

  sleep(0.1);
}

Change one URL. Your entire k6, Locust, Gatling, or Artillery script works unchanged.

Works with any load testing tool
k6LocustGatlingArtilleryJMeterVegetawrkhey

Run your first load test today

Upload a spec, point your load generator at the mock URL, and go.

Get started for free