“k6 is an open-source load testing tool”
- JSON Parse
- Debug http
- File upload
// 1. init code
- VU (Virtual User), an entity that executes a test and makes requests. These are run concurrently and repeat the test over and over.
- Checks, are like asserts but differ in that they dont halt execution.
- Thresholds, are global pass/fail criteria for k6 to use, this can fail a load test.
- Counter - A metric that cumulatively sums added values.
- Gauge - A metric that stores the min, max and last values added to it.
- Rate - A metric that tracks the percentage of added values that are non-zero.
- Trend - A metric that allows for calculating statistics on the added values (min, max, average and percentiles).
import http from "k6/http";
The following are results based on simple-poll.test.js with status percentage set at
-------------- status percentage 0.1
status percentage 0.1 results its a little confusing as the
✗ are the passes and the
✓ are the failures (except for the checks metric!)
|http_reqs||Difference in iterations and http_reqs|
k6 Browser Recorder can be used to simulate load and generate a baseline test.
JS is great but type safety is great(er) :D