The fastest way to experience Gatling is to clone a demo project, write a minimal simulation, run it locally, and open the generated HTML report. This page takes you from zero to a working test against the Gatling demo e-commerce API atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/gatling/gatling.io-doc/llms.txt
Use this file to discover all available pages before exploring further.
https://api-ecomm.gatling.io — a safe, public endpoint you can use freely for practice. Choose the Java/Maven path if you work in a JVM ecosystem, or the JavaScript/npm path if you prefer Node.js tooling. Both paths converge at the same engine, the same reporting, and the same Gatling Enterprise platform.
Install Prerequisites and Clone the Demo Project
Before you write a single line of simulation code, verify that your environment meets Gatling’s requirements, then pull down the official demo repository.
- Java (Maven)
- JavaScript (npm)
Requirements: 64-bit OpenJDK LTS (versions 11–25). Java 17 or 21 is recommended. The demo project ships with a Maven Wrapper so you do not need Maven installed separately.
On Windows, replace
./mvnw with mvnw.cmd throughout this guide.Write a Minimal Simulation
Open the file shown below in your IDE or editor and replace its contents with the complete simulation. The simulation has three parts: an HTTP protocol configuration, a scenario that describes a user journey, and an injection profile that controls how virtual users arrive.
- Java
- JavaScript
File:
src/test/java/example/BasicSimulation.javaRun the Test Locally
Execute the simulation from your terminal. Gatling compiles and runs the scenario, printing progress to the console as virtual users execute their requests.When prompted, select During the run you will see a live summary in the terminal showing active users, request counts, and response time statistics updating every few seconds.
- Java (Maven)
- JavaScript (npm)
[1] example.BasicSimulation. The test runs for approximately 60 seconds.To skip the interactive prompt:View the HTML Report
After the test finishes, Gatling prints the path to the generated report in the terminal. Open it in any browser.The report includes:
- Java (Maven)
- JavaScript (npm)
- Response time percentiles (50th, 75th, 95th, 99th) for every request
- Active users over time — visualizes your injection profile
- Requests per second — throughput chart across the test duration
- Success/failure breakdown per request name
What to Explore Next
Installation Guide
Deep-dive into Maven, Gradle, sbt, and npm setup options including standalone bundle and IDE configuration.
First Simulation
Walk through building a simulation step by step — protocol config, scenario, checks, and injection profiles explained.
Low-Code: Postman Import
Convert an existing Postman collection into a Gatling simulation with a few lines of JavaScript.
No-Code GUI Builder
Build and launch a load test from Gatling Enterprise’s point-and-click interface — no code required.