Skip to content

BenchmarkOptions

This content is not available in your language yet.

Defined in: core/index.ts:3164

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

optional file?: string

Defined in: core/index.ts:3168

File path (one of this or source).


optional filename?: string

Defined in: core/index.ts:3170

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


optional iterations?: number

Defined in: core/index.ts:3178

Number of iterations (default 100).


phases: string[]

Defined in: core/index.ts:3176

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:3166

Source code string (one of this or file).


optional warmup?: number

Defined in: core/index.ts:3180

Warmup iterations (default 10).