Snowflake warehouse sizing: speed, credits and the cost of idle time
Bigger warehouses finish faster but burn credits faster too. Run a twelve-query BI refresh at every Snowflake size, see where the money goes, including the idle seconds before auto-suspend, and find the size that is fast enough without paying for nothing.
Interactive simulation. It needs JavaScript; the text below explains what it shows.
What you are looking at
The table holds a refresh of twelve dashboard queries with the time each one takes on an X-Small warehouse. The orange column shows how long each query takes at the size you pick, and the bar chart draws those times side by side so you can see which queries dominate the batch.
The main chart answers the sizing question directly. For every size from X-Small to 4X-Large it plots what one refresh costs. The solid line includes the idle time Snowflake keeps billing until auto-suspend; the dashed line is what the same refresh would cost if the warehouse stopped the moment the last query finished. The vertical marker shows your current size, and the results panel gives the run time, billed seconds, credits, dollars and the share of the bill spent idle.
The algorithm
A Snowflake virtual warehouse is a cluster of compute that runs your queries. Its size sets two things. The credit rate doubles with every step: X-Small uses 1 credit per hour, Small 2, Medium 4, up to 128 for a 4X-Large standard warehouse. The compute doubles too, so a query that parallelises well runs roughly twice as fast one size up.
Roughly is the key word. The scaling efficiency setting says how much of that doubling a query really gets. With an efficiency of 1, each step halves the run time and the cost of the work stays the same at every size, because twice the rate for half the time is the same number of credits. Real queries scale less than that: small queries are dominated by fixed overhead, and some steps of a plan run on one node. With an efficiency of 0.85, each step up makes the query only about 1.8 times faster, so every step up makes the refresh a little more expensive.
Billing adds two rules. Snowflake bills per second, but with a minimum of 60 seconds each time a warehouse starts or resumes. And a running warehouse keeps billing until it has been idle for its auto-suspend period. The simulation adds that idle time to the run time, takes the larger of that and 60 seconds, and multiplies by the hourly credit rate.
A worked example with the defaults: the batch takes 974 seconds on X-Small. On a Medium warehouse (4 credits per hour) at 0.85 efficiency it runs in 300 seconds. With 300 seconds of auto-suspend, 600 seconds are billed, which is 0.67 credits or $2.00 at $3 per credit, and half of that bill is idle time. On X-Small the same refresh costs $1.06 but takes over 16 minutes.
Things to try
- Set the efficiency to 1 and watch the dashed line go flat: with perfect scaling, bigger is faster at no extra cost for the work itself, until the batch is so short that the 60-second minimum makes the largest sizes dearer.
- Lower auto-suspend to 60 seconds: the idle share of the bill falls sharply, especially on large sizes.
- Find the smallest size where the slowest query finishes in under 30 seconds, a common target for interactive dashboards (with the defaults, size 5, a 2X-Large: on X-Large it still takes 30.3 seconds).
- Replace the work column with real X-Small timings from your query history and read off your own cost curve.
- Download the results CSV and compare sizes side by side in a spreadsheet.
How it works in real systems
Teams usually size warehouses by workload: small warehouses for frequent light queries, larger ones for heavy transformations, and a separate warehouse per team so costs can be attributed. Multi-cluster warehouses add clusters for concurrency rather than speed, and query acceleration can offload parts of large scans. Resource monitors cap spending. The same trade-off exists in Databricks SQL warehouses, which are sized in T-shirt sizes billed in DBUs, and in BigQuery, where you buy slots or pay per byte scanned.
Short auto-suspend settings save money on bursty workloads, but each resume costs at least 60 seconds of credits and starts with a cold local cache, so very short settings can cost more for queries that run every few minutes.