This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Oct 30 14:31:36 -0700 2008 | |
| |
README.markdown | Mon Aug 03 12:50:47 -0700 2009 | |
| |
Rakefile | Thu Oct 30 14:17:19 -0700 2008 | |
| |
assert_performs.gemspec | Thu Oct 30 14:17:19 -0700 2008 | |
| |
lib/ | Thu Oct 30 14:17:19 -0700 2008 | |
| |
rails/ | Thu Oct 30 14:17:19 -0700 2008 | |
| |
test/ | Thu Oct 30 14:17:19 -0700 2008 |
README.markdown
Assert Performs
This is a single Test::Unit assertion written to test performance of a Rails action. Meant to be run on staging before production deploys.
Usage
class PerformanceTest < Test::Unit::TestCase
self.performance_server = "staging.example.com"
context "a GET to users/1" do
should "be performant" do
assert_performs :get, user_path, :rate => 3,
:timeout => 5
:id => 1 # extra params
end
end
end
assert_performs takes the following arguments:
- an HTTP verb
- a path
- a threshold request rate (req/s)
a timeout (in seconds)
assert_performs :get, '/', :rate => 3, :timeout => 5
Requirements
- httperf
- web server







