summaryrefslogtreecommitdiff
path: root/sample/drb/speedc.rb
blob: 64b8a6502167604377821598fd5049ba129be85c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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
straptest/runner.rb?id=b4ec4a41c24105efbb43f9b70ca7f36d22f98294'>Guard all accesses to RubyVM::MJIT with defined?(RubyVM::MJIT) &&Benoit Daloze 2020-07-29display stderr output even if core dump filesKoichi Sasada 2019-07-29Erase only on ttyNobuyoshi Nakada 2019-07-02colors file has been moved from test to toolNobuyoshi Nakada 2019-07-01bootstraptest/runner.rb (show_limit): defer messages unless verbose and a ttyNobuyoshi Nakada 2019-07-01bootstraptest/runner.rb (show_limit): show dots only when printing to a ttyNobuyoshi Nakada 2019-06-19* remove trailing spaces, expand tabs.git 2019-06-19Show thread and fiber limits as part of bootstrap tests.Samuel Williams 2019-01-17support btest on older ruby.ko1 2018-12-27delete emacs mode lines [ci skip]shyouhei 2018-12-12bootstraptest/runner.rb: increase timeout for --jit-waitk0kubun 2018-11-20Simply treat IO::WaitReadable just like Errno::EAGAINusa 2018-11-20revert r65820 and retry assert_finishk0kubun