k6 Performance Script Generator
Generate a powerful, production-ready Grafana k6 performance testing script without writing a single line of JavaScript. Configure your API endpoint, HTTP method, headers, request body, virtual users (VUs), duration, and pass/fail thresholds in a visual builder. Copy the generated script and run it locally with k6 run.
k6 Script Generator
Visual Load Test Builder
1. API Request
2. Load Configuration
3. Pass/Fail Thresholds
Frequently Asked Questions(click to expand)
How do I run this k6 script?
First, install k6 on your machine. Save the generated script as load-test.js and run the following command in your terminal: k6 run load-test.js
What is a stage vs. virtual users (VUs)?
A basic load test uses a fixed number of Virtual Users (VUs) for a set duration. A staged test allows you to ramp up and ramp down load over time to simulate a real-world spike in traffic. For example: ramp up to 50 users over 1 minute, hold for 5 minutes, then ramp down to 0 over 1 minute.
What are thresholds?
Thresholds are pass/fail criteria for your load test. In this generator, we configure two standard SLOs (Service Level Objectives): ensuring the 95th percentile (p95) response time stays below a target limit, and ensuring the HTTP error rate stays below a specific percentage.