Sha256: 332158ed2bcca414501f6f8e2274e91cb8e874f704490ed3c64c6f082cc1a882

Contents?: true

Size: 1.07 KB

Versions: 117

Compression:

Stored size: 1.07 KB

Contents

#!/bin/bash

# Script to benchmark the ruby agent under various versions of ruby in ci.

echo "Executing $0"
echo "Running in $(pwd)"

# print commands in this script as they're invoked
# set -x
# fail if any command fails
set -e

# check for require environment variables
if [ "x$RUBY" == "x" ]; then
  echo '$RUBY is undefined'
  exit 1
fi


. "$HOME/.rvm/scripts/rvm"
rvm use $RUBY || rvm install $RUBY
echo `which ruby`

# make sure that we're in the project root
script_dirname=`dirname $0`
cd "$script_dirname/../../"
pwd

rm -rf tmp
mkdir -p tmp
cd tmp
git clone --depth=1 git@github.com:newrelic/agent_prof.git agent_prof
cd agent_prof

perl -p -i'.bak' -e 's#gem +.newrelic_rpm.*$#gem "newrelic_rpm", :path => "\.\.\/\.\.\/"#' Gemfile

rvm --force gemset delete ruby_bench_$RUBY
rvm gemset create ruby_bench_$RUBY
rvm gemset use ruby_bench_$RUBY

if [ "x$RUBY" == "x1.8.6" ]; then
  # Bundler 1.1 dropped support for ruby 1.8.6
  gem install bundler -v'~>1.0.0' --no-rdoc --no-ri
else
  gem install bundler --no-rdoc --no-ri
fi

bundle
script/run
bundle exec script/post_log_to_dashboard


Version data entries

117 entries across 117 versions & 5 rubygems

Version Path
newrelic_rpm-3.14.1.311 test/script/ci_bench.sh
newrelic_rpm-3.14.0.305 test/script/ci_bench.sh
newrelic_rpm-3.13.2.302 test/script/ci_bench.sh
newrelic_rpm-3.13.1.300 test/script/ci_bench.sh
newrelic_rpm-3.13.0.299 test/script/ci_bench.sh
newrelic_rpm-3.12.1.298 test/script/ci_bench.sh
newrelic_rpm-3.12.0.288 test/script/ci_bench.sh
newrelic_rpm-3.11.2.286 test/script/ci_bench.sh
newrelic_rpm-3.11.1.284 test/script/ci_bench.sh
newrelic_rpm-3.11.0.283 test/script/ci_bench.sh
newrelic_rpm-3.10.0.279 test/script/ci_bench.sh
newrelic_rpm-3.9.9.275 test/script/ci_bench.sh
newrelic_rpm-3.9.8.273 test/script/ci_bench.sh
newrelic_rpm-3.9.7.266 test/script/ci_bench.sh
newrelic_rpm-3.9.6.257 test/script/ci_bench.sh
newrelic_rpm-3.9.5.251 test/script/ci_bench.sh
newrelic_rpm-3.9.4.245 test/script/ci_bench.sh
newrelic_rpm-3.9.3.241 test/script/ci_bench.sh
newrelic_rpm-3.9.2.239 test/script/ci_bench.sh
newrelic_rpm-3.9.1.236 test/script/ci_bench.sh