Skip to content

BenchmarkOptions

This content is not available in your language yet.

Defined in: core/index.ts:3206

Benchmark options. One of source or file must be specified.

optional file?: string

Defined in: core/index.ts:3210

File path (one of this or source).


optional filename?: string

Defined in: core/index.ts:3212

filename (used together with source, for extension detection).


optional iterations?: number

Defined in: core/index.ts:3220

Number of iterations (default 100).


phases: string[]

Defined in: core/index.ts:3218

List of profile categories to measure (required, non-empty). e.g. ["parse"], ["scan", "parse", "transform"], ["transform.jsx"]. all / none are not allowed — concrete phase names only.


optional source?: string

Defined in: core/index.ts:3208

Source code string (one of this or file).


optional warmup?: number

Defined in: core/index.ts:3222

Warmup iterations (default 10).