Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean up more formatting, fixed perf tests

  • Loading branch information...
commit 3148c19243e16d5193712c80066cbdc8d38d9cb8 1 parent 66b7a3a
Eric Fode authored
View
1  .profile
@@ -18,6 +18,5 @@ if [ ! -f $HOME/.ssh/id_rsa ]; then
heroku config:set --app $APP SSH_PRIVATE_KEY="$(< $HOME/.ssh/id_rsa)" SSH_PUBLIC_KEY="$(< $HOME/.ssh/id_rsa.pub)"
fi
-gem install bundler
heroku plugins:install https://github.com/heroku/manager-cli.git
heroku plugins:install https://github.com/ddollar/heroku-anvil.git
View
3  Gemfile
@@ -0,0 +1,3 @@
+source :rubygems
+gem 'sinatra'
+gem 'thin'
View
24 Gemfile.lock
@@ -0,0 +1,24 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ daemons (1.1.9)
+ eventmachine (1.0.0)
+ rack (1.4.1)
+ rack-protection (1.2.0)
+ rack
+ sinatra (1.3.3)
+ rack (~> 1.3, >= 1.3.6)
+ rack-protection (~> 1.2)
+ tilt (~> 1.3, >= 1.3.3)
+ thin (1.5.0)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ tilt (1.3.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ sinatra
+ thin
View
2  Procfile
@@ -1 +1 @@
-tester: tests/http_recurl
+tester: tests/perf_network
View
3  env.sample
@@ -1,2 +1,3 @@
+APP=ferret-fode
APP_PREFIX=ferret-fode
-ORG=ferret-dev
+ORG=ferret-dev
View
4 tests/perf_cpu
@@ -2,8 +2,10 @@
require_relative "../lib/ferret"
-do_every_time do
+run_every_time do
bash(name: :blowfish, stdin: <<'EOF')
openssl speed rsa -elapsed -mr
EOF
end
+
+run forever:true
View
4 tests/perf_disk
@@ -2,6 +2,7 @@
require_relative "../lib/ferret"
+run_every_time do
bash(name: :dd, stdin: <<'EOF')
rm -f /tmp/o
if [ "$(uname)" = "Darwin" ]; then
@@ -10,3 +11,6 @@ bash(name: :dd, stdin: <<'EOF')
dd if=/dev/zero of=/tmp/o bs=10M count=20 oflag=direct,sync
fi
EOF
+end
+
+run forever:true
View
19 tests/perf_network
@@ -2,16 +2,23 @@
require_relative "../lib/ferret"
-bash(name: :dd, stdin: <<'EOF')
+run_every_time do
+ bash(name: :dd, stdin: <<'EOF')
if [ ! -f /tmp/o ]; then
if [ "$(uname)" = "Darwin" ]; then
dd if=/dev/zero of=/tmp/o bs=10000000 count=2
else
dd if=/dev/zero of=/tmp/o bs=10M count=2 oflag=direct,sync
- fi
- fi
+ fi
+ fi
EOF
+end
-bash(name: :curl, stdin: <<'EOF')
- curl -i -X PUT http://ferretapp.s3.amazonaws.com/perf_network --data-binary @/tmp/o
-EOF
+
+ run_every_time do
+ bash(name: :curl, stdin: <<'EOF')
+ curl -i -X PUT http://ferretapp.s3.amazonaws.com/perf_network --data-binary @/tmp/o
+EOF
+ end
+
+ run forever: true
Please sign in to comment.
Something went wrong with that request. Please try again.