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
88342607
Unverified
Commit
88342607
authored
Nov 04, 2025
by
fzyzcjy
Committed by
GitHub
Nov 03, 2025
Browse files
Super tiny dump server info such as args in bench for post analysis (#12550)
parent
fd7a72d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
python/sglang/bench_serving.py
python/sglang/bench_serving.py
+5
-0
No files found.
python/sglang/bench_serving.py
View file @
88342607
...
...
@@ -2039,6 +2039,9 @@ async def benchmark(
print
(
"{:<40} {:<10.2f}"
.
format
(
"Max ITL (ms):"
,
metrics
.
max_itl_ms
))
print
(
"="
*
50
)
resp
=
requests
.
get
(
base_url
+
"/get_server_info"
,
headers
=
get_auth_headers
())
server_info
=
resp
.
json
()
if
resp
.
status_code
==
200
else
None
if
(
metrics
.
median_ttft_ms
is
not
None
and
metrics
.
mean_itl_ms
is
not
None
...
...
@@ -2055,6 +2058,8 @@ async def benchmark(
"random_input_len"
:
args
.
random_input_len
,
"random_output_len"
:
args
.
random_output_len
,
"random_range_ratio"
:
args
.
random_range_ratio
,
# Information
"server_info"
:
server_info
,
# Results
"duration"
:
benchmark_duration
,
"completed"
:
metrics
.
completed
,
...
...
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