Created
May 4, 2025 15:25
-
-
Save msdousti/d901e9beb2cb0daf05ef0402c12513ea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'k6/http'; | |
export const options = { | |
vus: 100, | |
// iterations: 1000, | |
duration: '30s', | |
thresholds: { | |
http_req_failed: [{ | |
threshold: 'rate<0.2', | |
abortOnFail: true, | |
delayAbortEval: '0.5s', | |
}], | |
http_req_duration: [{ | |
threshold: 'p(95) < 200', | |
abortOnFail: true, | |
delayAbortEval: '0.5s', | |
}], | |
}, | |
} | |
export default function() { | |
http.get('http://127.0.0.1:8000'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment