mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-11 15:35:07 -05:00
12 lines
459 B
Bash
Executable File
12 lines
459 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 --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}'
|