-
Notifications
You must be signed in to change notification settings - Fork 22
feat: perf-test for python #813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mainline
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,31 @@ | |||
# ESDK Performance Testing - Python Dependencies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need all these dependencies? A fair amount seem unused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was relying on linter and formatter to fix this, but apparently it didn't. Fixed it now.
|
||
def _create_keyring(self): | ||
"""Create raw AES keyring""" | ||
import secrets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These imports should go up top -- I think the MPL is intended to be required for this project so shouldn't need any special consideration
try: | ||
from aws_encryption_sdk import EncryptionSDKClient, CommitmentPolicy | ||
except ImportError as e: | ||
print(f"Warning: Could not import ESDK modules: {e}") | ||
print("Please install the AWS Encryption SDK: pip install aws-encryption-sdk") | ||
sys.exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can just import this?
try: | |
from aws_encryption_sdk import EncryptionSDKClient, CommitmentPolicy | |
except ImportError as e: | |
print(f"Warning: Could not import ESDK modules: {e}") | |
print("Please install the AWS Encryption SDK: pip install aws-encryption-sdk") | |
sys.exit(1) | |
from aws_encryption_sdk import EncryptionSDKClient, CommitmentPolicy |
"peak_memory_mb": 0.0, | ||
"avg_memory_mb": 0.0, | ||
"cumulative_allocations_mb": 0.0, | ||
"memory_efficiency_ratio": 0.0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a README or similar that explains the results JSON? Some fields are obvious but things like this could use an explanation
Co-authored-by: Lucas McDonald <[email protected]>
Issue #, if available:
Description of changes:
This PR adds a performance tests suite for python. The code was generated by agentic AI and was refactored by author.
Squash/merge commit message, if applicable:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.