% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/starburst-estimate.R
\name{starburst_estimate}
\alias{starburst_estimate}
\title{Estimate Cloud Performance and Cost}
\usage{
starburst_estimate(
  .x,
  .f,
  workers = 10,
  cpu = 2,
  memory = "8GB",
  platform = "X86_64",
  sample_size = 10,
  region = NULL,
  ...
)
}
\arguments{
\item{.x}{A vector or list to iterate over}

\item{.f}{A function to apply to each element}

\item{workers}{Number of parallel workers to estimate for}

\item{cpu}{CPU units per worker (1, 2, 4, 8, or 16)}

\item{memory}{Memory per worker (e.g., "8GB")}

\item{platform}{CPU architecture: "X86_64" (default) or "ARM64" (Graviton3)}

\item{sample_size}{Number of items to run locally for estimation (default: 10)}

\item{region}{AWS region}

\item{...}{Additional arguments passed to .f}
}
\value{
Invisible list with estimates, prints summary to console
}
\description{
Runs a small sample of tasks locally to estimate cloud execution time and cost.
Provides informed prediction before spending money on cloud execution.
}
\examples{
\donttest{
if (starburst_is_configured()) {
  # Estimate before running
  starburst_estimate(1:1000, expensive_function, workers = 50)

  # Then decide whether to proceed
  results <- starburst_map(1:1000, expensive_function, workers = 50)
}
}
}
