Skip to main content
Verify your agent stack meets performance targets — import under 200 ms, heavy deps loaded only when needed.
The user runs a lightweight agent; benchmarks verify import time and lazy-loading stay within targets.

Quick Start

1

Simple Usage

Run the built-in benchmark from the CLI:
2

With Configuration

Add a CI gate that fails on agent-instantiation regressions using the built-in benchmark:
Budgets live in src/praisonai-agents/benchmarks/thresholds.json:

Performance Targets


How It Works

CLI commands

Python benchmark scripts

From the SDK repo:

Configuration Options

Typical results (agent instantiation measured 2026-06-17, see BENCHMARK_RESULTS.md):
As of PR #5630, Agent.__init__ skips the plugin-manager scan entirely when no plugins are registered (the common case), trimming ~18% off init latency and ~21% off function-call count on warmed inits.

Best Practices

output="silent" is the default — zero Rich overhead on the hot path. Keep it for APIs and batch jobs.
Prefer from praisonaiagents import Agent over star imports to minimise load time.
Add the 300 ms assert to your pipeline so lazy-loading regressions fail early.
For embedded or high-volume use, from praisonaiagents.lite import LiteAgent reduces memory further.

Lazy Imports

How lazy loading keeps startup fast

Performance CLI

CLI commands for benchmarking and regression checks

Benchmarks Reference

Full simple_benchmark.py flag reference and thresholds.json schema