mirror of
https://github.com/uutils/red.git
synced 2026-06-10 16:14:42 -07:00
feat: add benchmark ci workflow (#8)
This commit is contained in:
committed by
GitHub
parent
6cac408b7c
commit
acd1d3f559
@@ -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
|
||||
Reference in New Issue
Block a user