dynamo/benchmarks
hhzhang16 fa6a7f94d5
feat: remove PVC logic from profiler planner (#4210)
Signed-off-by: Hannah Zhang <hannahz@nvidia.com>
Signed-off-by: hongkuanz <hongkuanz@nvidia.com>
Co-authored-by: hongkuanz <hongkuanz@nvidia.com>
2025-11-10 18:33:23 +00:00
..
burstgpt_loadgen fix: minor robustness improvement for datagen analyze (#3483) 2025-10-08 09:18:56 -07:00
incluster feat: remove deploy/utils rbac (#3771) 2025-10-21 16:27:29 -07:00
llm fix: update invalid AIPerf scripts and parsing logic (#3675) 2025-10-16 13:30:11 -07:00
prefix_data_generator fix: minor robustness improvement for datagen analyze (#3483) 2025-10-08 09:18:56 -07:00
profiler feat: remove PVC logic from profiler planner (#4210) 2025-11-10 18:33:23 +00:00
router chore: trtllm use unified frontend (#4097) 2025-11-05 06:33:22 +00:00
sin_load_generator fix: update invalid AIPerf scripts and parsing logic (#3675) 2025-10-16 13:30:11 -07:00
utils fix: remove invalid aiperf args (#3710) 2025-10-17 14:36:34 -07:00
README.md refactor: move backend deploy, launch and slurm files from components to examples (#3849) 2025-10-31 13:09:46 -04:00
pyproject.toml chore: bump ai-configurator version in container to make gradio install optional (#4106) 2025-11-04 16:29:42 -08:00

README.md

Benchmarks

This directory contains benchmarking scripts and tools for performance evaluation of Dynamo deployments. The benchmarking framework is a wrapper around aiperf that makes it easy to benchmark DynamoGraphDeployments or other deployments with exposed endpoints.

Quick Start

Benchmark a Dynamo Deployment

First, deploy your DynamoGraphDeployment using the deployment documentation, then:

# Port-forward your deployment to http://localhost:8000
kubectl port-forward -n <namespace> svc/<frontend-service-name> 8000:8000 > /dev/null 2>&1 &

# Run benchmark
python3 -m benchmarks.utils.benchmark \
    --benchmark-name my-benchmark \
    --endpoint-url http://localhost:8000 \
    --model "<your-model>"

# Generate plots
python3 -m benchmarks.utils.plot --data-dir ./benchmarks/results

# Or plot only specific benchmark experiments
python3 -m benchmarks.utils.plot --data-dir ./benchmarks/results --benchmark-name my-benchmark

Features

Benchmark any HTTP endpoints! The benchmarking framework supports:

Flexible Configuration:

  • User-defined benchmark names using --benchmark-name flag
  • Support for single endpoint benchmarking with --endpoint-url flag
  • Customizable concurrency levels (configurable via CONCURRENCIES env var), sequence lengths, and models
  • Automated performance plot generation with custom benchmark names

Supported Backends:

  • DynamoGraphDeployments with port-forwarded endpoints
  • External HTTP endpoints (for comparison with non-Dynamo backends or platforms)

Installation

This is already included as part of the Dynamo container images. To install locally or standalone:

pip install -e .

Data Generation Tools

This directory also includes lightweight tools for:

  • Analyzing prefix-structured data (datagen analyze)
  • Synthesizing structured data customizable for testing purposes (datagen synthesize)

Detailed information is provided in the prefix_data_generator directory.

Comprehensive Guide

For detailed documentation, configuration options, and advanced usage, see the complete benchmarking guide.