Skip to content

Instantly share code, notes, and snippets.

@msdousti
Created May 4, 2025 15:25
Show Gist options
  • Save msdousti/d901e9beb2cb0daf05ef0402c12513ea to your computer and use it in GitHub Desktop.
Save msdousti/d901e9beb2cb0daf05ef0402c12513ea to your computer and use it in GitHub Desktop.
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