generated from web-infra-dev/napi-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
22 additions
and
587 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,57 +24,10 @@ jobs: | |
benchmark: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
# - name: Setup node | ||
# uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: 14 | ||
|
||
- name: Install | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
override: true | ||
|
||
# - name: Install pnpm | ||
# run: npm install -g pnpm@^6 | ||
|
||
- name: Cache cargo | ||
uses: Swatinem/rust-cache@v1 | ||
with: | ||
key: ${{ matrix.settings.target }}-node@14-cargo-cache | ||
|
||
# - name: Cache NPM dependencies | ||
# uses: actions/cache@v2 | ||
# with: | ||
# path: node_modules | ||
# key: npm-cache-lint-node@14-${{ hashFiles('pnpm-lock.yaml') }} | ||
|
||
# - name: 'Install wasm-pack' | ||
# uses: jetli/[email protected] | ||
# with: | ||
# version: 'latest' | ||
|
||
# - name: 'Install dependencies' | ||
# run: pnpm install --frozen-lockfile --registry https://registry.npm.taobao.org | ||
|
||
# - name: Build | ||
# run: | | ||
# pnpm build | ||
|
||
# - name: Run benchmark(Node) | ||
# run: | | ||
# pnpm bench | tee output_node.txt | ||
|
||
# - name: Store benchmark result(Node) | ||
# uses: benchmark-action/github-action-benchmark@v1 | ||
# with: | ||
# tool: 'benchmarkjs' | ||
# output-file-path: output_node.txt | ||
# auto-push: true | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
# comment-always: true | ||
- name: Install Rust | ||
uses: moonrepo/setup-rust@v1 | ||
|
||
- name: Run benchmark(Rust) | ||
run: cargo bench | tee output_rust.txt | ||
|
Oops, something went wrong.
2b37ae9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
benchmark_concat_generate_base64
22051
ns/iter (± 202
)22042
ns/iter (± 656
)1.00
benchmark_concat_generate_base64_with_cache
16132
ns/iter (± 223
)16068
ns/iter (± 269
)1.00
benchmark_concat_generate_string
8976
ns/iter (± 148
)8889
ns/iter (± 388
)1.01
benchmark_concat_generate_string_with_cache
3100
ns/iter (± 93
)3031
ns/iter (± 34
)1.02
This comment was automatically generated by workflow using github-action-benchmark.