Current Path : /compat/linux/proc/self/root/usr/local/share/examples/ruby18/drb/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/share/examples/ruby18/drb/speedc.rb |
#!/usr/local/bin/ruby uri = ARGV.shift || raise("usage: #{$0} URI") N = (ARGV.shift || 100).to_i case uri when /^tcpromp:/, /^unixromp:/ require 'romp' client = ROMP::Client.new(uri, false) foo = client.resolve("foo") when /^druby:/ require 'drb/drb' DRb.start_service foo = DRbObject.new(nil, uri) end N.times do |n| foo.foo(n) end