tsenart / vegeta

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

Invalid example #607

Open kazimir-malevich opened 1 year ago

kazimir-malevich commented 1 year ago

Version and Runtime

~ $ vegeta -version
Version: 12.8.4
Commit: 
Runtime: go1.17.2 darwin/arm64
Date: 2020-10-11T10:37:33Z

Expected Behaviour

An example has been given that is not valid

Actual Behaviour

Returns

encode: can't detect encoding of "results.1.bin"

Steps to Reproduce

#!/bin/bash                                                                                                                                                                       

echo "GET https://www.stage.bbc.co.uk/" | vegeta attack -duration=5s -rate=10/s > results.gob                                                                                     
echo "GET https://www.stage.bbc.co.uk/" | vegeta attack -duration=5s -rate=100/s | vegeta encode > results.json                                                                   
vegeta report results.* 

The actual example given starts here: https://github.com/tsenart/vegeta/blob/d73edf2bc2663d83848da2a97a8401a7ed1440bc/encode.go#L50