Introduce client side caching benchmark capabilities. Enable rueidis/radix underlying vanilla client selection #31
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.
Client Side Caching and rueidis
The first CSC benchmark utility working as expected using rueidis vanilla client underneath.
-csc
and-rueidis
flag are enabled.Flags that were added concerning CSC:
Sample using rueidis clients without csc
Sample using rueidis clients with CSC enabled
confirmed we don’t burst the shard when csc is enabled and that the commandstats are as expected (1 command per client).
JSON output to store all CSC data
Apart from that, this PR also includes the
--json-out-file
flag that enables storing the results into a json.The json file contains both the command rate, CSC hits rate, CSC evicts rate, and percentiles on the client side.
Here's a sample JSON file:
Confirmation of the same outcomes of using radix (default underlying client) and rueidis.
doing a quick comparison with radix (the previous client) we can see the metrics look similar. -- requires further metrics like resource consumption,etc... but it's a good start.
on the client side the metrics seem similar without CSC for radix and rueidis
RUN with rueidis
RUN with radix v4
CPU and Memory consumption for both variations
CPU
Memory