forked from ordinals/ord
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add benchmark-revision recipe (ordinals#827)
- Loading branch information
Showing
5 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
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,5 @@ | ||
/.idea/ | ||
/.vagrant | ||
/benchmark | ||
/docs/build | ||
/index.redb | ||
/ord.log | ||
|
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
REV=$1 | ||
|
||
if [[ ! -d ord ]]; then | ||
git clone https://github.com/casey/ord.git | ||
fi | ||
|
||
cd ord | ||
|
||
git fetch --all --prune | ||
git checkout master | ||
git reset --hard origin/master | ||
git checkout `git rev-parse origin/$REV` | ||
./benchmark/run |
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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
systemctl stop ord-dev | ||
|
||
rm -rf /var/lib/ord-dev | ||
|
||
journalctl --unit ord-dev --rotate | ||
|
||
journalctl --unit ord-dev --vacuum-time 1s | ||
|
||
./bin/update-dev-server |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,6 +104,14 @@ flamegraph dir=`git branch --show-current`: | |
benchmark index height-limit: | ||
./bin/benchmark $1 $2 | ||
|
||
benchmark-revision rev: | ||
ssh [email protected] "mkdir -p benchmark \ | ||
&& apt-get update --yes \ | ||
&& apt-get upgrade --yes \ | ||
&& apt-get install --yes git rsync" | ||
rsync -avz benchmark/checkout [email protected]:benchmark/checkout | ||
ssh [email protected] 'cd benchmark && ./checkout {{rev}}' | ||
|
||
serve-docs: | ||
mdbook serve docs --open | ||
|
||
|