| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is a benchmark for CloudQuery. It is used to measure the performance of CloudQuery.
The benchmark will use only the configured sources, and optionally the S3 destination.
Set an AWS_LOCAL_PROFILE environment variable to the AWS local profile you want to use for the benchmark.
For example, if your AWS credentials files looks like this:
[default]
aws_access_key_id = YOUR_ACCESS_KEY_ID
aws_secret_access_key = YOUR_SECRET_ACCESS_KEY
[benchmark]
aws_access_key_id = YOUR_ACCESS_KEY_ID
aws_secret_access_key = YOUR_SECRET_ACCESS_KEYThen you can set the AWS_LOCAL_PROFILE environment variable to benchmark to use the benchmark profile, via:
export AWS_LOCAL_PROFILE=benchmarkAlternatively, you can set the AWS_LOCAL_PROFILE environment variable in the bench_configs/source_aws.yml file.
export AZURE_SUBSCRIPTION_ID=YOUR_AZURE_SUBSCRIPTION_IDexport GCP_PROJECT_ID=YOUR_GCP_PROJECT_IDTo enable sending data to S3, set the following environment variables:
export S3_BUCKET_NAME=YOUR_S3_BUCKET_NAME
export S3_REGION=YOUR_S3_REGION
export S3_LOCAL_PROFILE=YOUR_S3_LOCAL_PROFILEpip install -r requirements.txt
python benchmark.pyTo generate enough resources to sync, we use the CQ_DEBUG_SYNC_MULTIPLIER to simulate more API calls to AWS, GCP and Azure. You can update the code to generate more or less resources if you'd like.
| Back | FazBrowse Home | New Git URL |