import { runnerTierRates, PRICING_BASIS, usd } from "~/lib/pricing-display"; /** The compute (i) explanation: why runner sizes cost different amounts, and how compute credit is spent. */ export function ComputeRatesNote() { const tiers = runnerTierRates(); return (
Cloud runners and editors run on Cloudflare Containers. Each size is priced by the resources it reserves:{" "} {usd(PRICING_BASIS.vcpuHour)} per vCPU-hour, {usd(PRICING_BASIS.gibHour)} per GiB-hour of memory and{" "} {usd(PRICING_BASIS.diskGbHour)} per GB-hour of disk, which is Cloudflare's cost times {PRICING_BASIS.markup}. Time is metered per second.
| Size | Resources | Per hour | Credit used |
|---|---|---|---|
| {tier.meter === "compute.editor" ? "editor" : tier.instance} | {tier.vcpu} vCPU, {tier.memoryGib} GiB, {tier.diskGb} GB | {usd(tier.perHour)} | {tier.creditMultiplier.toFixed(2)}x |
Compute credit is sold in standard-1 hours. Larger sizes spend it faster by the multiplier above, so one standard-4 hour uses about {tiers[2]?.creditMultiplier.toFixed(1)} credit hours. Self-hosted runners are free.