From 7af939c0bbc6af75e9705a8b40e1dc882463f9c5 Mon Sep 17 00:00:00 2001 From: Volodymyr Yavdoshenko Date: Sat, 17 Jan 2026 08:39:14 +0200 Subject: [PATCH] feat: add benchmark ci workflow --- .github/workflows/benchmark.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/benchmark.yml diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml new file mode 100644 index 0000000..3a5b0fd --- /dev/null +++ b/.github/workflows/benchmark.yml @@ -0,0 +1,30 @@ +name: Benchmark + +on: + push: + branches: [ main ] + workflow_dispatch: + +jobs: + benchmark: + name: Run benchmarks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + + - name: Build release + working-directory: ./red + run: cargo build --release --verbose + + - name: Install hyperfine + run: cargo install hyperfine + + - name: Run benchmarks + working-directory: ./red + env: + TERM: xterm-256color + FORCE_COLOR: "1" + run: bash scripts/benchmark.sh