Running versus suspended for the same VM over the same wall time.
Accessors
Section titled “Accessors”cycles
Section titled “cycles”Get Signature
Section titled “Get Signature”get cycles(): number;Returns
Section titled “Returns”number
Get Signature
Section titled “Get Signature”get hold(): Duration;The wall time both sides cover. Always projected: a comparison is a hypothetical about a hold nobody has taken yet.
Returns
Section titled “Returns”Get Signature
Section titled “Get Signature”get ratio(): string;How many times more the running VM costs, as an exact decimal string.
Returns
Section titled “Returns”string
running
Section titled “running”Get Signature
Section titled “Get Signature”get running(): CostReport;Returns
Section titled “Returns”Get Signature
Section titled “Get Signature”get size(): SizeClass;Returns
Section titled “Returns”suspended
Section titled “suspended”Get Signature
Section titled “Get Signature”get suspended(): CostReport;Returns
Section titled “Returns”Methods
Section titled “Methods”breakEvenSeconds()
Section titled “breakEvenSeconds()”breakEvenSeconds(): string;How long a VM must stay suspended for the cycle to pay for itself, exact, as a string. The number a pool scheduler needs, and the one a “100x cheaper” headline hides.
Returns
Section titled “Returns”string
breakEvenSecondsNumber()
Section titled “breakEvenSecondsNumber()”breakEvenSecondsNumber(): number;The break-even hold as a number. Lossy, and named so.
Seconds, not dollars: no money figure has a numeric accessor anywhere in this file.
Returns
Section titled “Returns”number
perCycle()
Section titled “perCycle()”perCycle(): EstimatedUsd;One suspend/resume: a snapshot write plus a read, per GB.
Without it the honest conclusion inverts — “suspend constantly” reads as free.
Returns
Section titled “Returns”render()
Section titled “render()”render(): string;Returns
Section titled “Returns”string
Provenance
Section titled “Provenance”This page is generated from bindings/microvms-js/index.d.ts by TypeDoc 0.28.20 and typedoc-plugin-markdown 4.13.1, run from site/scripts/gen-reference.mjs on every pnpm run sync, so an edit made here is overwritten by the next run.
To change the page, change the doc comment in the binding’s Rust source, then regenerate the declarations with mise run dts. mise run dts:check fails when the committed file no longer matches the source.