Skip to content

Commit

Permalink
chore: clean up github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Nov 28, 2023
1 parent cf4c505 commit 2b37ae9
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 587 deletions.
53 changes: 3 additions & 50 deletions .github/workflows/Bench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

1 comment on commit 2b37ae9

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 2b37ae9 Previous: cf4c505 Ratio
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.

Please sign in to comment.