This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
forked from paradigmxyz/reth
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
199 additions
and
391 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Installs Geth (https://geth.ethereum.org) in $HOME/bin for x86_64 Linux. | ||
|
||
set -eo pipefail | ||
|
||
GETH_BUILD=${GETH_BUILD:-"1.13.4-3f907d6a"} | ||
|
||
name="geth-linux-amd64-$GETH_BUILD" | ||
|
||
mkdir -p "$HOME/bin" | ||
wget "https://gethstore.blob.core.windows.net/builds/$name.tar.gz" | ||
tar -xvf "$name.tar.gz" | ||
rm "$name.tar.gz" | ||
mv "$name/geth" "$HOME/bin/geth" | ||
rm -rf "$name" | ||
chmod +x "$HOME/bin/geth" | ||
|
||
# Add $HOME/bin to $PATH | ||
[[ "$PATH" != *$HOME/bin* ]] && export PATH=$HOME/bin:$PATH | ||
[ -n "$CI" ] && echo "$HOME/bin" >> "$GITHUB_PATH" | ||
|
||
geth version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.