Files
Kévin Dunglas 52a0be5728 feat(ext): expose GoValue() and PHPValue() functions (#1877)
* feat(ext): expose a GoValue function

* GoValue()
2025-09-15 16:25:11 +02:00

21 lines
400 B
JavaScript

import http from "k6/http";
/**
* 'Hello world' tests the raw server performance.
*/
export const options = {
stages: [
{ duration: "5s", target: 100 },
{ duration: "20s", target: 400 },
{ duration: "5s", target: 0 },
],
thresholds: {
http_req_failed: ["rate<0.01"],
},
};
/* global __ENV */
export default function () {
http.get(`${__ENV.CADDY_HOSTNAME}/sleep.php`);
}