Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
Evaluation to analyze the runtime and memory usage of an Agent.
Documentation Index
Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
"""Run `pip install openai agno memory_profiler` to install dependencies."""
from agno.agent import Agent
from agno.eval.performance import PerformanceEval
from agno.models.openai import OpenAIChat
def simple_response():
agent = Agent(
model=OpenAIChat(id="gpt-4o-mini"),
system_message="Be concise, reply with one sentence.",
)
response = agent.run("What is the capital of France?")
return response
simple_response_perf = PerformanceEval(
func=simple_response, num_iterations=1, warmup_runs=0
)
if __name__ == "__main__":
simple_response_perf.run(print_results=True, print_summary=True)
Was this page helpful?