summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 09:59:19 +0000
committersvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 09:59:19 +0000
commitacd84d3208ea7f1ff6bb9b26b16b7a2c7089f699 (patch)
tree6a354f8416f42933f202a1b701c520cefaef2831
parent748c497a6d8f3f4136a6bd4c1931c73f041aba0e (diff)
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rwxr-xr-xbenchmark/bm_vm2_fiber_chain.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/benchmark/bm_vm2_fiber_chain.rb b/benchmark/bm_vm2_fiber_chain.rb
index 3227be0..926eefb 100755
--- a/benchmark/bm_vm2_fiber_chain.rb
+++ b/benchmark/bm_vm2_fiber_chain.rb
@@ -12,27 +12,27 @@ end
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