Skip to content

Bump lazy_static from 1.4.0 to 1.5.0 (#111) #390

Bump lazy_static from 1.4.0 to 1.5.0 (#111)

Bump lazy_static from 1.4.0 to 1.5.0 (#111) #390

Workflow file for this run

name: 'Benchmarks'
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
# The actions variables and shell env namespaces are different, so we need to import every relevant variable here:
# <https://github.com/Inversed-Tech/eyelid/settings/variables/actions>
env:
# Logging
CARGO_TERM_COLOR: ${{ vars.CARGO_TERM_COLOR }}
# For performance reasons, benchmarks have their own log level, which should typically be `off` or `0`.
RUST_LOG: ${{ vars.RUST_LOG_BENCHMARKS }}
# These backtrace variables are used by the `backtrace` crate to control the backtrace verbosity in binaries and libraries.
# We always want them set to the same value in CI.
RUST_BACKTRACE: ${{ vars.RUST_BACKTRACE_BENCHMARKS }}
RUST_LIB_BACKTRACE: ${{ vars.RUST_BACKTRACE_BENCHMARKS }}
jobs:
bench:
name: Rust Benchmarks
# Benchmarks have custom code to compare different functions, so we don't need a matrix here.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: r7kamura/rust-problem-matchers@v1
- name: Build Benchmarks
run: |
export RUSTFLAGS="-D warnings"
cargo bench --no-run --features benchmark --all-targets
- name: Run Benchmarks
run: |
export RUSTFLAGS="-D warnings"
echo "Warning: benchmark timings are unreliable in CI due to virtualization"
cargo bench --features benchmark --all-targets
echo "Warning: benchmark timings are unreliable in CI due to virtualization"