HTTP load generator, ApacheBench (ab) replacement
Go
Merge branch 'data' of github.com:keramidasceid/boom into data
Vasilis Keramidas5a7497f38219
diff --cc commands/boom.goindex 11c161d,11c161d..4818bca--- a/commands/boom.go+++ b/commands/boom.go@@@ -24,9 -24,9 +24,9 @@@ import)type result struct {-- err error-- statusCode int-- duration time.Duration++ err error++ statusCode int++ duration time.DurationContentLength int64}diff --cc commands/print.goindex 911cac5,911cac5..39f1b46--- a/commands/print.go+++ b/commands/print.go@@@ -38,7 -38,7 +38,7 @@@ type report structstatusCodeDist map[int]intlats []float64errors map[string]int-- sizeTotal int64++ sizeTotal int64output string}@@@ -169,7 -169,7 +169,6 @@@ func (r *report) printStatusCodes()}}--func (r *report) printErrors() {fmt.Printf("\nError distribution:\n")for error, num := range r.errors {diff --cc commands/run.goindex 2aebc78,2aebc78..210ef6f--- a/commands/run.go+++ b/commands/run.go@@@ -52,9 -52,9 +52,9 @@@ func (b *Boom) worker(ch chan *http.Reqb.bar.Increment()}b.results <- &result{-- statusCode: code,-- duration: time.Now().Sub(s),-- err: err,++ statusCode: code,++ duration: time.Now().Sub(s),++ err: err,ContentLength: size,}}