-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new mock client that simulates GET throughput (#723)
* Add a new mock client that simulates GET throughput For performance testing and microbenchmarking, we'd like to be able to separate the S3 service and the CRT datapath from our own client and file system. This mock client can simulate a target network throughput by rate-limiting the `get_object` stream. The goal is to be able to use this client in place of a regular `S3CrtClient` when we want to isolate performance questions. Along the way, I realized we're including the mock client in our release builds, because it's an always-on feature of the client crate. This change therefore also does a little dependency refactoring to remove the mock and failure clients from the non-test dependency closure. I checked this works by seeing that the release binary is a few MBs smaller, and that `strings mount-s3 | grep mock` no longer includes the mock client's symbols. Signed-off-by: James Bornholt <[email protected]> * Adopt mock client as an option in client benchmark Signed-off-by: James Bornholt <[email protected]> * Changelog Signed-off-by: James Bornholt <[email protected]> * Dependency fixes Signed-off-by: James Bornholt <[email protected]> --------- Signed-off-by: James Bornholt <[email protected]>
- Loading branch information
1 parent
e4bdd1c
commit 6dc1351
Showing
9 changed files
with
641 additions
and
57 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.