Sha256: 64e07743de5df91442fc10cd364353610fbbf68c9c6fbe4fdb5f24a204951b5e

Contents?: true

Size: 1.2 KB

Versions: 9

Compression:

Stored size: 1.2 KB

Contents

#!/bin/sh

# 
# Add the following line to crontab to execute benchmarks as a cron job on workdays at 1AM
#
# 0 1 * * 1-5 /Users/rhomobile/workspace/rhoconnect/bench/run_bench.sh
#

# ALL log messages go to '/tmp/bench.log' file 
echo '' > /tmp/bench.log

if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
  # First try to load from a user install
  source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
  # Then try to load from a root install
  source "/usr/local/rvm/scripts/rvm"
else
  printf "ERROR: An RVM installation was not found.\n"  >> /tmp/bench.log
  exit
fi

RHOCONNECT_HOME="$HOME/workspace/rhoconnect"
cd $RHOCONNECT_HOME

echo "Pull rhoconnect code from remote repository ..." | tee -a /tmp/bench.log
git reset --hard HEAD | tee -a /tmp/bench.log 2>&1
git pull origin master | tee -a /tmp/bench.log 2>&1
echo '' | tee -a /tmp/bench.log

# Run benchmarks for ruby 1.8.7, ree, and 1.9.2
#  TODO: 'jruby'
for ruby in '1.9.2' '1.8.7' 'ree'  
do
  rvm use $ruby > /dev/null
  ruby_version=$(rvm current)
  echo "Running benchmarks under $ruby_version ..." | tee -a /tmp/bench.log
  echo "" | tee -a /tmp/bench.log
  ruby bench/bench_runner.rb $RHOCONNECT_HOME 2>&1 | tee -a /tmp/bench.log
done


Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rhoconnect-3.0.5 bench/run_bench.sh
rhoconnect-3.0.4 bench/run_bench.sh
rhoconnect-3.0.3 bench/run_bench.sh
rhoconnect-3.0.2 bench/run_bench.sh
rhoconnect-3.0.1 bench/run_bench.sh
rhoconnect-3.0.0 bench/run_bench.sh
rhoconnect-3.0.0.rc1 bench/run_bench.sh
rhoconnect-3.0.0.beta3 bench/run_bench.sh
rhoconnect-3.0.0.beta1 bench/run_bench.sh