Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
bde73ee4
Unverified
Commit
bde73ee4
authored
Sep 05, 2025
by
Simo Lin
Committed by
GitHub
Sep 05, 2025
Browse files
[router] add rust cache in benchmark ci (#10080)
parent
4f0e28d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
44 deletions
+29
-44
.github/workflows/pr-benchmark-rust.yml
.github/workflows/pr-benchmark-rust.yml
+28
-44
sgl-router/README.md
sgl-router/README.md
+1
-0
No files found.
.github/workflows/pr-benchmark-rust.yml
View file @
bde73ee4
...
@@ -37,18 +37,14 @@ jobs:
...
@@ -37,18 +37,14 @@ jobs:
uses
:
mozilla-actions/sccache-action@v0.0.3
uses
:
mozilla-actions/sccache-action@v0.0.3
continue-on-error
:
true
continue-on-error
:
true
-
name
:
Cache Rust dependencies
-
name
:
Rust cache
uses
:
actions/
cache@v
4
uses
:
Swatinem/rust-
cache@v
2
with
:
with
:
path
:
|
workspaces
:
sgl-router
~/.cargo/bin/
# Share cache across all benchmark jobs
~/.cargo/registry/index/
shared-key
:
"
rust-cache"
~/.cargo/registry/cache/
# Save cache even on failure
~/.cargo/git/db/
save-if
:
true
sgl-router/target/
key
:
${{ runner.os }}-cargo-${{ hashFiles('sgl-router/Cargo.lock') }}
restore-keys
:
|
${{ runner.os }}-cargo-
-
name
:
Check benchmarks compile
-
name
:
Check benchmarks compile
run
:
|
run
:
|
...
@@ -96,18 +92,14 @@ jobs:
...
@@ -96,18 +92,14 @@ jobs:
uses
:
mozilla-actions/sccache-action@v0.0.3
uses
:
mozilla-actions/sccache-action@v0.0.3
continue-on-error
:
true
continue-on-error
:
true
-
name
:
Cache Rust dependencies
-
name
:
Rust cache
uses
:
actions/
cache@v
4
uses
:
Swatinem/rust-
cache@v
2
with
:
with
:
path
:
|
workspaces
:
sgl-router
~/.cargo/bin/
# Share cache across all benchmark jobs
~/.cargo/registry/index/
shared-key
:
"
rust-cache"
~/.cargo/registry/cache/
# Save cache even on failure
~/.cargo/git/db/
save-if
:
true
sgl-router/target/
key
:
${{ runner.os }}-cargo-${{ hashFiles('sgl-router/Cargo.lock') }}
restore-keys
:
|
${{ runner.os }}-cargo-
-
name
:
Run request processing benchmark
-
name
:
Run request processing benchmark
timeout-minutes
:
30
timeout-minutes
:
30
...
@@ -164,18 +156,14 @@ jobs:
...
@@ -164,18 +156,14 @@ jobs:
uses
:
mozilla-actions/sccache-action@v0.0.3
uses
:
mozilla-actions/sccache-action@v0.0.3
continue-on-error
:
true
continue-on-error
:
true
-
name
:
Cache Rust dependencies
-
name
:
Rust cache
uses
:
actions/
cache@v
4
uses
:
Swatinem/rust-
cache@v
2
with
:
with
:
path
:
|
workspaces
:
sgl-router
~/.cargo/bin/
# Share cache across all benchmark jobs
~/.cargo/registry/index/
shared-key
:
"
rust-cache"
~/.cargo/registry/cache/
# Save cache even on failure
~/.cargo/git/db/
save-if
:
true
sgl-router/target/
key
:
${{ runner.os }}-cargo-${{ hashFiles('sgl-router/Cargo.lock') }}
restore-keys
:
|
${{ runner.os }}-cargo-
-
name
:
Run tokenizer benchmark
-
name
:
Run tokenizer benchmark
timeout-minutes
:
30
timeout-minutes
:
30
...
@@ -231,18 +219,14 @@ jobs:
...
@@ -231,18 +219,14 @@ jobs:
uses
:
mozilla-actions/sccache-action@v0.0.3
uses
:
mozilla-actions/sccache-action@v0.0.3
continue-on-error
:
true
continue-on-error
:
true
-
name
:
Cache Rust dependencies
-
name
:
Rust cache
uses
:
actions/
cache@v
4
uses
:
Swatinem/rust-
cache@v
2
with
:
with
:
path
:
|
workspaces
:
sgl-router
~/.cargo/bin/
# Share cache across all benchmark jobs
~/.cargo/registry/index/
shared-key
:
"
rust-cache"
~/.cargo/registry/cache/
# Save cache even on failure
~/.cargo/git/db/
save-if
:
true
sgl-router/target/
key
:
${{ runner.os }}-cargo-${{ hashFiles('sgl-router/Cargo.lock') }}
restore-keys
:
|
${{ runner.os }}-cargo-
-
name
:
Run tool parser benchmark
-
name
:
Run tool parser benchmark
timeout-minutes
:
30
timeout-minutes
:
30
...
...
sgl-router/README.md
View file @
bde73ee4
...
@@ -45,6 +45,7 @@ python -m build && pip install --force-reinstall dist/*.whl
...
@@ -45,6 +45,7 @@ python -m build && pip install --force-reinstall dist/*.whl
#### Option B: Development Mode
#### Option B: Development Mode
```
bash
```
bash
# Currently broken
pip
install
-e
.
pip
install
-e
.
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment