Last active
March 20, 2019 10:28
-
-
Save majindageta/df2aedbbbcf9b1bbfbb122085c81aabb to your computer and use it in GitHub Desktop.
This file contains 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
Per effettuare un attacco: | |
`vegeta attack -duration=5s -rate=10 -targets='input.txt' | tee resultsUser.bin` | |
o semplicemente: | |
`vegeta attack -duration=5s -rate=2 -targets='input.txt' | vegeta report` (per visualizzare direttamente il report) | |
il file input.txt sarà cosi (per efficienza scegliere solo una richiesta) | |
``` | |
GET https://gxldsc0bij.execute-api.eu-west-1.amazonaws.com/dev/subjects&includeLikingSessions=true | |
GET https://gxldsc0bij.execute-api.eu-west-1.amazonaws.com/dev/subjects/770f8dd0-2baf-11e9-a7c1-b3c005d4b84e?includeLikingSessions=true | |
GET https://gxldsc0bij.execute-api.eu-west-1.amazonaws.com/dev/users/me/subjects/770f8dd0-2baf-11e9-a7c1-b3c005d4b84e/sessions | |
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydGktbGFiLWFwcHJlY2lhdGlvbi1hcGkiLCJhdWQiOlsicnRpLWxhYi1hcGktY2xpZW50IiwicnRpLWxhYi1jbXMiXSwiVUlEIjoiYzU4NmZhNjFmM2VmNDFhMTg5OThiZDEzYzZhMzIyZmUiLCJVSURTaWduYXR1cmUiOiJDaHZJNFQ5WUh2OFBIdjEwb2ZFVVRENmh3QWs9Iiwic2lnbmF0dXJlVGltZXN0YW1wIjoxNTQ5OTcxMTcyLCJpYXQiOjE1NTAxMzg0OTd9.k77HkQSqWWOGsfGhwcCPfB46fzeWRAPbIjAn0Rcy7Cs | |
GET https://gxldsc0bij.execute-api.eu-west-1.amazonaws.com/dev/users/me/subjects/770f8dd0-2baf-11e9-a7c1-b3c005d4b84e/sessions/13c87310-2bcb-11e9-bbc7-999999999999 | |
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydGktbGFiLWFwcHJlY2lhdGlvbi1hcGkiLCJhdWQiOlsicnRpLWxhYi1hcGktY2xpZW50IiwicnRpLWxhYi1jbXMiXSwiVUlEIjoiYzU4NmZhNjFmM2VmNDFhMTg5OThiZDEzYzZhMzIyZmUiLCJVSURTaWduYXR1cmUiOiJDaHZJNFQ5WUh2OFBIdjEwb2ZFVVRENmh3QWs9Iiwic2lnbmF0dXJlVGltZXN0YW1wIjoxNTQ5OTcxMTcyLCJpYXQiOjE1NTAxMzg0OTd9.k77HkQSqWWOGsfGhwcCPfB46fzeWRAPbIjAn0Rcy7Cs | |
POST https://gxldsc0bij.execute-api.eu-west-1.amazonaws.com/dev/subjects/770f8dd0-2baf-11e9-a7c1-b3c005d4b84e/likingSessions/13c87310-2bcb-11e9-bbc7-0d3cf68d2057/like | |
Authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJydGktbGFiLWFwcHJlY2lhdGlvbi1hcGkiLCJhdWQiOlsicnRpLWxhYi1hcGktY2xpZW50IiwicnRpLWxhYi1jbXMiXSwiVUlEIjoiYzU4NmZhNjFmM2VmNDFhMTg5OThiZDEzYzZhMzIyZmUiLCJVSURTaWduYXR1cmUiOiJDaHZJNFQ5WUh2OFBIdjEwb2ZFVVRENmh3QWs9Iiwic2lnbmF0dXJlVGltZXN0YW1wIjoxNTQ5OTcxMTcyLCJpYXQiOjE1NTAxMzg0OTd9.k77HkQSqWWOGsfGhwcCPfB46fzeWRAPbIjAn0Rcy7Cs | |
@like.json | |
``` | |
per leggere il report | |
`vegeta report results.bin` | |
per generare un plot dei results | |
`vegeta plot results.bin > plot.htm` | |
per le post/put si può mettere il body nel file input | |
`@/path/to/newthing.json` | |
con il path al json del body | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment