This is a baseline benchmark for tracking plaintext performance with individual files in the Gabe project.
This will produce the same site as gabe-fs-markdown
without using any markdown.
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 that's a fixed cost we're not interested in.
Run yarn
or npm install
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 pagesM=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.