public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
Search Repo:
Add keepalive option to benchmarking script.
macournoyer (author)
Fri Feb 08 23:03:43 -0800 2008
commit  3780f3f12d871d5a76b801ae579f0af5b1c829a7
tree    3e523c639d2f0f11a48519e30dba006ad9a0a1c2
parent  ab63c2010438d2764e1d566b6b1aa6a34dc42bb5
...
30
31
32
33
 
34
35
36
...
30
31
32
 
33
34
35
36
0
@@ -30,7 +30,7 @@
0
 c = options[:start]
0
 until c >= options[:end]
0
   sleep 0.5
0
- out = `nice -n20 ab - -c #{c} -n #{options[:requests]} #{options[:address]}:#{options[:port]}/#{options[:uri]} 2> /dev/null`
0
+ out = `nice -n20 ab -k -c #{c} -n #{options[:requests]} #{options[:address]}:#{options[:port]}/#{options[:uri]} 2> /dev/null`
0
 
0
   r = if requests = out.match(/^Requests.+?(\d+\.\d+)/)
0
     requests[1].to_i

Comments

    No one has commented yet.