Created
August 15, 2012 12:43
-
-
Save jkischkel/3359826 to your computer and use it in GitHub Desktop.
jrbs
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
#!/bin/sh | |
# sh < <(curl -L https://raw.github.com/gist/3359826/9a6b909bf2d7313ecc4eae2194407434bb75b033/setup.sh) | |
# setup siege | |
apt-get install siege | |
# create urls file | |
export URLS_FILE="/root/siege_urls.txt" | |
touch $URLS_FILE | |
echo "http://localhost/admin" > $URLS_FILE | |
# setup execution | |
export LOG_DIR="/var/log/jruby-bench" | |
mkdir $LOG_DIR | |
export BENCH_RUNNER="/usr/local/sbin/run_jruby_bench.sh" | |
touch $BENCH_RUNNER | |
echo "siege -f "$URLS_FILE" -c 10 -r 100 -lm $1" > $BENCH_RUNNER | |
chmod u+x $BENCH_RUNNER | |
echo done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment