Sha256: f1177e7009dfcebbbde5e11460e400402988413a160d7a4732e958d4d45e727d

Contents?: true

Size: 959 Bytes

Versions: 24

Compression:

Stored size: 959 Bytes

Contents

#!/bin/bash

set -e

echo 'Starting test of rails application...'
# Start the rails application
echo 'Starting rails application...'
pushd example/rails_app >/dev/null
nodenv local v0.10 >/dev/null
bundle exec rake db:reset RAILS_ENV=development
bundle exec unicorn -c config/unicorn.rb -E development -D
sleep 1
popd >/dev/null
echo 'Rails application started'

# Test publishing via the rails application
siege -c 10 -r 10 -q -b "http://localhost:8080/beavers POST beaver[name]=`date '+%m/%d/%y %H:%M:%S'`"
sleep 4

# Stop the rails application
echo 'Stopping rails application...'
pushd example/rails_app >/dev/null
kill `cat tmp/pids/unicorn.pid`
popd >/dev/null
echo 'Rails application stopped'
echo 'Rails application test complete'
echo ''
echo ''

# Test standalone publishing and consuming
echo 'Starting standalone publishing and consuming benchmark...'
pushd example/non_rails_app >/dev/null
bin/benchmark
popd >/dev/null
echo 'Benchmark complete'

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rabbit_feed-2.4.4 run_benchmark
rabbit_feed-2.4.3 run_benchmark
rabbit_feed-2.4.2 run_benchmark
rabbit_feed-2.4.1 run_benchmark
rabbit_feed-2.4.0 run_benchmark
rabbit_feed-2.3.10 run_benchmark
rabbit_feed-2.3.9 run_benchmark
rabbit_feed-2.3.7 run_benchmark
rabbit_feed-2.3.6 run_benchmark
rabbit_feed-2.3.5 run_benchmark
rabbit_feed-2.3.4 run_benchmark
rabbit_feed-2.3.3 run_benchmark
rabbit_feed-2.3.2 run_benchmark
rabbit_feed-2.3.1 run_benchmark
rabbit_feed-2.3.0 run_benchmark
rabbit_feed-2.1.5 run_benchmark
rabbit_feed-2.1.2 run_benchmark
rabbit_feed-2.1.1 run_benchmark
rabbit_feed-2.1.0 run_benchmark
rabbit_feed-2.0.0 run_benchmark