[ci] add router benchmark script and CI (#7498)

This commit is contained in:
Simo Lin
2025-06-25 01:28:25 -07:00
committed by GitHub
parent afeed46530
commit 3abc30364d
9 changed files with 1461 additions and 0 deletions

View File

@@ -40,6 +40,20 @@ jobs:
cd sgl-router/
cargo test
- name: Check benchmark compilation
run: |
source "$HOME/.cargo/env"
cd sgl-router/
cargo check --benches
- name: Quick benchmark sanity check
timeout-minutes: 10
run: |
source "$HOME/.cargo/env"
cd sgl-router/
# Run quick benchmarks to ensure they work using Python script
python3 scripts/run_benchmarks.py --quick
e2e-python:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on: 2-gpu-runner