Sha256: adddc7237bfa5e03d6c3f7f26219087cf1f1132c43a7f0afbbb27c8f47e6f362

Contents?: true

Size: 224 Bytes

Versions: 90

Compression:

Stored size: 224 Bytes

Contents

# frozen_string_literal: true

require 'fiber'

X = 10_000_000

main = Fiber.current
f = Fiber.new do
  loop { main.transfer }
end

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

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
polyphony-0.59 examples/performance/switch.rb
polyphony-0.58 examples/performance/switch.rb
polyphony-0.57.0 examples/performance/switch.rb
polyphony-0.56.0 examples/performance/switch.rb
polyphony-0.55.0 examples/performance/switch.rb
polyphony-0.54.0 examples/performance/switch.rb
polyphony-0.53.2 examples/performance/switch.rb
polyphony-0.53.1 examples/performance/switch.rb
polyphony-0.53.0 examples/performance/switch.rb
polyphony-0.52.0 examples/performance/switch.rb
polyphony-0.51.0 examples/performance/switch.rb
polyphony-0.50.1 examples/performance/switch.rb
polyphony-0.50.0 examples/performance/switch.rb
polyphony-0.49.2 examples/performance/switch.rb
polyphony-0.49.1 examples/performance/switch.rb
polyphony-0.49.0 examples/performance/switch.rb
polyphony-0.48.0 examples/performance/switch.rb
polyphony-0.47.5.1 examples/performance/switch.rb
polyphony-0.47.5 examples/performance/switch.rb
polyphony-0.47.4 examples/performance/switch.rb