You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds snapshotters benchmark (that we used to compare performance between overlay and devmapper) and CloudFormation template to run suitable environment for testing (with installed dependencies and prepared devmapper pool and volumes in advance).
I think having these tests are a good idea, but I would prefer the testsuite package not divert from the suite approach. Benchmarks can be implemented in the same way as unit tests and the individual packages can run their own instance of benchmarks. That prevents a single test package needing to import all the snapshotters. You can still run multiple packages in one command still go test -bench=. ./snapshots/overlay ./snapshots/devmapper
The common benchmark code in snapshots/testsuite is fine. The main difference from the unit tests here seems to be how the root is configured, but that could be smarter to allow the individual tests to set a base root.
Updating the unit tests code to support this could be nice too if it is useful for devmapper to use the tests to verify the devmapper configuration.
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
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.
This PR adds snapshotters benchmark (that we used to compare performance between overlay and devmapper) and CloudFormation template to run suitable environment for testing (with installed dependencies and prepared devmapper pool and volumes in advance).
/cc @samuelkarp @nmeyerhans
note: I can remove CF template if you think its unnecessary as its aws specific.
Signed-off-by: Maksym Pavlenko [email protected]