Loading

Salesforce Sandbox vs Production Performance: Why Results May Differ

Udgivelsesdato: Jun 2, 2026
Beskrivelse

When testing or benchmarking a Salesforce application, administrators and developers may observe significant performance differences between sandbox and production environments. It is important to understand that sandbox performance is not a reliable benchmark for expected production performance. Do not use sandbox results to predict the behavior of your production org.

Løsning

Sandbox organizations and production organizations exist on different server instances and have different usage patterns. As a result, these environments may differ in several key ways:

Key Reasons for Performance Differences

Hardware Differences Sandbox environments run on different server infrastructure than production. The hardware allocated to sandbox orgs may differ in processing power, memory, and disk input/output (I/O) capacity. Production orgs typically run on higher-tier infrastructure to support business operations.

Data Distribution Production orgs contain real, historical data with established database indexes and cache patterns built up over time. Sandboxes typically contain less data or different data distributions (especially in Developer and Developer Pro sandboxes), which can significantly affect query performance and index effectiveness.

User Load Production orgs typically have many concurrent users, which affects server-side caching and load balancing behavior. Sandbox orgs typically have far fewer concurrent users, which can make certain operations appear faster or slower depending on cache warm-up state.

What This Means for Testing

Asynchronous processing (such as Batch Apex, Queueable jobs, and Scheduled Apex) and database caching are particularly susceptible to environment differences. Use sandboxes for functional validation, code correctness testing, and integration testing — but do not use sandbox timing or throughput numbers to make predictions about production capacity or performance.


Additional resources:

Vidensartikelnummer

000381735

 
Indlæser
Salesforce Help | Article