---
schema_version: "1"
id: 7099070938ac33cd768f4a2e0323c84633893be51eb164eec324af17b6fdf7c9
title: Evaluate Prompts with Performance Insights
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_performance_insights_metrics.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_performance_insights_metrics.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9529bda6609290341e00161c48ce1197a06ab4ac1239de0a9da0824d2c7c5acc
description: Analyze model generation metrics and related insights directly in Prompt Builder to understand performance, token usage, and masked data when testing your prompt templates.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Evaluate Prompts with Performance Insights

Analyze model generation metrics and related insights directly in Prompt Builder to understand performance, token usage, and masked data when testing your prompt templates.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations</td></tr></tbody></table>

Prompt Builder includes a centralized Performance Insights panel that shows how your prompt runs, how tokens are calculated, and what processing occurs behind the scenes.

The panel is accessible alongside Preview settings and consolidates key performance data into one location.

## Performance Insights Panel Overview

The panel surfaces performance metrics associated with prompt preview and generation. After you run Preview, you can view:

- Response Time (Latency)
- Token Usage
- Masked Values

## Response Time (Latency)

Response Time displays the total time required to complete a generation. This section includes:

- Retrieving prompt metadata
- Retrieving required data (such as objects and flows)
- Hydrating merge fields with actual data
- Summarization (if the prompt exceeds the model’s context window)
- Masking sensitive fields
- Generating the response
- Other (accounts for minor processing time outside of the previously listed steps)

Understanding the breakdown in response time helps to identify performance bottlenecks, such as excessive data retrieval, understand how model selection impacts generation speed, and gain visibility into background processing such as summarization.

## Token Usage

Token Usage displays the total number of tokens used during generation. Token usage is divided into the following categories:

- Total Tokens: The Input and Output tokens
- Input Tokens: All content sent to the model
- Output Tokens: The model-generated response

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)

Important Individual input components are shown as approximations. The total token count comes from the LLM Gateway and reflects billing-calculated values. Token counts affect billing when prompts run outside of Preview. Billing is calculated based on total token usage that includes input and output.

## Masked Values

Masked data is displayed within the Performance Insights panel. There you can view a list of masked fields and confirm that masked data wasn’t sent to the model.

- **[View Performance Insights in Prompt Builder](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_view_performance.htm&release=264.0.0&type=5)**  
    Evaluate key generation metrics like response time, token usage, and masked values directly in Prompt Builder to understand how your prompt runs.

#### See Also

- [_Salesforce Help_: Change LLM Configurations in Prompt Templates](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_changing_llm_configurations.htm&language=en_US)
- [_Salesforce Help_: Use Multiple Versions of a Prompt Template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_use_multiple_versions.htm&language=en_US)