Skip to content

ddrscott/rack-attack-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Example Rails 4 project showing performance difference between the full Rails middleware chain vs simple Rack middleware.

Running Benchmarks

Install Apache Bench

Apache Bench

brew install homebrew/apache/ab

Running standard Rails root route

ab -c 20 -n 1000  'http://localhost:3000/'
#=> Requests per second:    294.45 [#/sec] (mean)

Running hijacked Rack route

ab -c 20 -n 1000  'http://localhost:3000/hijacked'
# => Requests per second:    809.29 [#/sec] (mean)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors