Sha256: c369379877cc4d31b0919c82a9f4d4259ac556d78fb313fd81772eec54012099

Contents?: true

Size: 154 Bytes

Versions: 14

Compression:

Stored size: 154 Bytes

Contents

X = ARGV[0] ? ARGV[0].to_i : 10
a = (1..X).to_a

Y = 1_000_000
t0 = Time.now
Y.times do
  i = a.shift
  a.push i
end

puts "rate: #{Y / (Time.now - t0)}"

Version data entries

14 entries across 14 versions & 1 rubygems

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