Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- accessToken="ysDbvAwcIcDCOtC1HcCmChL5wWC6CejRPWD9.ysDjTWC6GsqcTQ1buQqcIcDtxRVfwgZevQfoKAxnSQfmFgHpvMCmChDpvAOcIcDtxRVfwcVbTA1jvcCmCgfbxWC6GNS1HtwtGXarHsqcTRbqCdirHdO3IXY3GdY3FWDbxQKcIcDov2LfFQZqwWD9.zx40Fx-3DDbHZH76Ts-pF6IIMbh5o7TkTi16yh7pfca"
- concureny=10
- timeout="1M"
- requestTime=30
- userAgent="PostmanRuntime/7.29.0"
- contentType="json"
- randomTextUrl="url.txt"
- # siege -v -i -c ${concureny} -r ${requestTime} -t ${timeout} -A ${userAgent} -T ${contentType} -H "Authorization:Bearer $accessToken" -f "$randomTextUrl"
- siege -v -i -c ${concureny} -r ${requestTime} -t ${timeout} -A ${userAgent} -T ${contentType} -f "$randomTextUrl"
- # create url.txt for multiple test request like this
- # https://jsonplaceholder.typicode.com/users
- # https://jsonplaceholder.typicode.com/todos
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement