Skip to main content

Benchmarking & PD ratio planning tool for xPyD proxy

Project description

📖 完整使用指南 → docs/guide.md

xPyD-bench

Benchmarking & PD ratio planning tool for xPyD-proxy.

Features

  • xpyd-bench — Benchmark xPyD proxy with configurable concurrency, request patterns, and both /v1/completions and /v1/chat/completions endpoints

For PD ratio planning, see xPyD-plan.

Install

pip install xpyd-bench

Quick Start

Benchmark

# Run benchmark against a running xPyD proxy
xpyd-bench --target http://localhost:8080 \
           --endpoint chat \
           --concurrency 16 \
           --num-requests 200 \
           --output results.json

# Use completion endpoint
xpyd-bench --target http://localhost:8080 \
           --endpoint completion \
           --concurrency 8 \
           --num-requests 100

Configuration

See examples/ for sample configs and scenarios.

Output Metrics

  • TTFT — Time to first token
  • TPS — Tokens per second (per request & aggregate)
  • Latency — P50 / P90 / P99 end-to-end latency
  • Throughput — Total requests/sec and tokens/sec
  • Error rate — Failed requests count and percentage

License

TBD

Project details


Download files

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

Source Distribution

xpyd_bench-0.1.0.tar.gz (336.9 kB view details)

Uploaded Source

Built Distribution

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

xpyd_bench-0.1.0-py3-none-any.whl (431.7 kB view details)

Uploaded Python 3

File details

Details for the file xpyd_bench-0.1.0.tar.gz.

File metadata

  • Download URL: xpyd_bench-0.1.0.tar.gz
  • Upload date:
  • Size: 336.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for xpyd_bench-0.1.0.tar.gz
Algorithm Hash digest
SHA256 da47be556f9cd7eb3f01e0b014a387e66f0c9d994b24ab18ca972e1bc13b0eca
MD5 0e7c0c598742281edf5ff112c49d9f25
BLAKE2b-256 f73ac096a96dcdf0f824793182f5e630722c5585ced411f7d2309f2f20e3dd06

See more details on using hashes here.

File details

Details for the file xpyd_bench-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xpyd_bench-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 431.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for xpyd_bench-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 064433d800ec962e8b629f5da7649ebca68a200a6991dffd31a75ca92df278b4
MD5 4f8dd1d6b35b86e7ab87db37c019dd23
BLAKE2b-256 279f3a73e0db78057001b75aaa6f26ca349182e2c2e223ae5fe66cdee6b4f814

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page