ruby-changes:53638
From: svn <ko1@a...>
Date: Tue, 20 Nov 2018 20:17:39 +0900 (JST)
Subject: [ruby-changes:53638] svn:r65837 (trunk): * remove trailing spaces.
svn 2018-11-20 18:59:19 +0900 (Tue, 20 Nov 2018) New Revision: 65837 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65837 Log: * remove trailing spaces. Modified files: trunk/benchmark/bm_vm2_fiber_chain.rb Index: benchmark/bm_vm2_fiber_chain.rb =================================================================== --- benchmark/bm_vm2_fiber_chain.rb (revision 65836) +++ benchmark/bm_vm2_fiber_chain.rb (revision 65837) @@ -12,27 +12,27 @@ end https://github.com/ruby/ruby/blob/trunk/benchmark/bm_vm2_fiber_chain.rb#L12 def run_benchmark(fibers, repeats, message = :hello) chain = nil - + time = Benchmark.realtime do chain = Fiber.new do while true Fiber.yield(message) end end - + (fibers - 1).times do chain = make_link(chain) end end - + puts "Creating #{fibers} fibers took #{time}..." - + time = Benchmark.realtime do repeats.times do abort "invalid result" unless chain.resume == message end end - + puts "Passing #{repeats} messages took #{time}..." end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/