ci: chores (#5280)

This commit is contained in:
DaniPopes
2023-11-05 00:22:27 +01:00
committed by GitHub
parent bcd8e6fa89
commit 6e0cf0f33a
17 changed files with 199 additions and 391 deletions

View File

@ -1,6 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
# This script should be run on the main branch, after running the iai benchmarks on the target branch.
# If the main branch has a better iai performance, exits in error.
# It ignores L2 differences, since they seem hard to stabilize across runs.
# If the main branch has a better iai performance, exits in error. It ignores L2 differences, since they seem hard to stabilize across runs.
cargo bench --package reth-db --bench iai --manifest-path pr/Cargo.toml | tee /dev/tty | awk '/((L1)|(Ins)|(RAM)|(Est))+.*\(\+[1-9]+[0-9]*\..*%\)/{f=1} END{exit f}'
set -eo pipefail
cargo bench --package reth-db --bench iai --manifest-path pr/Cargo.toml \
| tee /dev/tty \
| awk '/((L1)|(Ins)|(RAM)|(Est))+.*\(\+[1-9]+[0-9]*\..*%\)/{f=1} END{exit f}'