Skip to content

Latest commit

 

History

History
 
 

benchmarks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Benchmarks

Example sites for benchmarking gatsby.

Interface

The standard interface for running a benchmark is:

cd {benchmark directory}
export NUM_PAGES={n}
npm install
npm run build / gatsby build

If a specific benchmark needs to perform some code generation (e.g. markdown_id), that generation shall happen in a postinstall script. Any postinstall script must ensure that previous benchmark runs do not interfere with the current run.

For example:

"postinstall": "del-cli ./generated && gatsby clean && npm run generate"