mirror of
https://github.com/php/frankenphp.git
synced 2026-03-25 17:42:16 +01:00
21 lines
394 B
JavaScript
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`)
|
|
}
|