Grafana k6 is a modern load testing tool built for testing APIs, microservices, and websites.
zopen install k6Create test.js:
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
vus: 10,
duration: '30s',
};
export default function () {
const res = http.get('https://test-api.k6.io/public/crocodiles/');
check(res, { 'status is 200': (r) => r.status === 200 });
sleep(1);
}Run:
k6 run test.jsTag scripts with UTF-8 encoding:
chtag -tc 1208 test.jsgit clone https://github.com/msradam/k6port.git
cd k6port
zopen build- Upstream: https://github.com/grafana/k6
- z/OS port article: https://medium.com/theropod/go-ing-native-porting-grafana-k6-to-z-os-with-go-f7f73267c1c
- Upstream PR: grafana/k6#5548