ac-bench

Measure it. Then know whether to believe it.

measure runs TypeScript benchmarks in fresh processes and browsers, and decides each comparison —passfailinconclusive — from the spread it measured.

Install, then run every suite
npm install --save-dev @ac-bench/cli @ac-bench/measure-durationnpx measure -c bench.config.ts

Every option at a glance

The measure(1) page explains each one, at its own link.

measure --help, as printed by 0.2.0exit 0
measure --helpUsage: measure [options] [command]Discover and run TypeScript benchmark, latency, and timing filesOptions:  -V, --version                 output the version number  -c, --config <path>           Path to bench config file  --include <pattern>           Glob pattern for bench files (repeatable)                                (default: [])  --exclude <pattern>           Glob pattern to exclude (repeatable) (default:                                [])  --filter <pattern>            Only run conditions/cases whose title/name                                contains this substring (repeatable) (default:                                [])  --list                        List discovered conditions and cases without                                running them  --dry-run                     Alias for --list  --reporter <type>             Reporter to use: table, json, markdown, csv,                                junit, run-json, summary (repeatable) (default:                                [])  --output <path>               Output base name for file reporters  --mode <mode>                 How much rigour to apply: quick, standard or                                rigorous  --order-seed <n>              Reproduce a run's replicate and case ordering                                exactly  --max-total-time <ms>         Stop the run after this many milliseconds,                                retries and cooldown included  --emit-samples                Attach every case's raw samples; they are copied                                across the process boundary  --verbose                     Show every benchmark child's output as it                                happens, and full stack traces  --allow-inconclusive          Exit 0 instead of 2 when a gate is undecided                                (implied by --mode quick)  --baseline <name|path>        Compare with a recorded run: a name filed for                                this environment, or a path (repeatable)                                (default: [])  --save-baseline <name|path>   Record this run as a baseline: a name filed                                under this environment's fingerprint, or a path  --max-regression <fraction>   Fail a case slower than its baseline by more                                than this fraction (0.03 is 3 %)  --allow-foreign-baseline      Compare with another environment's baseline,                                through the config's baseline.normalizeBy  --profile <caseKey>           Re-run one case ("condition > … > case") alone                                under the CPU profiler and attach its profile,                                measuring nothing  --runtime <id>                Measure in this runtime: "node", or a runtime                                plugin's id from the config (repeatable;                                overrides the config's runtimes) (default: [])  --headed                      Show the browsers of browser runtimes                                (debugging; recorded in the archive)  -h, --help                    display help for commandCommands:  gate [options] <archives...>  Evaluate the gates of recorded archives: pools                                them as more executions, prints the gates table                                and exits with the verdicts' code  runtimes [options]            Check every configured runtime: what is                                installed, whether it launches, and the remedy                                of each problem