Files
archived-frankenphp/testdata/performance/hello-world.js
Alliballibaba2 072151dfee feat: Adds automatic thread scaling at runtime and php_ini configuration in Caddyfile (#1266)
Adds option to scale threads at runtime

Adds php_ini configuration in Caddyfile
2025-02-19 20:39:33 +01:00

21 lines
394 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`)
}