rakyll / hey

HTTP load generator, ApacheBench (ab) replacement
Apache License 2.0
17.63k stars 1.17k forks source link

initial urls file hack #245

Closed marcel808 closed 3 years ago

marcel808 commented 3 years ago

Modifies hey to take a urls file and loops through the content using a goroutine passing the urls to a channel to all of the active worker goroutines. The only goal of this change is to make the requests work with the urls file (e.g. the non file case probably won't work).

Have to turn the creation of the http.Request in hey.go into a closure so we can use alternate url values in the worker go routines (requester.go).

usage:

./hey -c 8 -n 1000 -q 2 -uf results-20210518-115258.csv -disable-redirects   https://s.bluecore.com/123