Skip to content

docs(analyzer): update the link of snaphot testing (#1376) #1

docs(analyzer): update the link of snaphot testing (#1376)

docs(analyzer): update the link of snaphot testing (#1376) #1

name: JSON Parser Benchmark
on:
workflow_dispatch:
pull_request:
types: [ opened, synchronize ]
branches:
- main
paths:
- 'crates/biome_json_parser/**'
- 'crates/biome_parser/**'
push:
branches:
- main
paths:
- 'crates/biome_json_parser/**'
- 'crates/biome_parser/**'
env:
RUST_LOG: info
jobs:
bench:
permissions:
pull-requests: write
name: Bench
runs-on: ubuntu-latest
steps:
- name: Checkout PR Branch
uses: actions/checkout@v4
with:
ref: ${{ steps.sha.outputs.result }}
- name: Install toolchain
uses: moonrepo/setup-rust@v1
with:
channel: stable
cache-target: release
bins: cargo-codspeed
- name: Compile
run: cargo codspeed build -p xtask_bench
- name: Run the benchmarks
uses: CodSpeedHQ/action@v2
timeout-minutes: 30
with:
run: cargo codspeed run json_parser
token: ${{ secrets.CODSPEED_TOKEN }}