dynamo/benchmarks
Harrison Saturley-Hall 3bfd0f9290
chore: bump AIC to 0.7.0rc12 (#7070)
Signed-off-by: Harrison King Saturley-Hall <hsaturleyhal@nvidia.com>
2026-03-08 18:18:49 -04:00
..
burstgpt_loadgen chore: use aiperf utils in prefix synthesizer (#5906) 2026-02-04 12:57:05 -08:00
frontend/scripts/bpf feat(perf): add BPF for frontend perf tracing (#6737) 2026-03-02 11:31:15 -08:00
incluster docs: migrate Fern docs from fern/ into docs/ (#6206) 2026-02-11 16:22:27 -08:00
llm chore: update all copyright headers in repo to 2026 (#5130) 2026-01-02 22:08:23 +00:00
multimodal perf: multimodal benchmark sweep (#6795) 2026-03-04 19:32:03 -08:00
nat_trace feat: NAT telemetry conversion (#6022) 2026-02-05 20:52:43 -08:00
prefix_data_generator fix: scale synthesized data length correctly for expected cache hit stats (#6117) 2026-02-10 12:05:42 -08:00
router docs: fix step numbering in router benchmarking guide (#6988) 2026-03-06 09:06:39 -05:00
sin_load_generator chore: use aiperf utils in prefix synthesizer (#5906) 2026-02-04 12:57:05 -08:00
utils fix: auto-scale request count in benchmarks (#6777) 2026-03-02 17:13:11 -08:00
README.md docs: restructure docs directory and move fern config to fern/ (#6700) 2026-03-01 19:58:22 -08:00
pyproject.toml chore: bump AIC to 0.7.0rc12 (#7070) 2026-03-08 18:18:49 -04: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.