-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Dustin Schau <dustinschau@gmail.com>
- Loading branch information
1 parent
242ff89
commit 6b6a3af
Showing
4 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash -eux | ||
|
||
set -e | ||
set -u | ||
set -x | ||
|
||
BENCHMARKS=( | ||
# create-pages | ||
# image-processing | ||
markdown_id | ||
markdown_slug | ||
markdown_table | ||
# plugin-manifest | ||
# query | ||
) | ||
|
||
SIZES=( | ||
1000 | ||
5000 | ||
10000 | ||
25000 | ||
100000 | ||
) | ||
|
||
cd benchmarks | ||
for benchmark in "${BENCHMARKS[@]}"; do | ||
cd "${benchmark}" | ||
for num in "${SIZES[@]}"; do | ||
NUM_PAGES=${num} npm install | ||
NUM_PAGES=${num} ./node_modules/.bin/gatsby build | ||
done | ||
cd .. | ||
done |