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.
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:
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.
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:
000381735

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.