Skip to content

Instantly share code, notes, and snippets.

@jakedouglas
Created November 23, 2010 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakedouglas/712503 to your computer and use it in GitHub Desktop.
Save jakedouglas/712503 to your computer and use it in GitHub Desktop.
# to test, with the rackup and config files in place
$ gem install zbatery
$ zbatery -c zb_config.rb test.ru
# in another terminal
$ ab -n 300 -c 1 http://127.0.0.1:8080/
# rackup file
run lambda { [200, {"Content-Type" => "text/plain"}, ["Hello World!"]] }
# configuration for zbatery
Rainbows! do
use :ThreadPool
worker_connections 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment