Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scripts/import_profiler/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ def _format_stats(title, data, p50, p90, p99, fmt):

def run_master(iterations, target_module, cpu=0, csv_path=None, clear_cache=True, fail_threshold=None, diff_baseline=None, diff_threshold=None):
"""Orchestrates the benchmark."""
# Skip packages/sqlalchemy-bigquery because python_requires restricts to < 3.15
# TODO: Re-enable once Python 3.15 is supported (see issue #17786)
if (target_module == "sqlalchemy.bigquery" or target_module == "sqlalchemy_bigquery") and sys.version_info >= (3, 15):
print(f"\nWARNING: Skipping {target_module} import profiling: python_requires limits support to < 3.15 (see issue #17786)")
print("\nSession import_profiler was successful.")
sys.exit(0)

if iterations < 1:
raise ValueError("Number of iterations must be at least 1.")
times, memories, rss_memories = [], [], []
Expand Down
Loading