Add convenience script to download performance libraries

This commit is contained in:
Michael Vines
2018-06-20 15:11:59 -07:00
parent 410272ee1d
commit 89fc0ad7a9
4 changed files with 27 additions and 26 deletions

22
fetch-perf-libs.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash -e
if [[ $(uname) != Linux ]]; then
echo Performance libraries are only available for Linux
exit 1
fi
if [[ $(uname -m) != x86_64 ]]; then
echo Performance libraries are only available for x86_64 architecture
exit 1
fi
(
set -x
curl -o solana-perf.tgz \
https://solana-perf.s3.amazonaws.com/master/x86_64-unknown-linux-gnu/solana-perf.tgz
tar zxvf solana-perf.tgz
)
echo "Downloaded solana-perf version: $(cat solana-perf-HEAD.txt)"
exit 0