Skip to content

tools/benchmark: support limit flag for range#15948

Merged
ahrtr merged 1 commit intoetcd-io:mainfrom
fuweid:support-limit-for-range-benchmark
May 25, 2023
Merged

tools/benchmark: support limit flag for range#15948
ahrtr merged 1 commit intoetcd-io:mainfrom
fuweid:support-limit-for-range-benchmark

Conversation

@fuweid
Copy link
Copy Markdown
Member

@fuweid fuweid commented May 25, 2023

With limit flag, we can verify the performance for the pagination.

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

Comment thread tools/benchmark/cmd/range.go Outdated
rangeCmd.Flags().IntVar(&rangeRate, "rate", 0, "Maximum range requests per second (0 is no limit)")
rangeCmd.Flags().IntVar(&rangeTotal, "total", 10000, "Total number of range requests")
rangeCmd.Flags().StringVar(&rangeConsistency, "consistency", "l", "Linearizable(l) or Serializable(s)")
rangeCmd.Flags().Int64Var(&rangeLimit, "limit", 0, "Maximum result number for range request (0 is no limit)")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comment:

Suggested change
rangeCmd.Flags().Int64Var(&rangeLimit, "limit", 0, "Maximum result number for range request (0 is no limit)")
rangeCmd.Flags().Int64Var(&rangeLimit, "limit", 0, "Maximum number of results to return from range request (0 is no limit)")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thanks!

With limit flag, we can verify the performance for the pagination.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@fuweid fuweid force-pushed the support-limit-for-range-benchmark branch from b4e13bd to b365f3c Compare May 25, 2023 07:26
Copy link
Copy Markdown
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks.

Copy link
Copy Markdown
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ahrtr ahrtr merged commit e11dee6 into etcd-io:main May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants