Lines Matching refs:args
47 args = (File.basename(@interpreter) == "jruby" ? "-J-server" : "")
48 …@pipe = IO.popen("#{@interpreter} #{args} #{File.dirname(__FILE__)}/server.rb #{@host} #{@port} #{…
253 args = {}
254 args[:interpreter] = ENV['THRIFT_SERVER_INTERPRETER'] || ENV['THRIFT_INTERPRETER'] || "ruby"
255 args[:class] = resolve_const(ENV['THRIFT_SERVER']) || Thrift::NonblockingServer
256 args[:host] = ENV['THRIFT_HOST'] || HOST
257 args[:port] = (ENV['THRIFT_PORT'] || PORT).to_i
258 server = Server.new(args)
261 args = {}
262 args[:host] = ENV['THRIFT_HOST'] || HOST
263 args[:port] = (ENV['THRIFT_PORT'] || PORT).to_i
264 args[:num_processes] = (ENV['THRIFT_NUM_PROCESSES'] || 40).to_i
265 args[:clients_per_process] = (ENV['THRIFT_NUM_CLIENTS'] || 5).to_i
266 args[:calls_per_client] = (ENV['THRIFT_NUM_CALLS'] || 50).to_i
267 args[:interpreter] = ENV['THRIFT_CLIENT_INTERPRETER'] || ENV['THRIFT_INTERPRETER'] || "ruby"
268 args[:log_exceptions] = !!ENV['THRIFT_LOG_EXCEPTIONS']
269 BenchmarkManager.new(args, server).run