Interface TaskResult

the task result object

interface TaskResult {
    critical: number;
    df: number;
    error?: Error;
    hz: number;
    latency: Statistics;
    max: number;
    mean: number;
    min: number;
    moe: number;
    p75: number;
    p99: number;
    p995: number;
    p999: number;
    period: number;
    rme: number;
    runtime: JSRuntime | "unknown";
    runtimeVersion: string;
    samples: number[];
    sd: number;
    sem: number;
    throughput: Statistics;
    totalTime: number;
    variance: number;
}

Properties

critical: number

the latency samples critical value

use .latency.critical instead

df: number

the latency samples degrees of freedom

use .latency.df instead

error?: Error

the last task error that was thrown

hz: number

the number of operations per second

use .throughput.mean instead

latency: Statistics

the task latency statistics

max: number

the maximum latency samples value

use .latency.max instead

mean: number

the latency samples mean/average

use .latency.mean instead

min: number

the minimum latency samples value

use .latency.min instead

moe: number

the latency samples margin of error

use .latency.moe instead

p75: number

the latency samples p75 percentile

use .latency.p75 instead

p99: number

the latency samples p99 percentile

use .latency.p99 instead

p995: number

the latency samples p995 percentile

use .latency.p995 instead

p999: number

the latency samples p999 percentile

use .latency.p999 instead

period: number

how long each operation takes (ms)

rme: number

the latency samples relative margin of error

use .latency.rme instead

runtime: JSRuntime | "unknown"

the JavaScript runtime environment

runtimeVersion: string

the JavaScript runtime version

samples: number[]

latency samples (ms)

use .latency.samples instead

sd: number

the latency samples standard deviation

use .latency.sd instead

sem: number

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

use .latency.sem instead

throughput: Statistics

the task throughput statistics

totalTime: number

the time to run the task benchmark cycle (ms)

variance: number

the latency samples variance

use .latency.variance instead