Skip to content

armgit / hey

Public Imported from GitHub
0

HTTP load generator, ApacheBench (ab) replacement

Go

Merge branch 'data' of github.com:keramidasceid/boom into data

Vasilis Keramidas5a7497f38219
diff --cc commands/boom.go
index 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.Duration
ContentLength int64
}
diff --cc commands/print.go
index 911cac5,911cac5..39f1b46
--- a/commands/print.go
+++ b/commands/print.go
@@@ -38,7 -38,7 +38,7 @@@ type report struct
statusCodeDist map[int]int
lats []float64
errors map[string]int
-- sizeTotal int64
++ sizeTotal int64
output 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.go
index 2aebc78,2aebc78..210ef6f
--- a/commands/run.go
+++ b/commands/run.go
@@@ -52,9 -52,9 +52,9 @@@ func (b *Boom) worker(ch chan *http.Req
b.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,
}
}