brew install vegeta
go install github.com/rs/jaggr@latest
go install github.com/rs/jplot@latest
You can run the bellow commands on a sixel-supported terminal to perform load attacks while monitoring client metrics in real-time.
echo 'GET http://localhost:8080/' | \
vegeta attack -rate 10 -duration 10m | vegeta encode | \
jaggr @count=rps \
hist\[100,200,300,400,500\]:code \
p25,p50,p95:latency \
sum:bytes_in \
sum:bytes_out | \
jplot rps+code.hist.100+code.hist.200+code.hist.300+code.hist.400+code.hist.500 \
latency.p95+latency.p50+latency.p25 \
bytes_in.sum+bytes_out.sum