Skip to content

Commit 33373cb

Browse files
[misc] Move bench_serving into sglang.benchmark (sgl-project#28996)
1 parent f76c6c9 commit 33373cb

14 files changed

Lines changed: 16 additions & 16 deletions

python/sglang/auto_benchmark_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ def build_bench_command(
10951095
command = [
10961096
sys.executable,
10971097
"-m",
1098-
"sglang.bench_serving",
1098+
"sglang.benchmark.serving",
10991099
"--backend",
11001100
backend,
11011101
"--base-url",

python/sglang/test/ascend/test_ascend_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from types import SimpleNamespace
1919
from typing import Awaitable, Callable, NamedTuple, Optional
2020

21-
from sglang.bench_serving import run_benchmark
21+
from sglang.benchmark.serving import run_benchmark
2222
from sglang.srt.utils import kill_process_tree
2323
from sglang.test.test_utils import (
2424
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,

python/sglang/test/ci/ci_stress_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def build_stress_test_command(
6767
command = [
6868
"python3",
6969
"-m",
70-
"sglang.bench_serving",
70+
"sglang.benchmark.serving",
7171
"--backend",
7272
"sglang-oai",
7373
"--base-url",

python/sglang/test/kits/cache_hit_kit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import aiohttp
66
import requests
77

8-
from sglang.bench_serving import RequestFuncOutput
98
from sglang.benchmark.datasets.random import sample_random_requests
9+
from sglang.benchmark.serving import RequestFuncOutput
1010
from sglang.benchmark.utils import get_tokenizer, remove_prefix
1111

1212
AIOHTTP_TIMEOUT = aiohttp.ClientTimeout(total=20 * 60 * 60)

python/sglang/test/mock_model/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from dataclasses import dataclass
66
from typing import Any, Sequence
77

8-
from sglang.bench_serving import run_benchmark
8+
from sglang.benchmark.serving import run_benchmark
99
from sglang.srt.utils import kill_process_tree
1010
from sglang.test.test_utils import (
1111
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,

python/sglang/test/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import torch.nn.functional as F
3232
from PIL import Image
3333

34-
from sglang.bench_serving import run_benchmark
34+
from sglang.benchmark.serving import run_benchmark
3535
from sglang.global_config import global_config
3636
from sglang.srt.environ import envs
3737
from sglang.srt.utils import (

test/manual/dsv4/test_dsv4_pro_mtp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from sglang.bench_one_batch_server import BenchArgs as OneBatchBenchArgs
2424
from sglang.bench_one_batch_server import run_benchmark as run_one_batch_benchmark
25-
from sglang.bench_serving import run_benchmark as run_serving_benchmark
25+
from sglang.benchmark.serving import run_benchmark as run_serving_benchmark
2626
from sglang.srt.server_args import ServerArgs
2727
from sglang.srt.utils import kill_process_tree
2828
from sglang.test.test_utils import (

test/registered/bench_fn/test_bench_serving_functionality.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from http.server import BaseHTTPRequestHandler, HTTPServer
77
from pathlib import Path
88

9-
from sglang.bench_serving import run_benchmark
9+
from sglang.benchmark.serving import run_benchmark
1010
from sglang.benchmark.utils import parse_custom_headers
1111
from sglang.srt.constants import HEALTH_CHECK_RID_PREFIX
1212
from sglang.srt.utils import kill_process_tree

test/registered/bench_fn/test_bench_serving_reasoning_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from argparse import Namespace
1717
from http.server import BaseHTTPRequestHandler, HTTPServer
1818

19-
from sglang.bench_serving import (
19+
from sglang.benchmark.serving import (
2020
RequestFuncInput,
2121
async_request_openai_chat_completions,
2222
calculate_metrics,

0 commit comments

Comments
 (0)