Created
November 23, 2010 20:52
-
-
Save jakedouglas/712503 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rackup file | |
run lambda { [200, {"Content-Type" => "text/plain"}, ["Hello World!"]] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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