Author: kclark
Date: Tue Jun 17 18:20:06 2008
New Revision: 669038

URL: http://svn.apache.org/viewvc?rev=669038&view=rev
Log:
rb: Add control for the number of client processes in the benchmark

You control this with THRIFT_NUM_PROCESSES, the default is 40

Modified:
    incubator/thrift/trunk/lib/rb/benchmark/benchmark.rb

Modified: incubator/thrift/trunk/lib/rb/benchmark/benchmark.rb
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/benchmark/benchmark.rb?rev=669038&r1=669037&r2=669038&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/benchmark/benchmark.rb (original)
+++ incubator/thrift/trunk/lib/rb/benchmark/benchmark.rb Tue Jun 17 18:20:06 
2008
@@ -239,7 +239,8 @@
 server = Server.new(args)
 server.start
 
-args = { :num_processes => 40, :host => HOST, :port => PORT }
+args = { :host => HOST, :port => PORT }
+args[:num_processes] = (ENV['THRIFT_NUM_PROCESSES'] || 40).to_i
 args[:clients_per_process] = (ENV['THRIFT_NUM_CLIENTS'] || 5).to_i
 args[:calls_per_client] = (ENV['THRIFT_NUM_CALLS'] || 50).to_i
 args[:interpreter] = ENV['THRIFT_CLIENT_INTERPRETER'] || 
ENV['THRIFT_INTERPRETER'] || "ruby"


Reply via email to