这是indexloc提供的服务,不要输入任何密码
Skip to content

Coarse-grain benchmarking #721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ jobs:
- name: Benchmark and Smoke Tests
run: cd cli && make bench/turbo

- name: Benchmark E2E
run: cd cli && make bench/e2e

- name: Store Benchmark Result
uses: benchmark-action/github-action-benchmark@v1
with:
name: "${{ runner.os }} Benchmark"
# What benchmark tool the output is formatted as
tool: "customSmallerIsBetter"
output-file-path: ./cli/scripts/benchmarks.json
benchmark-data-dir-path: benchmarks/e2e/${{ runner.os }}
auto-push: ${{ github.event_name == 'push' }}
comment-on-alert: true
comment-always: true
# GitHub API token to make a commit on push, and a comment always
github-token: ${{ secrets.GITHUB_TOKEN }}

build-win:
name: build and test
timeout-minutes: 10
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ cli/npm/turbo-sunos-64/bin
cli/npm/turbo-windows-32/turbo.exe
cli/npm/turbo-windows-64/turbo.exe
cli/npm/turbo-windows-arm64/turbo.exe
cli/scripts/benchmarks.json
cli/scripts/turbo-*
!/npm/turbo-windows-32/bin
!/npm/turbo-windows-64/bin
Expand All @@ -57,4 +58,4 @@ store
todos.md
examples/*/*.lock
examples/*/*-lock.yaml
.store
.store
3 changes: 3 additions & 0 deletions cli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ bench/turbo-new: demo/turbo

bench: bench/lerna bench/lage bench/nx bench/turbo

bench/e2e: | scripts/node_modules
cd scripts && yarn uvu -r esbuild-register benchmark --output benchmarks.json

clean:
rm -f turbo
rm -rf npm/turbo-darwin-64/bin/turbo
Expand Down
Loading