Sha256: 826c558904b20f9068c3c6ba368d6e9de3e84398daf8e3a6ccca1c3ae3100e58

Contents?: true

Size: 513 Bytes

Versions: 6

Compression:

Stored size: 513 Bytes

Contents

# Simple benchmark to compare Thin performance against
# other webservers supported by Rack.
#
# Run with:
#
#  ruby simple.rb [num of request] [print|graph] [concurrency levels]
#
require File.dirname(__FILE__) + '/../lib/thin'
require File.dirname(__FILE__) + '/utils'

request     = (ARGV[0] || 1000).to_i # Number of request to send (ab -n option)
output_type = (ARGV[1] || 'print')
levels      = eval(ARGV[2] || '[1, 10, 100]').to_a

benchmark output_type, %w(WEBrick Mongrel EMongrel Thin), request, levels

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
thin-0.6.2 benchmark/simple.rb
thin-0.6.2-x86-mswin32-60 benchmark/simple.rb
thin-0.6.4 benchmark/simple.rb
thin-0.6.3-x86-mswin32-60 benchmark/simple.rb
thin-0.6.4-x86-mswin32-60 benchmark/simple.rb
thin-0.6.3 benchmark/simple.rb