Skip to content

brumbrum-it/browser-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browser-benchmark

npm Build Status

Benchmark webpages using puppeteer and Chromium.

Install

Run

yarn add --dev browser-benchmark

or

npm i -D browser-benchmark

Benchmark

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 ms

and 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.

References

About

Benchmark webpages using puppeteer and Chromium

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published