Add fixed benchmark subcommand#156
Open
ltungv wants to merge 1 commit into
Open
Conversation
Introduce a new `fixed` benchmarking mode to measure latency and throughput over TCP connections with configurable request schedule and pipeline support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
introduce a new
fixedbenchmarking mode to measure latency and throughput over TCP connections, with configurable request scheduling and pipeline support.reasons
the new
fixedsubcommand changes how latencies are measured. let's consider the following terms for describing system responsiveness:put it simply: response time = wait time + service time
here, the wait time is the time a request spends in a queue before being serviced. with current subcommands, wait time is not measured, and the reported numbers reflect the system's service time. another issue is that the current subcommands send requests as quickly as possible (throttling is based on a semaphore), creating a thundering herd scenario.
the new
fixedsubcommand uses a simple fixed-rate scheduler to pace out requests instead of rushing to send them all at once. each request now comes with a scheduled time, allowing the response time to be measured.see also:
support features
linked issues
related to #153
local checks