Skip to main content

Type Alias: Result

Result: object

A measurement result.

Type declaration​

average​

average: number

The average duration.

benchmarkName?​

optional benchmarkName: string

The name of the benchmark that produced this result.

failed?​

optional failed: boolean

Whether any run of the benchmark failed.

failureRate?​

optional failureRate: number

The rate of failure, if any.

git?​

optional git: GitInfo

Git information about the repository state when this result was produced.

iterations?​

optional iterations: number

The number of iterations that were run.

label​

label: string

The label of the result. Typically the name of the benchmark or variation.

max​

max: number

The maximum duration.

min​

min: number

The minimum duration.

p95​

p95: number

The 95th percentile duration.

raw​

raw: (number | Error)[]

The raw durations, in order. Used for custom reporters.

subresults?​

optional subresults: Result[]

Subresults, if any. Typically sourced from performance observer.

totalDuration?​

optional totalDuration: number

The total wall-clock duration for all iterations in milliseconds.

variationName?​

optional variationName: string

The name of the variation that produced this result.

Defined in​

src/results.ts:13