Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

agentperf-local: Benchmarking AI Agent Performance on Local Machines

The agentperf-local tool measures how quickly a local machine can serve an AI agent, helping users evaluate hardware efficiency for AI workloads.

Share
AI-generated conceptual illustration accompanying: agentperf-local: Benchmarking AI Agent Performance on Local Machines
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Overview and Purpose of agentperf-local

The agentperf-local tool is designed to benchmark how quickly a local machine can serve an AI agent. It provides a way for users to measure the performance of their hardware in handling AI workloads. According to the project's documentation, agentperf-local measures how fast your machine serves an AI agent. This tool is particularly useful for developers and system administrators who want to evaluate the efficiency of their local setup before deploying AI applications. The managed-run feature allows users to download a catalog model, serve it, and then run a benchmark. This process helps in assessing the capabilities of different models on the same hardware, ensuring that users can make informed decisions about model selection and resource allocation.

System Requirements and Deployment Options

The agentperf-local tool requires specific hardware and software configurations depending on the framework used. On Windows, managed runs necessitate an NVIDIA GPU and the llama.cpp library, while vLLM and SGLang are restricted to Linux environments, as noted in the project documentation. To determine which frameworks can serve a specific catalog profile on the current machine, users can run the command deployment-options --profile-id <id>. This command provides a list of compatible frameworks for the specified profile, defaulting to qwen38-27b-q4-k-m if no profile ID is provided. The tool does not automatically install dependencies, so users must ensure their system meets the requirements for the selected framework.

Installation and Execution Methods

The uv tool provides multiple methods for installing and running the agentperf-local benchmarking tool. For a quick start without installation, users can run uvx agentperf-local. For more control, cloning the repository from https://github.com/ArtificialAnalysis/aa-agentperf-local.git and using uv sync followed by uv run agentperf-local is recommended. If working with Rust, an additional step is required: uv sync --extra rust and then uv run agentperf-local tui --client rust. Alternatively, the Rust-specific installation can be done with uv tool install 'agentperf-local[rust]'. These methods ensure flexibility depending on the user's setup and requirements.

Running Benchmarks and Configuration Options

To run benchmarks without the TUI, select a catalog profile and an installed framework using the command: uv run agentperf-local managed-run --profile-id qwen38-27b-q4-k-m --framework llama-cpp --output-dir results/qwen38-27b. This command downloads the model, verifies file integrity via SHA-256, starts a local server, executes the benchmark, and stops the server afterward. If system resources are limited, users can opt for aa-mini-v1, which requires 8,192 context tokens and can be initiated with uv run agentperf-local tui --replay aa-mini-v1, selecting a smaller context size in the Setup screen. Runs with fewer than 65,536 tokens are marked as reduced: true and are not comparable to full-context results, according to the source.

Output and Result Structure

The agentperf-local tool generates structured output in a directory, containing multiple files that detail the performance of a local large language model (LLM). The summary.json file holds key metrics, including output tokens per second, median, and p95 first-token and turn times. Additional files such as turns.jsonl, tasks.json, and failures.json provide granular insights into individual task executions, tool interactions, and any encountered errors. Users must specify a base URL and model name when running the benchmark, with examples provided for llama.cpp, LM Studio, vLLM, and SGLang. The tool also includes security caveats, noting that recorded commands are untrusted input. Scripts for installation and container building are available, though some are limited to specific platforms like arm64 hosts.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more