HTTP load generator, ApacheBench (ab) replacement
Go
More lightweight progress bar styling.
Burcu Dogan72b0f33008bb
diff --git a/README.md b/README.mdindex 16059b3..53cc9c8 100644--- a/README.md+++ b/README.md@@ -36,7 +36,7 @@ boom supports custom headers, request body and basic authentication. It runs proThis is what happens when you run boom:% boom -n 1000 -c 100 https://google.com- 1000 / 1000 [=======================================================] 100.00 %+ 1000 / 1000 ████████████████████████████████████████████████████████ 100.00 %Summary:Total: 21.1307 secs.diff --git a/commands/run.go b/commands/run.goindex fa6b439..bd36f33 100644--- a/commands/run.go+++ b/commands/run.go@@ -42,7 +42,7 @@ func (b *Boom) init() {}b.results = make(chan *result, b.C)b.jobs = make(chan bool, b.C)- b.bar = pb.StartNew(b.N)+ b.bar = newPb(b.N)b.rpt.statusCodeDist = make(map[int]int)b.rpt.start = time.Now()}@@ -128,3 +128,10 @@ requestLoop:wg.Wait()close(b.results)}++func newPb(size int) *pb.ProgressBar {+ pb.Current = barChar+ pb.BarStart = ""+ pb.BarEnd = ""+ return pb.StartNew(size)+}