Add control-flow based optimizer passes #131
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
# Copyright (c) 2020-now by the Zeek Project. See LICENSE for details. | |
name: CodSpeed | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
benchmarks: | |
name: Run benchmarks | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
persist-credentials: false | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends curl ca-certificates gnupg2 | |
sudo apt-get install -y --no-install-recommends \ | |
bison \ | |
ccache \ | |
flex \ | |
g++ \ | |
libfl-dev \ | |
libssl-dev \ | |
make \ | |
ninja-build \ | |
zlib1g-dev | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@9b88f2531867ab50e2c253da5f63bbf0674ad719 | |
with: | |
create-symlink: true | |
key: ${{ github.job }} | |
- name: Build benchmarks | |
env: | |
HILTI_OPTIMIZER_ENABLE_CFG: 1 | |
run: | | |
cmake -G Ninja -DCODSPEED_MODE=instrumentation -DCMAKE_BUILD_TYPE=RelWithDebInfo -Bbuild /spicy | |
ninja -C build spicy-rt-parsing-benchmark hilti-rt-benchmark | |
- uses: CodSpeedHQ/action@c28fe9fbe7d57a3da1b7834ae3761c1d8217612d | |
with: | |
run: | | |
./build/bin/hilti-rt-benchmark | |
./build/bin/spicy-rt-parsing-benchmark | |
token: ${{ secrets.CODSPEED_TOKEN }} |