Sha256: 6daa25fa47576a7fb67dbf34c3b7f425ae019016fa3712be0d151f9896ad8878

Contents?: true

Size: 137 Bytes

Versions: 14

Compression:

Stored size: 137 Bytes

Contents

X = 1_000_000
f = Fiber.new do
  loop { Fiber.yield }
end

t0 = Time.now
X.times { f.resume }
dt = Time.now - t0
puts "#{X / dt.to_f}/s"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
polyphony-0.45.0 examples/performance/xx-fiber-switch.rb
polyphony-0.44.0 examples/performance/xx-fiber-switch.rb
polyphony-0.43.11 examples/performance/xx-fiber-switch.rb
polyphony-0.43.10 examples/performance/xx-fiber-switch.rb
polyphony-0.43.9 examples/performance/xx-fiber-switch.rb
polyphony-0.43.8 examples/performance/xx-fiber-switch.rb
polyphony-0.43.6 examples/performance/xx-fiber-switch.rb
polyphony-0.43.5 examples/performance/xx-fiber-switch.rb
polyphony-0.43.4 examples/performance/xx-fiber-switch.rb
polyphony-0.43.3 examples/performance/xx-fiber-switch.rb
polyphony-0.43.2 examples/performance/xx-fiber-switch.rb
polyphony-0.43.1 examples/performance/xx-fiber-switch.rb
polyphony-0.43 examples/performance/xx-fiber-switch.rb
polyphony-0.42 examples/performance/xx-fiber-switch.rb