You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing ghz and running performance testing using the runner library, the runner.WithRunDuration() option is not being honoured in favour of the default TotalRequests set on the runner.
From looking at the docs on the cli tool options, it suggests that when -z (duration) is set, then -n (total requests) is ignored: Docs reference
Altering the value passed to WithRunDuration() does not result in the runner executing the test for any longer, instead the total count of requests sent is always the default value of 200.
The expected behaviour as stated in the docs, would be that the default total requests value is ignored, and the test will run until the value passed to WithRunDuration() has elapsed.
I would expected to see a different number in the runner.Report.Count value when I increment the duration passed.
Environment
OS: macOS 10.14.6
ghz: v0.58.0
Screenshots
N/A
Additional context
Found a similar issue from the past which looks related: #14
The text was updated successfully, but these errors were encountered:
Proto file(s)
List protocol buffer definitions
Command line arguments / config
N/A
Describe the bug
When importing ghz and running performance testing using the
runner
library, therunner.WithRunDuration()
option is not being honoured in favour of the defaultTotalRequests
set on the runner.From looking at the docs on the cli tool options, it suggests that when
-z
(duration) is set, then-n
(total requests) is ignored: Docs referenceAltering the value passed to
WithRunDuration()
does not result in the runner executing the test for any longer, instead the total count of requests sent is always the default value of 200.To Reproduce
Example Setup: With run duration of 1 minute
Output: Total Requests Sent: 200
Next Increase Run duration to 2 minutes
Output: Total Requests Sent: 200
Expected behavior
The expected behaviour as stated in the docs, would be that the default total requests value is ignored, and the test will run until the value passed to
WithRunDuration()
has elapsed.I would expected to see a different number in the
runner.Report.Count
value when I increment the duration passed.Environment
Screenshots
N/A
Additional context
Found a similar issue from the past which looks related: #14
The text was updated successfully, but these errors were encountered: