tinybench - v6.2.5
    Preparing search index...

    Interface Statistics

    Statistics separate describing the samples from inferring about their mean. Location and dispersion use the samples' units (ms for latency, ops/s for throughput), except variance (squared units). Relative margin of error is a percentage; counts and critical values are dimensionless.

    mean, the percentiles, min and max locate the individual samples; variance, sd, aad and mad describe how the samples spread. These are properties of the collected samples, not guarantees about future runs. Percentiles interpolate linearly between order statistics; on small samples the upper percentiles interpolate between the few largest observations, so they are unstable estimates of the tail.

    sem, moe and rme concern the mean of the sampled process. With at least two samples, moe is the half-width of a nominal two-sided 95% confidence interval for the mean, computed with the exact Student's t critical value Statistics.critical for Statistics.df degrees of freedom; with a single sample, moe is 0 and does not define a meaningful confidence interval. Nominal coverage assumes independent samples from a stable regime and an approximately normal sample mean; it can be optimistic under strong skew or regime shifts, especially on small samples. It covers only the sampled process — run-to-run and process-to-process variation is not included.

    interface Statistics {
        aad: number;
        critical: number;
        df: number;
        mad: number;
        max: number;
        mean: number;
        min: number;
        moe: number;
        p50: number;
        p75: number;
        p99: number;
        p995: number;
        p999: number;
        rme: number;
        samples: SortedSamples | undefined;
        samplesCount: number;
        sd: number;
        sem: number;
        variance: number;
    }
    Index
    aad: number

    mean/average absolute deviation from the mean; descriptive dispersion of the samples

    critical: number

    two-sided 95% critical value of Student's t for Statistics.df, approached from above as Statistics.df grows

    df: number

    degrees of freedom: samplesCount - 1; Statistics.critical falls back to one degree of freedom when this is 0

    mad: number

    median absolute deviation, not scaled by the 1.4826 normal-consistency factor; descriptive dispersion of the samples, not an uncertainty estimate

    max: number

    the maximum value

    mean: number

    mean/average

    min: number

    the minimum value

    moe: number

    margin of error: half-width of the nominal two-sided 95% confidence interval for the mean, sem * critical

    p50: number

    p50/median percentile

    p75: number

    p75 percentile

    p99: number

    p99 percentile

    p995: number

    p995 percentile

    p999: number

    p999 percentile

    rme: number

    Relative margin of error in percent: 100 * moe / abs(mean). The confidence-interval half-width for the mean, relative to the mean. Infinity when the mean is zero.

    samples: SortedSamples | undefined

    samples used to calculate the statistics

    samplesCount: number

    samples count

    sd: number

    standard deviation of the samples; descriptive dispersion — for the uncertainty of the mean see Statistics.sem

    sem: number

    standard error of the mean/average (a.k.a. the standard deviation of the distribution of the sample mean/average)

    variance: number

    Sample variance, in squared sample units.