Skip to content

Commit

Permalink
ci(benchmark): Update CircleCI benchmarks with new env variables (#22023
Browse files Browse the repository at this point in the history
)

* Update CircleCI benchmarks with new env variables

* Update repo name to include directory

* Add last correct repo name
  • Loading branch information
duffn authored Mar 9, 2020
1 parent 14ac8fb commit a0b69a4
Showing 1 changed file with 104 additions and 109 deletions.
213 changes: 104 additions & 109 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,49 @@ commands:
- slack/status:
channel: eng-react-integration-status

run-benchmark:
parameters:
working_directory:
type: string
NUM_PAGES:
type: string
BENCHMARK_CONTENT_SOURCE:
type: string
BENCHMARK_REPO_NAME:
type: string
default: gatsbyjs/gatsby
BENCHMARK_SITE_TYPE:
type: string
default: BLOG
steps:
- checkout
- run:
command: npm install
working_directory: << parameters.working_directory >>
- run:
command: npm run build
working_directory: << parameters.working_directory >>
environment:
BENCHMARK_BUILD_TYPE: COLD_START
NUM_PAGES: << parameters.NUM_PAGES >>
BENCHMARK_CONTENT_SOURCE: << parameters.BENCHMARK_CONTENT_SOURCE >>
BENCHMARK_REPO_NAME: << parameters.BENCHMARK_REPO_NAME >>
BENCHMARK_SITE_TYPE: << parameters.BENCHMARK_SITE_TYPE >>
CI_NAME: circleci
- run:
command: npm install
working_directory: << parameters.working_directory >>
- run:
command: npm run build
working_directory: << parameters.working_directory >>
environment:
BENCHMARK_BUILD_TYPE: WARM_START
NUM_PAGES: << parameters.NUM_PAGES >>
BENCHMARK_CONTENT_SOURCE: << parameters.BENCHMARK_CONTENT_SOURCE >>
BENCHMARK_REPO_NAME: << parameters.BENCHMARK_REPO_NAME >>
BENCHMARK_SITE_TYPE: << parameters.BENCHMARK_SITE_TYPE >>
CI_NAME: circleci

e2e-test:
parameters:
skip_file_change_test:
Expand Down Expand Up @@ -365,193 +408,145 @@ jobs:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "512"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_id
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_id
NUM_PAGES: "512"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_id
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_id_4096:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "4096"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_id
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_id
NUM_PAGES: "4096"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_id
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_id_8192:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "8192"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_id
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_id
NUM_PAGES: "8192"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_id
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_id_32768:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "32768"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_id
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_id
NUM_PAGES: "32768"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_id
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_slug_512:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "512"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_slug
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_slug
NUM_PAGES: "512"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_slug
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_slug_4096:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "4096"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_slug
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_slug
NUM_PAGES: "4096"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_slug
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_slug_8192:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "8192"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_slug
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_slug
NUM_PAGES: "8192"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_slug
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_slug_32768:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "32768"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_slug
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_slug
NUM_PAGES: "32768"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_slug
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_table_512:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "512"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_table
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_table
NUM_PAGES: "512"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_table
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_table_4096:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "4096"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_table
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_table
NUM_PAGES: "4096"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_table
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_table_8192:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "8192"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_table
- run:
command: npm run build
- run-benchmark:
working_directory: benchmarks/markdown_table
NUM_PAGES: "8192"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_table
BENCHMARK_SITE_TYPE: BLOG

benchmark_markdown_table_32768:
docker:
- image: "circleci/node:12"
resource_class: xlarge
environment:
CI_NAME: circleci
NUM_PAGES: "32768"
steps:
- checkout
- run:
command: npm install
working_directory: benchmarks/markdown_table
- run:
command: npm run build
working_directory: benchmarks/markdown_table
- run-benchmark:
working_directory: benchmarks/markdown_table/benchmarks/markdown_table
NUM_PAGES: "32768"
BENCHMARK_CONTENT_SOURCE: MDX
BENCHMARK_REPO_NAME: gatsbyjs/gatsby/benchmarks/markdown_table
BENCHMARK_SITE_TYPE: BLOG

workflows:
version: 2
Expand Down

0 comments on commit a0b69a4

Please sign in to comment.