Skip to content

show realtime QPS when Bombarding #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pugwoo opened this issue Dec 18, 2018 · 1 comment
Closed

show realtime QPS when Bombarding #42

pugwoo opened this issue Dec 18, 2018 · 1 comment
Milestone

Comments

@pugwoo
Copy link

pugwoo commented Dec 18, 2018

beside the processing bar, thanks

@codesenberg codesenberg added this to the Unplanned milestone Dec 18, 2018
@codesenberg
Copy link
Owner

Sure, looks doable, but the library bombardier uses for progress bar does not seem to provide any easy way to do this with tests limited by time. Fairly trivial to turn on for tests with capped request count. Here's the patch if you want to check it out:

diff --git a/bombardier.go b/bombardier.go
index a0b4fbf..b686cd2 100644
--- a/bombardier.go
+++ b/bombardier.go
@@ -70,6 +70,7 @@ func newBombardier(c config) (*bombardier, error) {

        if b.conf.testType() == counted {
                b.bar = pb.New64(int64(*b.conf.numReqs))
+               b.bar.ShowSpeed = true
        } else if b.conf.testType() == timed {
                b.bar = pb.New64(b.conf.duration.Nanoseconds() / 1e9)
                b.bar.ShowCounters = false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants