You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: add mdx benchmark to cronjob, adjust content source in remark benchmarks to differentiate mdx and remark (#22780)
* chore(circleci): Change BENCHMARK_CONTENT_SOURCE MDX to MARKDOWN
* We will soon be running an actual MDX benchmark so correct these
* chore(benchmarks): Fixup and integrate mdx
* Enable in CircleCI
This Gatsby site generates MDX files and downloads sample images on postinstall and places them in `src/articles`. In order for that to work, the env var `BENCHMARK_LEVEL` needs to be set to a number when you call `yarn` to install, so:
3
+
Benchmark for MDX pages.
4
+
Mock data is generated during the dependency installation step.
5
+
The number of pages generated is read from `NUM_PAGES=` (defaults to `512`).
4
6
5
7
```
6
-
BENCHMARK_LEVEL=1 yarn
7
-
8
-
gatsby build
8
+
$ export NUM_PAGES=1024
9
+
$ yarn install # or npm install
10
+
$ gatsby build # or npm run build
9
11
```
10
12
11
-
If you see "Error: Expected an integer but received: " then you did not set the level env var.
12
-
13
13
This will not use an external source for data while building, but will download some remote images while installing.
14
-
15
-
# Levels
16
-
17
-
The `BENCHMARK_LEVEL` is the amount of times to multiply 512 by 2. The level is used to determine how many articles to generate.
0 commit comments