0.1.5 • Published 8 years ago
browser-benchmark v0.1.5
browser-benchmark
Benchmark webpages using puppeteer and Chromium.
Install
Run
yarn add --dev browser-benchmarkor
npm i -D browser-benchmarkBenchmark
Every javascript file in the benchmark directory relative to the execution is treated as a benchmark command.
Every command must export a default async function accepting:
page: puppeteer Page object
args: CLI arguments
timeout: time in msand returning an object with keys which will be used as benchmark key points and as values timings in ms.
Optionally a commandOptions object could be exported, which must be a yargs .options() object.