Questions tagged [vegeta]

Vegeta is a versatile HTTP load testing tool built out of a need to drill HTTP services with a constant request rate. It can be used both as a command line utility and a library.

Vegeta is a versatile HTTP load testing tool built out of a need to drill HTTP services with a constant request rate. It can be used both as a command line utility and a library.

16 questions
10
votes
3 answers

Vegeta load test for POST Api

I want to test a few POST APIs using vegeta, but the post payload is not getting send properly. vegeta command: vegeta attack -targets=tmp -rate=1 -duration=1s | tee results.bin | vegeta report tmp file: POST…
Kushal Singh
  • 101
  • 1
  • 4
8
votes
3 answers

Vegeta Load Testing: different body for each POST request in the attack

Is there a way to change the json body in vegeta Post request load tests in vegeta. I want to send a request with a different parameter in the json body for each of the requests. for example if I have POST…
Sakib
  • 1,503
  • 4
  • 26
  • 39
2
votes
1 answer

Sending payload in POST request in Vegeta with custom attacker

So I've seen several posts saying you're supposed to put the targets in a temp file and the body in a .json file, but I need to send lots of random data to my site, and ideally I don't want to be constantly writing new random data to these files…
r.rodriguez
  • 35
  • 1
  • 5
1
vote
0 answers

How to create distributed load testing using vegeta with golang?

I need to distribute the load across multiple client machines(Distributed attacks). I need to do it from the attacker in the go lang script not from pdsh for orchestration. Below is my vegeta script. attacker :=…
Sayuri
  • 11
  • 1
1
vote
0 answers

How to POST multipart/form-data using Vegeta?

I wanted to request POST a image file as multipart/form-data with Vegeta But when I use this code, it didn't work well. As I thought, 'mean of Bytes In' in Vegeta report needed to be over 20000 because of the image size, but it was just 55.00 I…
niddddddfier
  • 397
  • 3
  • 14
1
vote
0 answers

Why would my Netty-based server respond differently to curl HTTP/2 prior knowledge requests and vegeta -h2c requests?

I have a Netty 4.1-based server. I have taken great care to make it be a well-behaved HTTP/2 citizen. Part of this effort involves handling both so-called "prior knowledge" and upgrade-from-HTTP-1.1 scenarios. I have tested my application using…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
1
vote
1 answer

How to POST multi-part/form-data with VEGETA

I am using Vegeta to make POST requests with multi-part/form-data, but running into issues with the actual file not being sent upload.txt POST {url} Authorization: {token} Content-Type: multipart/form-data;…
checkhavoc
  • 11
  • 1
1
vote
1 answer

During load testing how to read the report in terminal

While I'm doing load testing of the golang api there is a report is generated but I don't know what is it and how to read it:- I run the command in terminal echo "GET http://localhost:8080/api" | vegeta attack -rate=100/m | vegeta report then it…
misha
  • 139
  • 1
  • 3
  • 14
0
votes
1 answer

Creating multiple load testing vegeta reports

Question I am using the following targets file GET https://foo.bar.com GET https://bar.foo.com GET https://zoo.lander.com and then issue vegeta attack -targets=targetsFile -duration=2s | tee results.bin | vegeta report I then get an aggregated…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
0
votes
1 answer

How to use tool 'vegeta' in windows

I installed golang latest version (go version go1.17.1 windows/amd64) And I successfully installed vegeta with command go install github.com/tsenart/vegeta@latest But if I command, as I saw in vegeta --help, echo "GET http://localhost:8080/" |…
niddddddfier
  • 397
  • 3
  • 14
0
votes
2 answers

How to get the executable from Github

How to get the exe from https://github.com/tsenart/vegeta/releases in order to test in windows? This says I could find the .exe in this link but I don't. I am trying to load test the apis in windows, as a start. I do no know Golang and this project…
0
votes
2 answers

Grafana to use substraction of two fields in Elasticsearch data source

I have two fields, called 'status_codes' and requests I want to get number of failed requests. My equation is [requests - no of success requests] In the script i wrote something like this _value - doc['@status_codes.200'].value BUT the value…
0
votes
1 answer

How to compile vegeta through dep of go?

I need to compile vegeta (https://github.com/tsenart/vegeta) in order to verify some assumptions. To do that, I have correctly prepared relevant tools including dep and make, but we cannot access golang.org throughout the nation of China, so each…
fengnix
  • 85
  • 6
0
votes
0 answers

How to store a JPG image in HTTP POST payload

Currently I have a simple Flask server that once the user hits the /endpoint it renders an HTML form where she can select an image for upload. Upon clicking on "submit", the server receives the image as a POST request, performs some processing on it…
lfelix
  • 121
  • 4
0
votes
1 answer

Json output from Vegeta HTTP load testing

I am using Vegeta to make some stress test but I am having some trouble while generating a json report. Running the following command I am able to see text results: vegeta attack -targets="./vegeta_sagemaker_True.txt" -rate=10 -duration=2s | vegeta…
briba
  • 2,857
  • 2
  • 31
  • 59
1
2