Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 909 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 909 Bytes

Markdown Benchmark; fs+text version

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.

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.