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.
Motivation
The simulator gives accurate results, but only when simulating single or sequential operations like one single provide or sequential provides. It doesn't add penalization or extra delay when we want to emulate the performance of many concurrent lookups, provides, or retrievals.
Description
This PR aims to set the basis to emulate the overhead performance of concurrent operations by adding a new argument
gamma
, which will always aggregate a slight delay to the total duration of the operation.This way, if we want to emulate 2 parallel lookups with a given connection delay of 20ms and an overhead of 1ms. The connections for the first lookup will have a total of
20ms
latency, while the second ones will have20+1ms
Tasks
Gamma
parameter to theDHTNetwork
ConnectionError
and theConnection
summary to display the internal connections later onpanda.DataFrames
to make fancier plots)Overhead
resetter to theDHTNetwork
in case we want to emulate multiple concurrent operationsProof of Success