Quick Start
Performance Targets
| Metric | Target | Hard fail | Description |
|---|---|---|---|
| Import time | < 200 ms | > 300 ms | Time to import praisonaiagents |
| Memory usage | < 30 MB | > 45 MB | Memory after import |
| Lazy imports | All lazy | Any eager | Heavy deps not loaded at import |
How It Works
CLI commands
Python benchmark scripts
From the SDK repo:Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
output | str | "silent" | Silent mode avoids loading Rich at import |
| Import gate | CI threshold | 300 ms | Hard fail limit for CI pipelines |
| Lazy modules | sys.modules check | — | litellm, chromadb, mem0, requests |
| Metric | Target | Typical |
|---|---|---|
| Import time | < 200 ms | ~140 ms |
| Agent instantiation | < 50 μs | ~8 μs |
| Memory per agent | < 10 KB | ~4 KB |
| Heavy deps | Lazy | Lazy |
Best Practices
Use silent output in production
Use silent output in production
output="silent" is the default — zero Rich overhead on the hot path. Keep it for APIs and batch jobs.Import only what you need
Import only what you need
Prefer
from praisonaiagents import Agent over star imports to minimise load time.Gate CI on import time
Gate CI on import time
Add the 300 ms assert to your pipeline so lazy-loading regressions fail early.
Use LiteAgent for minimal footprint
Use LiteAgent for minimal footprint
For embedded or high-volume use,
from praisonaiagents.lite import LiteAgent reduces memory further.Related
Lazy Imports
How lazy loading keeps startup fast
Performance CLI
CLI commands for benchmarking and regression checks

