For the complete documentation index, see llms.txt. This page is also available as Markdown.

Hello world, but with 1 000 simultaneous calls for 10 minutes straight

Goal

We want to test the scalability of an Hello World Application hosted on Poja by sending 1 000 simultaneous calls for 10 minutes straight using the Artillery Testing Tool.

How-to in 3 steps

Step 1: Install Artillery

Bash
npm install -g artillery@latest

Step 2: Write the test file

Create a YAML file named artillery.yml with the following content to create 1000 Virtual Users (VUs) who will send parallel requests to the /hello endpoint of the application for 600 seconds (10 minutes).

YAML
config:
  target: "https://YOUR_ACTIVE_DEPLOYMENT_URI"
  phases:
    - duration: 600
    - arrivalRate: 1000
scenarios:
  - flow:
    - get:
        url: "/hello"

Step 3: Execute the test

Voilà! The testing tool will create the VUs and send the requests for the specified duration.

Test with a minimal conf application hosted on Poja

We tried launching an Artillery test on a minimal application (with default configuration) hosted on Poja by sending 6000 simultaneous calls for 60 seconds, resulting in a 34ms p95, means 95% of requests have a response time of less than 34ms:

Last updated

Was this helpful?