tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.51k stars 1.36k forks source link

incorrect latency results ? #340

Closed schandrasekhar closed 6 years ago

schandrasekhar commented 6 years ago

Question

I am running the below code in my local box

echo "GET https://www.google.com" | vegeta attack -duration=1s -rate 1/1s | tee results.bin | vegeta report
Requests      [total, rate]            1, 1.00
Duration      [total, attack, wait]    15.312127947s, 0s, 15.312127947s
Latencies     [mean, 50, 95, 99, max]  15.312127947s, 15.312127947s, 15.312127947s, 15.312127947s, 15.312127947s
Bytes In      [total, mean]            11335, 11335.00
Bytes Out     [total, mean]            0, 0.00
Success       [ratio]                  100.00%
Status Codes  [code:count]             200:1  
Error Set:

I see the latencies is about 15 seconds, am i doing something wrong here ?

tsenart commented 6 years ago

What happens if you do time curl https://www.google.com

schandrasekhar commented 6 years ago

this is what i get for time curl https://www.google.com

real    0m0.175s
user    0m0.030s
sys 0m0.019s
tsenart commented 6 years ago

Maybe try to run the vegeta a few times with different parameters.