chore: Install hey if needed

main
Sean McBride 4 years ago
parent 97818e5e32
commit 8efe2af177

@ -0,0 +1,6 @@
#!/bin/bash
if ! command -v hey; then
HEY_URL=https://hey-release.s3.us-east-2.amazonaws.com/hey_linux_amd64
wget $HEY_URL -O hey && chmod +x hey && mv hey /usr/bin/hey
fi

@ -19,6 +19,11 @@ source get_result_count.sh || exit 1
source panic.sh || exit 1 source panic.sh || exit 1
source path_join.sh || exit 1 source path_join.sh || exit 1
if ! command -v hey; then
echo "hey is not present."
exit 1
fi
# Sends requests until the per-module perf window buffers are full # Sends requests until the per-module perf window buffers are full
# This ensures that Sledge has accurate estimates of execution time # This ensures that Sledge has accurate estimates of execution time
run_samples() { run_samples() {

@ -0,0 +1,6 @@
#!/bin/bash
if ! command -v hey; then
HEY_URL=https://hey-release.s3.us-east-2.amazonaws.com/hey_linux_amd64
wget $HEY_URL -O hey && chmod +x hey && mv hey /usr/bin/hey
fi

@ -15,6 +15,11 @@ source get_result_count.sh || exit 1
source panic.sh || exit 1 source panic.sh || exit 1
source path_join.sh || exit 1 source path_join.sh || exit 1
if ! command -v hey; then
echo "hey is not present."
exit 1
fi
declare -gi iterations=10000 declare -gi iterations=10000
declare -ga concurrency=(1 20 40 60 80 100) declare -ga concurrency=(1 20 40 60 80 100)

@ -0,0 +1,6 @@
#!/bin/bash
if ! command -v hey; then
HEY_URL=https://hey-release.s3.us-east-2.amazonaws.com/hey_linux_amd64
wget $HEY_URL -O hey && chmod +x hey && mv hey /usr/bin/hey
fi

@ -16,6 +16,11 @@ source "framework.sh" || exit 1
source "get_result_count.sh" || exit 1 source "get_result_count.sh" || exit 1
source "generate_gnuplots.sh" || exit 1 source "generate_gnuplots.sh" || exit 1
if ! command -v hey; then
echo "hey is not present."
exit 1
fi
# Experiment Globals and Setups # Experiment Globals and Setups
declare -ar payloads=(1024 10240 102400 1048576) declare -ar payloads=(1024 10240 102400 1048576)

@ -166,6 +166,7 @@ bimodal() {
make rttests -C "$base_dir/runtime/tests" || exit 1 make rttests -C "$base_dir/runtime/tests" || exit 1
fi fi
pushd "$base_dir/runtime/experiments/bimodal/" || exit 1 pushd "$base_dir/runtime/experiments/bimodal/" || exit 1
./install.sh || exit 1
./run.sh || failed_tests+=("bimodal") ./run.sh || failed_tests+=("bimodal")
popd || exit 1 popd || exit 1
return 0 return 0
@ -177,6 +178,7 @@ concurrency() {
make rttests -C "$base_dir/runtime/tests" || exit 1 make rttests -C "$base_dir/runtime/tests" || exit 1
fi fi
pushd "$base_dir/runtime/experiments/concurrency/" || exit 1 pushd "$base_dir/runtime/experiments/concurrency/" || exit 1
./install.sh || exit 1
./run.sh || failed_tests+=("concurrency") ./run.sh || failed_tests+=("concurrency")
popd || exit 1 popd || exit 1
return 0 return 0
@ -192,6 +194,7 @@ payload() {
fi fi
# TODO: Make Dependency "work1k_wasm.so" "work10k_wasm.so" "work100k_wasm.so" "work1m_wasm.so" # TODO: Make Dependency "work1k_wasm.so" "work10k_wasm.so" "work100k_wasm.so" "work1m_wasm.so"
pushd "$base_dir/runtime/experiments/payload/" || exit 1 pushd "$base_dir/runtime/experiments/payload/" || exit 1
./install.sh || exit 1
./run.sh || failed_tests+=("payload") ./run.sh || failed_tests+=("payload")
popd || exit 1 popd || exit 1
return 0 return 0

Loading…
Cancel
Save