vegeta
vegeta copied to clipboard
Invalid example
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