This repo is intended to run benchmark queries against BigQuery.
git clone https://github.com/voltrondata/benchmark-bigquery
Create a new Python 3.8+ virtual environment and install the requirements with:
cd benchmark-bigquery
# Create the virtual environment
python3 -m venv ./venv
# Activate the virtual environment
. ./venv/bin/activate
# Upgrade pip, setuptools, and wheel
pip install --upgrade pip setuptools wheel
# Install the benchmark-bigquery package (in editable mode)
pip install --editable .
Create a .env file in the root folder of the repo - it will be git-ignored for security reasons.
Sample contents:
export GOOGLE_PROJECT_ID="voltron-data-developers"
export DATASET_ID="voltron-data-developers.tpch_10"
gcloud auth application-default login
benchmark-bigquery
Note: this will create a file in the data directory called: "benchmark_results.json" with the query run details.
To see more options:
benchmark-bigquery --help
benchmark-bigquery-convert-output-to-excel
Note: this will create an Excel file in the data directory called: "benchmark_results.xlsx" with the query run details.