refactor: runtime detect simd features #41
Workflow file for this run
This file contains hidden or 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
| name: Codspeed | |
| permissions: {} | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| build: | |
| name: Benchmark | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-unknown-linux-gnu | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-codspeed | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Download fixtures | |
| run: node download-fixtures.js | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build benchmark | |
| run: cargo codspeed build --measurement-mode=walltime --features codspeed | |
| - name: Upload Fixtures | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-fixtures | |
| path: fixtures | |
| - name: Upload rxjs | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-rxjs | |
| path: node_modules/rxjs | |
| - name: Upload benchmark | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-binary | |
| path: target/codspeed | |
| run: | |
| runs-on: codspeed-macro | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-codspeed | |
| - name: Download benchmark binary | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: benchmark-binary | |
| path: target/codspeed | |
| - name: Download fixtures | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: benchmark-fixtures | |
| path: fixtures | |
| - name: Download rxjs | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: benchmark-rxjs | |
| path: node_modules/rxjs | |
| - name: Run benchmark | |
| uses: CodSpeedHQ/action@v4 | |
| timeout-minutes: 15 | |
| with: | |
| run: cargo codspeed run | |
| mode: walltime | |
| token: ${{ secrets.CODSPEED_TOKEN }} |