Files
nanoreth/.github/scripts/compare_iai.sh
github-actions[bot] e57ad4a302 chore(deps): weekly cargo update (#5297)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
2023-11-05 12:55:17 +00:00

12 lines
436 B
Bash
Executable File

#!/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.
set -eo pipefail
cargo bench -p reth-db --bench iai -F test-utils \
| tee /dev/tty \
| awk '/((L1)|(Ins)|(RAM)|(Est))+.*\(\+[1-9]+[0-9]*\..*%\)/{f=1} END{exit f}'