#!/usr/bin/env ruby
#
# Copyright (C) 2003-2005 Kouichirou Eto
#     All rights reserved.
#     This is free software with ABSOLUTELY NO WARRANTY.
#
# You can redistribute it and/or modify it under the terms of 
# the GNU General Public License version 2.
#

AB_PATH = "/usr/sbin/ab"

def main
  url = "http://127.0.0.1:9190/"
  requests = 1000
  concurrency = 100

  cmd = "#{AB_PATH} -n #{requests} -c #{concurrency} #{url}"
  puts cmd
  system cmd
end
main
