This repo is intended to run benchmark queries against Flight SQL.
git clone https://github.com/gizmodata/benchmark-flight-sql
Create a new Python 3.8+ virtual environment and install the requirements with:
cd benchmark-flight-sql
# 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-snowflake package (in editable mode)
pip install --editable .[dev]
For the following commands - if you running from source and using --editable mode (for development purposes) - you will need to set the PYTHONPATH environment variable as follows:
export PYTHONPATH=$(pwd)/srcCreate a .env file in the root folder of the repo - it will be git-ignored for security reasons.
Sample contents:
FLIGHT_HOSTNAME="localhost"
FLIGHT_PORT="31337"
FLIGHT_CERTIFICATE_VALIDATION="False"
FLIGHT_USERNAME="flight_username"
FLIGHT_PASSWORD="flight_password"
benchmark-flight-sqlNote: this will create a file in the data directory called: "benchmark_results.json" with the query run details.
To see more options:
benchmark-flight-sql --helpbenchmark-flight-sql-convert-output-to-excelNote: this will create an Excel file in the data directory called: "benchmark_results.xlsx" with the query run details.