Skip to content
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

Added a skipFirst option to allow the first X requests to be discounted from the result calculations #201

Merged
merged 17 commits into from
Jul 26, 2020

Conversation

sujitdmello
Copy link
Contributor

The new switch --skipFirst=X will skip the first X requests when doing the timing calculations and histogram. This helps in initial warm-up situations.

Example run:
image

With assistance from @michaelperel

Note one change was due to linting errors in the existing code-base.

@bojand bojand added CLI Issues for ghz CLI enhancement New feature or request labels Jul 15, 2020
@bojand
Copy link
Owner

bojand commented Jul 15, 2020

Hello, thanks for the PR. I see how this can be useful. Can you please add a test for the new options function, and also for the skipFirst functionality in run_test.go; something similar to this test perhaps.

Also it would be helpful to add the new skipFirst flag to options and usage docs for the website.

@sujitdmello
Copy link
Contributor Author

@bojand please re-review PR when you get a chance. The changes you requested have been made.

@bojand bojand merged commit 9e4f6e4 into bojand:master Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Issues for ghz CLI enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants