Skip to content

Latest commit

 

History

History

gabe-yaml-text

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Baseline Gatsby Benchmark: fs + yaml

This is a baseline benchmark site in the Gabe project.

This site in particular tracks yaml performance for all pages in a single file.

The site can generate an arbitrary amount of super simple pages. Each page has a small header, a quote, and two small paragraphs of random text. No images, because we want to benchmark the yaml transformer.

Install

Run yarn or npm install

Usage

You can start a benchmark run like this:

N=1000 M=2 yarn bench
  • N=1000: instructs the run to build a site of 1000 pages
  • M=2: instructs nodejs to use up to 2gb of memory for its long term storage
  • Deletes generates files from previous run
  • Generates N pages with pseudo-random content
  • Runs gatsby clean
  • Runs gatsby build

The default yarn bench will build 512 pages with 1gb memory.