TS-Scribe - v1.2.0
    Preparing search index...

    Type Alias BenchmarkInfo<T>

    Information provided to BenchmarkOptions.onBenchmarkComplete when a benchmark finishes.

    type BenchmarkInfo<T> = {
        durationMs: number;
        iterations: number;
        label?: string;
        maxMs: number;
        minMs: number;
        result: T;
        resultByteSize: number;
    }

    Type Parameters

    • T
    Index

    Properties

    durationMs: number

    Mean execution duration in milliseconds across all iterations.

    iterations: number

    The number of iterations that were run.

    label?: string

    The label of the benchmark, if provided.

    maxMs: number

    Maximum execution duration in milliseconds across all iterations.

    minMs: number

    Minimum execution duration in milliseconds across all iterations.

    result: T

    The result returned by the final iteration of the benchmarked function.

    resultByteSize: number

    Byte size of the JSON-serialized result from the final iteration.