Stress test framework in Go
hammer.go - the client hammer tool
- none session scenario
go run hammer.go -rps 100 -profile profile/event_queue_profile.json
- session scenario
go run hammer.go -rps 100 -type ws_session -size 100
try
go run hammer.go -h
to get all cmd parameters
You have to properly compile/update Go for Linux first
brew install go --HEAD --cross-compile-common
will resolve allGOOS=linux GOARCH=amd64 CGO_ENABLE=0 go build -o hammer.linux hammer.go
- none session scenario
- add or modify existed .json files in /profile, following current format
- session scenario
- create your .go file in /scenario
- follow any *_scenario.go file as example