You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting thresholds for http_reuqest_duration with NOT the default (p(90), p(95)) will produce undefined in the output.
thresholds: {
// 99.5% of requests should be below 50ms
// 99.99% of requests should be below 100ms
http_req_duration: ["p(99.5)<50", "p(99.99)<100"],
}
However, the threshold works completely fine.
k6 version
k6 v1.0.0-rc1
OS
macOS 15.2 (24C101)
Docker version and image (if applicable)
Steps to reproduce the problem
Setting thresholds for http_reuqest_duration with NOT the default (p(90), p(95)) will produce undefined in the output.
importhttpfrom"k6/http";import{check,sleep}from"k6";exportconstoptions={thresholds: {// 99.5% of requests should be below 50ms// 99.99% of requests should be below 100mshttp_req_duration: ["p(99.5)<50","p(99.99)<100","p(95)<200"],},scenarios: {ping: {executor: "ramping-arrival-rate",preAllocatedVUs: 100,exec: "ping",stages: [{target: 10,duration: "5s"},{target: 5,duration: "2s"},],},},};exportfunctionping(){// let res = http.get("http://host.docker.internal:8888/ping");// let res = http.get("http://localhost:8888/ping");constres=http.get("https://test.k6.io");check(res,{kek: (r)=>r.status===202});sleep(0.3);}
However, the thresholds work completely fine., the issue lies in output.
Expected behaviour
The expected behaviour would be printing the actual result for provided percentiles.
Brief summary
Setting thresholds for
http_reuqest_duration
with NOT the default (p(90), p(95)) will produceundefined
in the output.However, the threshold works completely fine.
k6 version
k6 v1.0.0-rc1
OS
macOS 15.2 (24C101)
Docker version and image (if applicable)
Steps to reproduce the problem
Setting thresholds for
http_reuqest_duration
with NOT the default (p(90), p(95)) will produceundefined
in the output.However, the thresholds work completely fine., the issue lies in output.
Expected behaviour
The expected behaviour would be printing the actual result for provided percentiles.
F.e.
Actual behaviour
The results are undefined:
The text was updated successfully, but these errors were encountered: