GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - cloudquery/benchmark

BranchesTags
Open more actions menu

Latest commit

 

History

194 Commits
194 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
bench_configs
bench_configs
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
benchmark.py
benchmark.py
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

CloudQuery Benchmark

This is a benchmark for CloudQuery. It is used to measure the performance of CloudQuery.

Prerequisites

  • Python version equal or higher than 3.11
  • CloudQuery CLI installed (see CloudQuery CLI)

Setup

The benchmark will use only the configured sources, and optionally the S3 destination.

AWS Source

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_KEY

Then you can set the AWS_LOCAL_PROFILE environment variable to benchmark to use the benchmark profile, via:

export AWS_LOCAL_PROFILE=benchmark

Alternatively, you can set the AWS_LOCAL_PROFILE environment variable in the bench_configs/source_aws.yml file.

Azure Source

  1. Follow the instructions in Azure Source to authenticate with Azure using environment variables.
  2. Set an AZURE_SUBSCRIPTION_ID environment variable to the Azure subscription ID you want to use for the benchmark, for example:
export AZURE_SUBSCRIPTION_ID=YOUR_AZURE_SUBSCRIPTION_ID

GCP Source

  1. Ensure you have the Google Cloud CLI installed and run gcloud auth application-default login to set up Application Default Credentials.
  2. Set an GCP_PROJECT_ID environment variable to the GCP project ID you want to use for the benchmark, for example:
export GCP_PROJECT_ID=YOUR_GCP_PROJECT_ID

S3 Destination

To 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_PROFILE

Running the benchmark

pip install -r requirements.txt
python benchmark.py

Advanced configuration

To 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.

About

No description, website, or topics provided.

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.