Skip to content

Commit

Permalink
Merge 0cacf3f into 5e16541
Browse files Browse the repository at this point in the history
  • Loading branch information
cheynewallace committed Feb 8, 2017
2 parents 5e16541 + 0cacf3f commit e2d76a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/rack/run
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ URL=http://127.0.0.1:${PORT}/

log "starting example server"
bundle install --quiet
bundle exec unicorn -p ${PORT} -c unicorn.conf &>> /dev/null &
bundle exec unicorn -p ${PORT} -c unicorn.conf &> /dev/null &

# wait until unicorn is available
sleep 1

log "sending requests for 5 seconds"
printf "GET ${URL}\nPOST ${URL}\nDELETE ${URL}" | vegeta attack -duration 5s &>> /dev/null
printf "GET ${URL}\nPOST ${URL}\nDELETE ${URL}" | vegeta attack -duration 5s &> /dev/null

log "printing /metrics"
curl -s "${URL}metrics"

0 comments on commit e2d76a5

Please sign in to comment.