UNPKG

@monstermann/tinybench-pretty-printer

Version:
16 lines (15 loc) 524 B
//#region src/columns/ops.ts function ops(options = {}) { return { header: options?.header ?? "ops/sec", headerAlignment: options?.headerAlignment ?? "center", headerStyle: options?.headerStyle ?? ["bold"], rowAlignment: options?.rowAlignment ?? "right", rowStyle: options?.rowStyle ?? ["blue"], content({ formatCount, task, tasks }) { return formatCount(options.method ?? "shortest", task.result.throughput.mean, tasks.map((task$1) => task$1.result.throughput.mean)); } }; } //#endregion export { ops };