Skip to main content

benchscope

English | 简体中文

A single-process, pip-installable web UI for benchmarking vLLM / SGLang and any OpenAI-compatible inference service.

Introduction

benchscope is a performance-testing tool for LLM inference services. It connects to a vLLM / SGLang (or any OpenAI-compatible) API and runs throughput/latency benchmarks through a clean admin-console style web UI.

  • How it runs — the bench tool (vllm bench serve / sglang.bench_serving) executes as a subprocess on the machine where benchscope is installed. The inference server only needs to expose an OpenAI-compatible API — no server-side plugin required.
  • Live feedback — every concurrency result streams into the table and charts in real time.
  • Single processpip install + one command starts the web server and the built-in front end.

Quick Start

# Install from PyPI
pip install benchscope

# Start (default http://127.0.0.1:8080, opens browser automatically)
benchscope

# Options
benchscope --port 8080 --no-browser

Open the page and:

  1. Confirm the top nav shows Service (app) and Environment (inference) as online.
  2. Go to Settings (top-right) and set the inference service Base URL (any OpenAI-compatible endpoint).
  3. Open the vLLM / SGLang page, choose a model (from /v1/models), a dataset (Random / ShareGPT / Custom) and a concurrency list.
  4. Use Test Progress → Start Test. The Test Results panel updates live with a bilingual table and six curves.
  5. Logs are written under logs/<MMDD-HHMMSS>/ with a benchmark-*.xlsx summary (mean + P99 sheets).

Roadmap

Version Status Scope
1.0.0 🚀 Released Text-model performance testing — dual framework, three datasets, realtime results, logs & xlsx summary, analysis, admin UI
2.0 🔜 Planned Multimodal model performance testing
3.0 Planned Full-modal (audio/video/…) model performance testing
4.0 Planned World-model performance testing
5.0 Planned Accuracy testing on common datasets
6.0 Planned ModelScope official-model comparison & conclusions

Project Structure

benchscope/
├── benchscope/
│   ├── cli.py            # `benchscope` command entry
│   ├── config.py         # config persistence (~/.benchscope/config.json)
│   ├── datasets.py       # ShareGPT download/convert, custom datasets
│   ├── gpu.py            # GPU auto-detect
│   ├── parser.py         # bench output parsing (mean + P99)
│   ├── summary.py        # CSV & xlsx summary generation
│   ├── benches/          # vllm/sglang command building & execution
│   └── server/           # FastAPI + WebSocket + test orchestration
├── web/                  # Vue 3 + Ant Design Vue front-end source
└── tests/                # mock OpenAI server & UI smoke tests

Development

# Backend
python -m benchscope.cli --port 8080 --no-browser

# Frontend (hot-reload, proxies /api and /ws to :8080)
cd web && npm install && npm run dev    # http://127.0.0.1:5173
  • Run the UI without a vLLM/SGLang install: BENCHSCOPE_FAKE_BENCH=1 python -m benchscope.
  • Mock an inference service locally: python tests/mock_openai_server.py (port 8001), then point Base URL to http://127.0.0.1:8001 in Settings.

Open Source

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

benchscope-1.0.1.tar.gz (900.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

benchscope-1.0.1-py3-none-any.whl (914.5 kB view details)

Uploaded Python 3

File details

Details for the file benchscope-1.0.1.tar.gz.

File metadata

  • Download URL: benchscope-1.0.1.tar.gz
  • Upload date:
  • Size: 900.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for benchscope-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4ae2c5d963a0baebc830a9a7c39ae5e5624569e5ea718bdc1a3e3c494e6ffc2a
MD5 8066104adcd080362e67a26eebe0cb7e
BLAKE2b-256 4c42a2351b4d5bb97ef0744f6f497ce578d87e68f4f4f9580913e5f32bb936a8

See more details on using hashes here.

File details

Details for the file benchscope-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: benchscope-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 914.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for benchscope-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e8f0435a6e48591c056831221353f1888b6f686f57caee347da9f69b098b00b
MD5 ccd25e433c200f198b81e1127aff8561
BLAKE2b-256 04553f750e0bc9ea9a813f79ea104b13e95c2bd676ee4dad855985132dff592c

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

This release

1.0.1 This release

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page