Skip to content

feat: enhance KQL parser with escaped character support and performance tests #1

feat: enhance KQL parser with escaped character support and performance tests

feat: enhance KQL parser with escaped character support and performance tests #1

Workflow file for this run

name: Performance Benchmarks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
benchmark:
name: Performance regression check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.16"
- name: Run benchmarks
run: |
go test -bench=. -benchmem ./parser | tee benchmark.txt
# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'go'
output-file-path: benchmark.txt
external-data-json-path: ./cache/benchmark-data.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
comment-on-alert: true
fail-on-alert: true