Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete index after benchmarking #493

Merged
merged 4 commits into from
Sep 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions bin/benchmark
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,22 @@ set -euxo pipefail
rm -rf benchmark
mkdir benchmark

cd benchmark

for HEIGHT_LIMIT in 100 250 500 1000 2000; do
sudo \
/usr/bin/time -o $HEIGHT_LIMIT.time sudo \
CARGO_PROFILE_RELEASE_DEBUG=true \
RUST_LOG=info \
cargo flamegraph \
--deterministic \
--bin ord \
--output benchmark/$HEIGHT_LIMIT.svg \
--output $HEIGHT_LIMIT.svg \
-- \
--chain signet \
--data-dir benchmark \
--data-dir . \
--height-limit $HEIGHT_LIMIT \
index
sudo chown -n $UID $HEIGHT_LIMIT.svg
sudo chown -n $UID index.redb
mv index.redb $HEIGHT_LIMIT.redb
done