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
npm install -g artillery@latestStep 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).
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.
Last updated
Was this helpful?
